Skip to content

[FEATURE]: Add an option to set the terminal window title #4539

@llucax

Description

@llucax

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

At least when using a terminal in Linux, the title can be set using some escape characters, like printf '\033]0;The title\007'.

When having multiple terminals with multiple running instances of OpenCode, it is sometimes hard to identify one instance.

It would be nice if OpenCode could set the window title to, for example, the session name.

In an ideal world, one could even use some sort of template, for example some placeholders could be:

  • %n: Session name
  • %m: Current model being used
  • %a: Current agent running, if any
  • %s: Status: IDLE or WORKING

Then you could configure something like "set_title": false or "set_title": "[%s] %n (%m)".

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionUsed for feature requests, proposals, ideas, etc. Open discussion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions