Repository navigation
feat(sessions): launch every Claude session with --name set to its tab name - #646
Conversation
|
Thanks for this, @opticon454. The PR launches every Claude session with Matching the two lists by eye is painful today, so I see the point. Before you spend more time on it, I need to settle a design question on my side, because this reverses #457, which I merged on purpose three weeks ago. Why placeholder and auto names are unpinned today. Renames stop reaching Claude. A Codeman rename reaches If we go ahead, this is what I would ask for:
Typecheck, lint, format and the full test suite pass, and the sanitizing and version gate on |
|
@opticon454 decision on the design question: an opt-in setting. #457's behaviour stays the default, and always pinning So items 1 to 4 from my comment above stand as written. A few details for the setting itself:
Thanks for waiting on this. |
791f0ea to
1fefeda
Compare
Add pinCliSessionName (synced, default OFF), re-read at each spawn and respawn. Off keeps the Ark0N#457 behaviour; on pins every non-blank tab name as --name. Update the docs, JSDoc and changeset that stated the old rule.
|
Pushed
Typecheck, lint, format and the full |
…s reference The new App Settings row had no zh-CN entry, so it read in English in a Chinese UI, and docs/wiki/Settings-Reference.md did not list it. Adds the label and description to i18n.js, a row in the Agents & CLIs table, and a JSDOM test that runs the real translator over the real index.html. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…with --name set to its tab name Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Merged and shipped in 1.43.0 as the opt-in Pin tab names on the CLI setting. Thanks @opticon454, that was a fast and complete turnaround on the decision: off is byte-identical to #457 on every spawn path, the setting is read fresh at each start and respawn, and the docs and skill pages moved with it. On top I added the zh-CN strings for the setting, a row in the Settings Reference wiki page, and a small test that runs the real translator over them. |
What
A Claude session is launched with
--name <tab name>for every tab, not only for ones the user renamed.Why
Claude Code's prompt-box label,
/resumeentry and its remote session list showed Claude's own generated title for a tab Codeman calledw4-Codeman(for example "Git indicator guard test and teardown flake"), so the two lists could not be matched up.cliPinnedNamewithheld the flag for placeholder and auto-named tabs on purpose, so that every conversation in a case would not share one/resumeentry; the tab number already keeps those apart per tab.How
Session.cliPinnedNamereturns the tab's name whatever its source. The flag stays version-gated and sanitised as before (buildNameCliArgs). A rename or an auto-name reaches the CLI at its next spawn, because a process started with--namere-appends its in-memory title (seeclaude-session-title.ts); the transcript row for a manual rename is still written.Tests
test/claude-resume-title.test.tspins placeholder and auto names as pinned; the existing--nameinjection, spawn-golden and registry tests pass unchanged. Changeset included.