Problem
Detection can still assign the wrong purple dot when all of these conditions are true simultaneously:
sessions/ sessionId doesn't match history.jsonl (confirmed: after /clear; also observed once for unknown cause)
- Multiple same-cwd sessions exist
- Cross-reference fails:
- Ghostty: no per-tab TTY (pending upstream #11592)
- iTerm2/cmux: sessions have no
/rename (tab names identical, can't disambiguate)
In this case, cwd fallback picks the first unclaimed same-cwd session — which may be wrong.
Practical likelihood
Very low. Requires a rare trigger (/clear or unknown) + same-cwd + no /rename + Ghostty (or no /rename on iTerm2/cmux).
Related
🤖 On behalf of @grimmerk — generated with Claude Code
Problem
Detection can still assign the wrong purple dot when all of these conditions are true simultaneously:
sessions/sessionId doesn't match history.jsonl (confirmed: after/clear; also observed once for unknown cause)/rename(tab names identical, can't disambiguate)In this case, cwd fallback picks the first unclaimed same-cwd session — which may be wrong.
Practical likelihood
Very low. Requires a rare trigger (
/clearor unknown) + same-cwd + no/rename+ Ghostty (or no/renameon iTerm2/cmux).Related
sessions/detection rewrite🤖 On behalf of @grimmerk — generated with Claude Code