Skip to content

Conversation

@aryasaatvik
Copy link
Contributor

@aryasaatvik aryasaatvik commented Dec 5, 2025

Summary

  • Update terminal window title reactively based on current route and session state
  • Show opencode on home screen or for sessions with default/new titles
  • Show oc | {title} for sessions with generated titles (truncated to 40 chars max)
  • Reset window title on exit to restore terminal defaults

Uses the public renderer.setTerminalTitle() API from OpenTUI.

Update terminal window title reactively based on current route and session:
- Show 'opencode' on home screen or for sessions with default titles
- Show 'oc | {title}' for sessions with generated titles (max 40 chars)
- Reset window title on exit to restore terminal defaults
@aryasaatvik
Copy link
Contributor Author

@rekram1-node can you take a look? simple change to support terminal window titles when using multiple tabs

@rekram1-node rekram1-node merged commit 3ec34ee into sst:dev Dec 6, 2025
3 checks passed
@rekram1-node
Copy link
Collaborator

nice

ariane-emory pushed a commit to ariane-emory/opencode that referenced this pull request Dec 6, 2025
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