Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(tui-v3): quiet Ctrl+C exit + drop placeholder session in title - #515

Merged
lsdefine merged 1 commit into
lsdefine:mainfrom
shenhao-stu:fix/tui-v3-ctrlc-title
May 28, 2026
Merged

fix(tui-v3): quiet Ctrl+C exit + drop placeholder session in title#515
lsdefine merged 1 commit into
lsdefine:mainfrom
shenhao-stu:fix/tui-v3-ctrlc-title

Conversation

@shenhao-stu

Copy link
Copy Markdown
Contributor

Summary

  • app.run(handle_sigint=False) lets SIGINT surface as KeyboardInterrupt via asyncio.runners — catch it in run() for a clean shell exit instead of an ugly traceback.
  • Drop the literal 'session' fallback in _term_title: first launch (before /new) now renders GenericAgent instead of session · GenericAgent.

Test plan

  • Launch tui_v3.py → terminal title shows bare GenericAgent, not session · GenericAgent.
  • /new alpha → title becomes alpha · GenericAgent; spinner prepends while running.
  • Ctrl+C Ctrl+C to exit → shell returns cleanly, no KeyboardInterrupt traceback.
  • python -c "import ast; ast.parse(open('frontends/tui_v3.py').read())" syntax OK.

…unch title

`app.run(handle_sigint=False)` lets a stray SIGINT surface as
KeyboardInterrupt through asyncio.runners — catch it in run() so the
shell sees a clean exit. Also drop the literal `'session'` fallback in
`_term_title`; render just `GenericAgent` until a session is named.
@lsdefine
lsdefine merged commit 95781b4 into lsdefine:main May 28, 2026
@shenhao-stu
shenhao-stu deleted the fix/tui-v3-ctrlc-title branch May 28, 2026 12:42
lsdefine added a commit that referenced this pull request Jul 23, 2026
Imzl-zl pushed a commit to Imzl-zl/GenericAgent that referenced this pull request Aug 5, 2026
Imzl-zl pushed a commit to Imzl-zl/GenericAgent that referenced this pull request Aug 5, 2026
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.

2 participants