Skip to content

Set the terminal window title from session state - #15

Open
barkz wants to merge 1 commit into
mainfrom
feat/window-title
Open

Set the terminal window title from session state#15
barkz wants to merge 1 commit into
mainfrom
feat/window-title

Conversation

@barkz

@barkz barkz commented Aug 16, 2026

Copy link
Copy Markdown
Owner

The REPL now sets the window and tab title via OSC 0, so several open
terminals are tellable apart at a glance:

Glean Code - acme-be.glean.com (live)
Glean Code (mock)

Controlled by a new window_title config key: full (default), plain to omit
the tenant hostname, or off. The title is only rewritten when the state
actually changes, is a no-op when stdout is not a TTY so piped runs stay
clean, and is handed back to the shell on exit.

Adds 9 tests (suite 721 -> 730).

Co-Authored-By: Claude Opus 5 noreply@anthropic.com

The REPL now sets the window and tab title via OSC 0, so several open
terminals are tellable apart at a glance:

    Glean Code - acme-be.glean.com (live)
    Glean Code (mock)

Controlled by a new window_title config key: full (default), plain to omit
the tenant hostname, or off. The title is only rewritten when the state
actually changes, is a no-op when stdout is not a TTY so piped runs stay
clean, and is handed back to the shell on exit.

Adds 9 tests (suite 721 -> 730).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.

1 participant