Skip to content

Detection edge case: sessionId mismatch + same-cwd + no cross-ref #68

@grimmerk

Description

@grimmerk

Problem

Detection can still assign the wrong purple dot when all of these conditions are true simultaneously:

  1. sessions/ sessionId doesn't match history.jsonl (confirmed: after /clear; also observed once for unknown cause)
  2. Multiple same-cwd sessions exist
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions