Skip to content

refactor(tau-coding): reduce coupling in session and TUI hotspots - #666

Open
darion-yaphet wants to merge 1 commit into
huggingface:mainfrom
darion-yaphet:refactor/split-tau-coding-hotspots
Open

refactor(tau-coding): reduce coupling in session and TUI hotspots#666
darion-yaphet wants to merge 1 commit into
huggingface:mainfrom
darion-yaphet:refactor/split-tau-coding-hotspots

Conversation

@darion-yaphet

@darion-yaphet darion-yaphet commented Aug 27, 2026

Copy link
Copy Markdown

Summary

Splits low-coupling helpers out of Tau's largest tau_coding modules while preserving existing behavior and import paths.

  • Extract terminal command parsing and value objects from tau_coding.session
  • Extract session-tree traversal and presentation helpers from tau_coding.session
  • Extract completion rendering from tau_coding.tui.widgets
  • Extract prompt activity and completion-layout helpers from tau_coding.tui.app
  • Keep session.py, tui/app.py, and tui/widgets.py as compatibility facades

Compatibility

No public import paths or runtime behavior should change. Existing CLI, RPC, TUI, and test imports continue to resolve through the original modules.

Validation

  • tests/test_tui_app.py: 382 passed
  • Related session and TUI tests: 274 passed
  • Session and autocomplete regression tests: 192 passed
  • ruff check src tests
  • mypy
  • python -m compileall -q src

Follow-up

This is the first structural split only. Future PRs can extract session resources, sidebar/transcript rendering, prompt input, and TUI screens behind the same compatibility boundaries.

Move terminal-command parsing, session-tree traversal, completion rendering, and completion layout into focused modules while preserving the session, app, and widgets compatibility facades for existing CLI, RPC, TUI, and test imports.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant