feat(tui): add TUI session orchestrator (salvage #27642)#32980
Merged
Conversation
Contributor
🔎 Lint report:
|
| Rule | Count |
|---|---|
invalid-assignment |
1 |
First entries
tui_gateway/server.py:2267: [invalid-assignment] invalid-assignment: Invalid subscript assignment with key of type `Literal["updated_at"]` and value of type `int | float` on object of type `dict[str, str | bool]`
✅ Fixed issues: none
Unchanged: 4972 pre-existing issues carried over.
Diagnostics are surfaced as warnings — this check never fails the build.
Add a first-class active-session orchestrator for the Ink TUI: - list, activate, close, and launch live process-local TUI sessions - hydrate committed and in-flight output when switching sessions - dispatch a new prompt session from the +new row with session-scoped model picks - expose a clickable live-session count in the status chrome - preserve stable row order while initially focusing the current session - support mouse hit-testing for floating orchestrator overlays - add backend and frontend regression coverage for the lifecycle and UI helpers
5c12730 to
5857c01
Compare
1 task
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.
Salvages #27642 by @ticketclosed-wontfix onto current main.
Summary
Adds an Ink TUI session orchestrator overlay so one Hermes TUI can list, switch between, refresh, and close multiple live process-local sessions, plus dispatch a new session with a session-scoped model pick.
Changes
tui_gateway/server.py: new RPCssession.active_list,session.activate,session.closeover the in-process session table.ui-tui/src/components/activeSessionSwitcher.tsx: overlay component (windowed list, status glyphs, +new row with nested model picker).ui-tui/src/app/*: wires/sessions,/switch, andCtrl+Xto open the orchestrator; status chrome gains a clickable live-session count.website/docs/user-guide/tui.md.Validation
scripts/run_tests.sh tests/test_tui_gateway_server.py— 186 passed.py_compile tui_gateway/server.py— clean.Closes #25134.
Infographic