Skip to content

v0.41.1: remove sessionTitle overwrite (use additive statusline)#40

Merged
Shahinyanm merged 1 commit into
masterfrom
v0.41.1-remove-sessiontitle
Jun 5, 2026
Merged

v0.41.1: remove sessionTitle overwrite (use additive statusline)#40
Shahinyanm merged 1 commit into
masterfrom
v0.41.1-remove-sessiontitle

Conversation

@Shahinyanm
Copy link
Copy Markdown
Member

Bug: v0.36.0 set the CC window/tab title to [TP] Nk saved via the sessionTitle SessionStart return — but sessionTitle OVERWRITES the session name. Intrusive clobber, hit in the wild.

Right answer (the user's instinct): do it like caveman — the badge belongs in the statusline (additive, sits alongside the name). token-pilot already ships that (hooks/tp-statusline.sh[TP deny 12k]). The sessionTitle write was redundant AND destructive.

Fix: drop the whole sessionTitle block (saved-tokens + workflow-progress variants). SessionStart now returns only additionalContext + watchPaths. Savings show via the statusline badge; the session name stays the user's.

No tests referenced sessionTitle. 1333/1333 pass.

v0.36.0 set the Claude Code window/tab title to `[TP] Nk saved` via
the `sessionTitle` SessionStart return field. Problem: sessionTitle
OVERWRITES Claude Code's own session name — an intrusive clobber.
A user hit it in the wild ("он перекрывает название сессии. и это
хреново") and asked the obvious question: why not do it like caveman?

Caveman is right: the badge belongs in the STATUSLINE — an additive
UI line that sits ALONGSIDE the session name, not on top of it.
token-pilot already ships exactly that (hooks/tp-statusline.sh +
statusline-chain.sh, which renders `[TP deny 12k]` next to caveman's
badge). The sessionTitle write was redundant with it AND destructive.

Fix: drop the entire sessionTitle block from hook-session-start
(both the saved-tokens and the workflow-progress variants). The
SessionStart hook now returns only additionalContext + watchPaths.
Cumulative savings continue to show via the statusline badge (doctor
already nudges users to configure it); the session name stays the
user's. Workflow progress can ride the statusline too if wanted —
tp-statusline.sh can read the active workflow — rather than hijacking
the title.

No tests referenced sessionTitle; clean removal.

Tests: 1333/1333 pass.
Build: clean (25 agents under 0.41.1).
@Shahinyanm Shahinyanm merged commit d152ddb into master Jun 5, 2026
@Shahinyanm Shahinyanm deleted the v0.41.1-remove-sessiontitle branch June 5, 2026 12:27
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