Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to CCM (Claude Code Manager) will be documented in this file.

## [Unreleased]
### Fixed
- Statusline account line showed the globally-active account instead of the profile actually in use when a session ran inside an isolated profile (`ccm switch --isolated`). It read `oauthAccount.emailAddress` from `~/.claude/.claude.json` (or `~/.claude.json`) unconditionally, ignoring `CLAUDE_CONFIG_DIR`. It now prefers `$CLAUDE_CONFIG_DIR/.claude.json` when that variable is set, falling back to the global config otherwise.

## [4.2.0] - 2026-04-25
### Added
- Statusline now shows the active model (display name) on its own line above the context bar.
Expand Down
13 changes: 11 additions & 2 deletions ccm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6573,8 +6573,17 @@ fi

# ── CCM account data (direct file read + env var fallback) ──
SEQ="$HOME/.claude-switch-backup/sequence.json"
CONF="$HOME/.claude/.claude.json"
[[ -f "$CONF" ]] || CONF="$HOME/.claude.json"
# Resolve the config file for the ACTIVE session. When running in an isolated
# profile, CLAUDE_CONFIG_DIR points at that profile's dir, whose .claude.json
# holds the real active account. Prefer it so the statusline reflects the
# profile in use rather than whatever account is globally active.
if [[ -n "$CLAUDE_CONFIG_DIR" ]] && [[ -f "$CLAUDE_CONFIG_DIR/.claude.json" ]]; then
CONF="$CLAUDE_CONFIG_DIR/.claude.json"
elif [[ -f "$HOME/.claude/.claude.json" ]]; then
CONF="$HOME/.claude/.claude.json"
else
CONF="$HOME/.claude.json"
fi

ALIAS="" EMAIL_SHORT="" HEALTH="" TOTAL_ACCTS=0
if [[ -f "$SEQ" ]] && [[ -f "$CONF" ]]; then
Expand Down