Skip to content

feat(tui): improve session titles and terminal notifications - #355

Merged
hetaoBackend merged 1 commit into
mainfrom
feat/terminal-presentation
Sep 24, 2026
Merged

hetaoBackend merged 1 commit into
mainfrom
feat/terminal-presentation

Conversation

@1anZhang

@1anZhang 1anZhang commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Change

Terminal tabs now identify the active session and its state, for example Needs approval | Fix login | MCode. Titles reuse the existing status projection, follow session renames and switches, and clear on suspend/exit before being reapplied on resume. Unnamed sessions use the project name and a short session ID; title segments are configurable.

Preserve focus through the production terminal wrapper and make notifications respect event filters, TTY availability and application lifecycle. Notifications identify the session, wait for queued work before reporting completion, report failed turns independently, and remain silent for cancellation. Reuse terminal capability detection, sanitize protocol payloads and restrict the existing Windows toast bridge to local Windows/WSL interop.

Document the VS Code ${sequence} tab-title setting and notification configuration in docs/tui-capabilities.md.

Validation

  • pnpm verify: PASS on 667ecc6d215a44d8b500884be88d91e8dea6812b, full profile, macOS arm64, Node v22.22.2. All 15 applicable gates passed, including source export, lint, type checking, build, artifact, capability, status-contract, smoke, BYOK, policy and sandbox checks.
  • Capability suite: 174 files passed; 4,660 tests passed and 14 skipped. This includes configuration loading, titles, focus, notification routing and application lifecycle coverage.
  • Performance: basic; changes affect terminal presentation and notification policy, with no history, storage, model streaming or tool-loop changes.
  • NOT RUN: live VS Code UI, native Windows/WSL desktop notifications, a physical terminal matrix, and live-model acceptance. Terminal protocol checks use captured output and synthetic environments.

Publication and contribution checks

  • I have permission to contribute these changes under the existing licenses applicable to the changed files/packages; existing notices are preserved and no third-party implementation was imported.
  • No credentials, account data, real user content, internal source history or private review material is included.
  • Added source files were reviewed before regenerating release/public-source.json; the new test is declared in test/vitest-suites.json.
  • The affected capability documentation is updated. Mock/offline results are not described as live-service acceptance.

Maintainer handoff

Publication scope: two reviewed TUI implementation/test files added to the existing package scope. No license changes.

Shared-source port: pending after merge.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@1anZhang 1anZhang added enhancement New feature or request tui Interactive terminal UI (TUI) cli Standalone mcode: TUI, headless, ACP and source builds/tooling labels Sep 24, 2026
@hetaoBackend
hetaoBackend merged commit 8b55164 into main Sep 24, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli Standalone mcode: TUI, headless, ACP and source builds/tooling enhancement New feature or request tui Interactive terminal UI (TUI)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants