Skip to content

Feat/terminal title and cache prefix#169

Merged
chauncygu merged 3 commits into
mainfrom
feat/terminal-title-and-cache-prefix
Jul 11, 2026
Merged

Feat/terminal title and cache prefix#169
chauncygu merged 3 commits into
mainfrom
feat/terminal-title-and-cache-prefix

Conversation

@chauncygu

Copy link
Copy Markdown
Contributor

No description provided.

Shangding added 3 commits July 11, 2026 11:55
The Anthropic cache breakpoint sat at the end of the whole system string, so the volatile per-run '# Environment' block (git status, rebuilt each turn) invalidated the large static base prompt across turns. Split the breakpoint onto the stable span before that marker; the two system text blocks concatenate byte-for-byte, so the model sees identical content. Within-turn caching is unchanged. Adds 2 tests.
Set the terminal tab/window title via OSC 0: a pulsing glyph + the user's current prompt while working, a static badge when idle. Auto-disabled on non-TTYs/dumb terminals. VS Code hides program-set titles by default, so first launch inside VS Code/Cursor/Windsurf safely configures terminal.integrated.tabs.title once (backup + re-parse validation, never overwrites a user value); /terminal-setup re-runs it. New config flag terminal_title (default on).
…behavior

News entries (README + docs/news.md); reference.md gets a Terminal Tab Title section, the /terminal-setup command, and terminal_title/prompt_cache config keys; features.md gets terminal-title and prompt-caching rows.
@chauncygu chauncygu merged commit 5b90bd5 into main Jul 11, 2026
6 checks passed
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