claude-code - 💡(How to fix) Fix Feature: sessionColor and sessionName in .claude/settings.json

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…

Allow projects to declare a session color and name in .claude/settings.json so they apply automatically when Claude Code opens in that directory — no manual /color and /rename needed each session.

Root Cause

Allow projects to declare a session color and name in .claude/settings.json so they apply automatically when Claude Code opens in that directory — no manual /color and /rename needed each session.

Code Example

{
  "sessionColor": "orange",
  "sessionName": "Vohl"
}
RAW_BUFFERClick to expand / collapse

Summary

Allow projects to declare a session color and name in .claude/settings.json so they apply automatically when Claude Code opens in that directory — no manual /color and /rename needed each session.

Proposed settings

{
  "sessionColor": "orange",
  "sessionName": "Vohl"
}

Motivation

/color and /rename are useful for distinguishing sessions across projects. But they require manual re-entry every session. There's no way to automate them — SessionStart hooks run shell commands, which can't invoke slash commands.

A per-project setting would make this automatic and persistent, the same way model or permissions already are.

Scope

  • sessionColor: one of the values accepted by /color (red, blue, green, yellow, purple, orange, pink, cyan, default)
  • sessionName: string, same as /rename argument
  • Applies at session start when the working directory matches the project root
  • User/local settings should be able to override project settings (same precedence as other settings)

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