[Windows Desktop] Non-code artifact preview remains stuck on first-opened version until app restart
What version of the Codex App are you using?
26.730.8199.0
What platform is your computer?
Windows 10 x64, build 19045
What issue are you seeing?
When a non-code artifact is opened in Codex Desktop and that file is subsequently updated at the same path, Codex continues displaying the earliest version opened during the current app session.
The underlying file is updated correctly on disk. The stale content is limited to the Codex artifact viewer. Closing and reopening the artifact does not load the current version. The updated version appears only after fully restarting Codex and opening the file again.
This appears to be a session-level preview cache invalidation bug.
What steps can reproduce the bug?
- Open a non-code artifact in Codex Desktop.
- Update the underlying file without changing its path.
- Open or revisit that file in the same Codex session.
- Observe that Codex displays the original version opened earlier.
- Fully quit and restart Codex.
- Open the same file again.
- Observe that Codex now displays the updated version.
What is the expected behavior?
When the underlying file changes, Codex should invalidate the cached preview and display the latest version. An explicit refresh action should also be available if automatic invalidation is not possible.
Impact
This makes in-app visual verification unreliable. Users may incorrectly conclude that an edit failed, repeat work, or overwrite a correct updated artifact because Codex is displaying stale content.
Suggested fix area
- Invalidate preview caches when file modification time, size, hash, or revision changes.
- Reload cached artifacts after filesystem change notifications.
- Provide an explicit "Reload from disk" action.
- Ensure reopening a file within the same session resolves its current contents rather than the first-opened snapshot.
1 Comment
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action