GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — fix(tui): stop session titles with newlines from crashing the TUI by ruck-syu · Pull Request #57523 · anomalyco/opencode Conversation
|
|
The following comment was made by an LLM, it may be inaccurate: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixes the crash. I ran the #57494 opencode-drive repro with a session title containing a newline, an ESC sequence and a C1 character. On the base the TUI goes to the crash screen with ot_session_control failed: InvalidArgument. With this change the session view stays up and the title is set (screenshots below). bun test test/util/renderer.test.ts and typecheck in packages/tui pass.
Public API: unchanged. The change only touches the internal TUI title helper.
No blocking concerns. Since every title update goes through setTerminalTitle, sanitizing there covers the main TUI, the mini TUI and the clear on exit.
Related: #47687
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
TUI crash: ot_session_control failed: InvalidArgument
There was an error while loading. Please reload this page.