From 15c2842ce12829ef14866ec06b021e5f61fb4651 Mon Sep 17 00:00:00 2001 From: megaproxy Date: Thu, 28 May 2026 23:38:13 +0100 Subject: [PATCH] Context bar: loosen recency gate to 3h (10min hid idle-but-live sessions) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- src/lib/layout/LeafPane.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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