claude-code - 💡(How to fix) Fix [FEATURE] Add persistent defaultSessionColor setting

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

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

/color <name> sets the session color, but the setting is per-session only. There's no documented field in settings.json, no CLI flag (claude --help shows none), and no claude config subcommand to persist it.

Proposed Solution

Add a top-level setting, e.g.:

{
"defaultSessionColor": "cyan"
}

Accepted values would match the existing /color choices: red, blue, green, yellow, purple, orange, pink, cyan, default.

On session start, Claude Code would apply this color automatically. /color <name> would still override for the current session.

Alternative Solutions

  • SessionStart hook — hooks output context to the model, not UI commands, so they can't invoke /color.
  • Shell wrapper / alias — no CLI flag exists to pass color in.

Priority

Low - Nice to have

Feature Category

CLI commands and flags

Use Case Example

No response

Additional Context

Why

  • I prefer a specific color (cyan) across all my sessions for visual consistency.
  • Typing /color cyan every session is friction, especially across many short-lived sessions / worktrees.
  • Other per-session settings (model, effortLevel, theme, permissions.defaultMode) are already persistable in settings.json — this fits the same pattern.

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