Context bar: loosen recency gate to 3h (10min hid idle-but-live sessions)

The match works (cwd resolves, backend has the data), but a live claude
you're actively using can sit idle far longer than 10min, so the gate was
hiding it. Loosen to 3h — suppresses only genuinely dormant directories.
Can't distinguish 'claude live here' from 'shell in a recent claude dir'
without a WSL foreground-process probe (deferred).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
megaproxy 2026-05-28 23:38:13 +01:00
parent a1d7919537
commit 15c2842ce1

View file

@ -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