The best way to control Claude Code, Codex and more from any computer or phone
fix(client): the folder browser shows folders added or removed while T3 runs (#28064)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
M.Umais Adeed committed
Nov 1, 2026 at 07:44 UTC
17948307cc7d78df7d1a601d254613fe0e833fd9
1 file changed
+5
packages/client-runtime/src/state/filesystem.ts
+5
@@ -22,6 +22,8 @@ import {
22
} from "./projects.ts";
23
import { createEnvironmentRpcQueryAtomFamily } from "./runtime.ts";
24
25
+const BROWSE_IDLE_TTL_MS = 5_000;
26
+
27
export function resolveFilesystemReadAccess(input: {
28
readonly isCatalogReady: boolean;
29
readonly connection: Pick<EnvironmentConnectionPresentation, "phase" | "error"> | null;
@@ -121,6 +123,9 @@ export function createFilesystemEnvironmentAtoms<R, E>(
123
browse: createEnvironmentRpcQueryAtomFamily(runtime, {
124
label: "environment-data:filesystem:browse",
125
tag: WS_METHODS.filesystemBrowse,
126
+ // A listing kept alive while unread is never revalidated, so reopening the browser
127
+ // would show folders as they were. Keep it only long enough for a prefetch to land.
128
+ idleTtlMs: BROWSE_IDLE_TTL_MS,
129
}),
130
};
131
}