Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix(codex): the file tree reloads once at run end, aborts included

purple73cdb3bbd5e0
diff --git a/src/hooks/useCodex.ts b/src/hooks/useCodex.ts
index c620ca17..ce8565e5 100644
--- a/src/hooks/useCodex.ts
+++ b/src/hooks/useCodex.ts
@@ -1789,6 +1789,12 @@ export function useCodex() {
clearActiveChatId()
codexStore.setThreadStatus(convId, 'idle')
+ // The per-batch bump above only fires when a batch RETURNS. A user who
+ // aborts mid-run (David 2026-07-31: files on disk, panel still showing
+ // the old listing) never reaches it — so reload the tree once at run
+ // end, whatever way the run ended.
+ useCodexStore.getState().bumpFileTreeVersion()
+
// ── /loop driver ───────────────────────────────────────────────────
// The pass is over. A loop is not "one long turn": it is the model being
// brought BACK with its own work in front of it and asked to prove the