Support window titles for coding agent sessions and TUI launches - #11188
Open
ChaseC-130 wants to merge 1 commit into
Open
ChaseC-130 wants to merge 1 commit into
ChaseC-130 wants to merge 1 commit into
Conversation
ChaseC-130
marked this pull request as draft
September 10, 2026 18:02
ChaseC-130
marked this pull request as ready for review
September 10, 2026 18:04
ChaseC-130
force-pushed
the
feat/agent-window-title
branch
from
September 10, 2026 18:06
0472e6d to
f17eb92
Compare
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.
Agent and TUI windows can start with generic titles, making sessions hard to identify in the desktop bar. This adds an initial title from the agent's prompt (first line) or working directory, with a
--titleoverride, while allowing later title updates emitted by the running agent.omarchy-launch-tuiaccepts--title=<title>and emits the initial OSC title inside the new terminal before executing the command. Passing a terminal-level--titlewould lock Ghostty's title and suppress subsequent session renames. Title and command arguments remain literal, and control characters are removed from the launcher's initial title.omarchy-agentsupplies the initial title for new windows and emits it directly for--inline;omarchy-agent-promptforwards the override.set-titles-stringsetting; this PR does not overwrite customized tmux configs.Claude over SSH / Tailscale
Recorded on a local Omarchy workstation connecting over SSH via Tailscale to a Mac running tmux. Claude Code 2.1.267 successfully renames the session in both states. With the old
#h:#Wformat, the desktop title stays at the host/window name. With#{?pane_title,#{pane_title},#h:#W}, it follows Claude's session title. The test changed only the disposable tmux session's title setting, then restored and closed that session.Codex in Ghostty
Codex 0.153.4 uses
-c 'tui.terminal_title=["thread-title"]'in both states to emit session names. The earlier terminal-level--titleimplementation keeps the desktop title atcodex; the current PR launcher displaysLogin checked. This local comparison is against the earlier title-locking implementation, not the upstream base launcher. The command is shown in the composer after the successful rename confirmation.Images combine crops of the actual desktop bar and rename UI. Dynamic names depend on the agent emitting terminal title updates; Codex's default title configuration does not include the session name.
Validation