claude-code - 💡(How to fix) Fix Expose /rename'd session name in model prompt context

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…
RAW_BUFFERClick to expand / collapse

Problem

The session name set via /rename <name> is used for local UI/history only. It is not surfaced to the model's prompt context — the model has no way to read its own session title.

Why this would help

Users routinely rename sessions to a ticket ID or short topic (e.g. ABC-1293, Refactor auth). If the model could read this:

  • Commit message suggestions / PR titles / branch names could automatically reflect the session topic — no need to repeat the ticket ID in chat each time.
  • The model has an explicit anchor to the user's stated goal across long conversations, reducing drift ("what were we doing again?").
  • Aligns naturally with auto memory and CLAUDE.md as a per-session context layer.

Suggested mechanisms (non-prescriptive)

  • Add a field to the env block (alongside cwd, Platform, etc.).
  • Or expose via env var readable from hooks (so users can opt-in via additionalContext).

Related (distinct) issues

  • #47679 — programmatic call of /rename from tools/skills (different direction)
  • #44281 / #55397 — session name in terminal title (different surface)
  • #48868 — claude.ai → local CLI rename propagation (different problem)

This request is specifically: the model reading its own session title in context.

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 Expose /rename'd session name in model prompt context