fix(claude): propagate mid-session titles to zellij tab names #573
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "claude-zellij-tab-titles"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Claude Code only includes
session_titlein SessionStart hook payloads, so a title set mid-session (auto-naming or/rename) never reachedclaude-hookand the zellij tab stayed on theproject:petnamefallback until the next--resume.Fix: fall back to the most recent
custom-titleentry in the transcript (transcript_pathis present in every hook payload), so renames propagate to the tab on the next hook event. Also clean up the session state file written under the old name when a session's name changes, so renames no longer leave phantom sessions in~/.local/state/claude/sessions/.Verified live: ran the modified script against a running session with a synthetic UserPromptSubmit payload — the containing zellij tab renamed from
nixos:enchanting-craneto the session's actual titlenix:claude-zellij. Shellcheck passes (writeShellApplication will also enforce this at build).🤖 Generated with Claude Code
WIP: fix(claude): propagate mid-session titles to zellij tab namesto fix(claude): propagate mid-session titles to zellij tab names1bac21767850253323cc50253323ccd2c63fb00d