Before submitting
Area
apps/web
Steps to reproduce
- Open a thread in a repo with a deep directory layout.
- Open the Files surface in the right panel and expand your way down to something like
apps/web/src/components/files/.
- Switch the right panel to another tab (Diff, Terminal, Preview), or switch to another thread and back. A window reload does it too.
- Return to the Files surface.
Expected behavior
The tree comes back the way I left it, with the same folders expanded, so I can keep working from where I was.
Actual behavior
The tree is fully collapsed again. Every folder on the path has to be re-opened by hand, every single time.
This is not a stale-cache problem, the state is simply never stored. In apps/web/src/components/files/FileBrowserPanel.tsx:287 expansion lives in a ref that is recreated on mount:
const expandedPathsRef = useRef(new Set<string>());
Mobile has the same shape in apps/mobile/src/features/files/FileTreeBrowser.tsx:122:
const [expandedPaths, setExpandedPaths] = useState<ReadonlySet<string>>(() => new Set());
Nothing writes either one to storage. The surrounding surface already persists plenty: open file tabs per thread in apps/web/src/rightPanelStore.ts (t3code:right-panel-state:v2), and even the explorer pane's own open/closed flag in apps/web/src/components/files/FilePreviewPanel.tsx:112 (t3code.fileExplorerOpen). So the tree's expansion is the odd one out, and it is the piece that costs the most clicks to rebuild.
Impact
Minor bug or occasional failure
Version or commit
0.0.41-nightly.20260910.1486
Environment
macOS 26.x, T3 Code Desktop (Nightly) 0.0.41-nightly.20260910.1486
Logs or stack traces
Workaround
None. Re-expand the path manually each time.
Related
GPT 6 Astra via Codex in T3 Code.
Before submitting
Area
apps/web
Steps to reproduce
apps/web/src/components/files/.Expected behavior
The tree comes back the way I left it, with the same folders expanded, so I can keep working from where I was.
Actual behavior
The tree is fully collapsed again. Every folder on the path has to be re-opened by hand, every single time.
This is not a stale-cache problem, the state is simply never stored. In
apps/web/src/components/files/FileBrowserPanel.tsx:287expansion lives in a ref that is recreated on mount:Mobile has the same shape in
apps/mobile/src/features/files/FileTreeBrowser.tsx:122:Nothing writes either one to storage. The surrounding surface already persists plenty: open file tabs per thread in
apps/web/src/rightPanelStore.ts(t3code:right-panel-state:v2), and even the explorer pane's own open/closed flag inapps/web/src/components/files/FilePreviewPanel.tsx:112(t3code.fileExplorerOpen). So the tree's expansion is the odd one out, and it is the piece that costs the most clicks to rebuild.Impact
Minor bug or occasional failure
Version or commit
0.0.41-nightly.20260910.1486
Environment
macOS 26.x, T3 Code Desktop (Nightly) 0.0.41-nightly.20260910.1486
Logs or stack traces
Workaround
None. Re-expand the path manually each time.
Related
FileBrowserPanel.GPT 6 Astra via Codex in T3 Code.