claude-code - 💡(How to fix) Fix [FEATURE] Programmatic control over session titles (disable / instruct / post-edit the auto-titler) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#60491Fetched 2026-05-20 03:57:09
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×4closed ×1commented ×1
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

My team prefixes Jira ticket IDs (e.g. "[XYZ-1234]") on every session so they cross-reference cleanly with PRs, commits, and tickets. We start each session by pasting the ticket as the first line of the first prompt.

I tried enforcing this with a UserPromptSubmit hook emitting hookSpecificOutput.sessionTitle. Behavior I observed (Claude Code 2.1.144, VS Code extension):

  • The hook writes a {"type":"custom-title", ...} entry to the session JSONL that is byte-identical to what a manual UI rename writes.
  • However, file-writes alone don't refresh the live UI title. Manual rename appears to issue an internal IPC signal in addition to writing the file; hook output doesn't trigger that signal, so the title doesn't update live.
  • The auto-titler also writes a new "ai-title" entry after every assistant turn, so even the session-history dropdown view (which re-reads JSONL on open) usually shows the auto-titler's last entry — not our custom-title.
  • There is no documented settings.json knob, hook event, MCP affordance, or CLI command to disable, instruct, or post-edit the auto-titler.

Proposed Solution

  1. A settings.json flag to disable the auto-titler entirely (e.g. autoTitlerEnabled: false).
  2. A sessionTitlePrefix rule in settings — regex matched against the first prompt, prepended to whatever the auto-titler produces.
  3. A documented programmatic rename API / CLI / IPC equivalent to the UI rename (so a hook script could issue a real rename instead of just writing the JSONL).
  4. A new hook event that fires AFTER the auto-titler runs and supports hookSpecificOutput.sessionTitle, so we can re-assert the prefix.

Option 1 or 4 would be the cleanest fix. Happy to test a preview build.

Alternative Solutions

No response

Priority

Medium - Would be very helpful

Feature Category

API and model interactions

Use Case Example

No response

Additional Context

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [FEATURE] Programmatic control over session titles (disable / instruct / post-edit the auto-titler) [1 comments, 2 participants]