Repository navigation
refactor(tui): move session and turn handling out of run/mod.rs - #520
Merged
Merged
Conversation
- run/sessions.rs: opening, switching and closing live sessions and the dashboard rows (15 functions). - run/turn.rs: starting a turn, applying its events and outcome, and cancelling it (21 functions). run/mod.rs drops from 6259 to 4448 lines. A pure move: the only textual changes are `pub(super)` on each function and three signatures rustfmt re-wrapped because of it. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This was referenced Nov 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Second step of splitting
crates/tui/src/run/mod.rs(after #519):run/sessions.rs: opening, switching and closing live sessions, and the dashboard rows (15 functions).run/turn.rs: starting a turn, applying its events and outcome, and cancelling it (21 functions).run/mod.rsdrops from 6259 to 4448 lines.MAX_LIVE_SESSIONSandCANCEL_FORCE_AFTERstay inmod.rs; the memory budget pins the first one to that file.It is a pure move
Compared line by line against
main(ignoring order): the only differences arepub(super)on each moved function, three signatures rustfmt re-wrapped because of that prefix, and themod/uselines. No logic, event-loop or terminal code changed, so thedocs/tui-term-matrix.mdmanual checks were not run.Verification
cargo clippy -p whycodes-tui --all-targets -- -D warnings,cargo fmt --all --check, all budget scripts: green.affected_tests.py --execute(run::tests): 374 passed, 0 failed.🤖 Generated with Claude Code