feat(opencode): add configurable terminal title format#15908
Open
prestonvanloon wants to merge 1 commit intoanomalyco:devfrom
Open
feat(opencode): add configurable terminal title format#15908prestonvanloon wants to merge 1 commit intoanomalyco:devfrom
prestonvanloon wants to merge 1 commit intoanomalyco:devfrom
Conversation
Add terminal_title config option with template placeholders: %n - session name %s - BUSY/IDLE status %m - current model %a - current agent Example: terminal_title = "[%s] OC | %n" Default behavior unchanged - without config, title remains "OC | <session>". Closes anomalyco#4539
Contributor
|
The following comment was made by an LLM, it may be inaccurate: No duplicate PRs found. |
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.
Issue for this PR
Closes #4539
Type of change
What does this PR do?
Adds an optional
terminal_titleconfig field that lets users customize the terminal/tmux pane title with template placeholders:%n— session name%s— status (BUSY/IDLE)%m— current model (provider/model)%a— current agentExample config:
{ "terminal_title": "[%s] OC | %n" }Without this config, behavior is unchanged — the title stays
OC | <session name>as before.How did you verify your code works?
bun dev .withterminal_titleset in~/.config/opencode/opencode.json, confirmed title updates reactively when session transitions between BUSY and IDLEbun run typecheckpasses onpackages/opencodebun testpasses onpackages/opencode(1 pre-existing unrelated failure intool.writepermissions test)Checklist