diff --git a/src/lib/layout/LeafPane.tsx b/src/lib/layout/LeafPane.tsx index 25be577..be9aa71 100644 --- a/src/lib/layout/LeafPane.tsx +++ b/src/lib/layout/LeafPane.tsx @@ -22,11 +22,14 @@ import "./LeafPane.css"; const IDLE_THRESHOLD_MS = 5000; -/** Only show the context indicator when the matched claude session has been - * written recently — i.e. claude is actually live in (or just used in) this - * pane's directory. Without this, a plain bash pane sitting in a directory - * that once had a claude session lights up with that session's stale context. */ -const CONTEXT_ACTIVE_MS = 10 * 60 * 1000; +/** Only show the context indicator when the pane's directory has a claude + * session that was active within this window — generous, because a live + * session you're actively working in can sit idle for a long while (reading, + * thinking, away). It only suppresses genuinely dormant directories (old + * projects). NOTE: this can't tell "claude is live in this pane" from "a + * shell sitting in a directory that recently had a claude session" — that + * needs a foreground-process probe into WSL (deferred). */ +const CONTEXT_ACTIVE_MS = 3 * 60 * 60 * 1000; /** How far past a viewport edge the cursor must travel before a release is * treated as "drag pane out of window" instead of "drop on empty space