Repository navigation
File preview: reload only when the open file actually changes #20927
Replies: 2 comments
|
+1 — this is really annoying in practice, especially when using T3 Code remotely. Trying to read or interact with an HTML preview while the agent is working becomes frustrating because it keeps reloading after agent actions, even when the open file has not changed. Losing your place or page state repeatedly makes the preview difficult to use alongside an active agent. Strongly support checking whether the open file actually changed before reloading it. If the contents are unchanged, the preview should stay untouched so we can keep using it while the agent works. |
|
Reproduced on stable 0.1.11, desktop app, macOS. A local HTML file opened in the file preview panel reloads and loses its in-page state (for example, the current slide in a deck) while the agent is thinking, not only after commands or file edits. It is the same behavior as #20913 and #27681, which were closed as intended. This discussion asks for a reload only when the open file changes, so the thinking-phase reload would be covered by that fix too. I have not confirmed whether a tool call or checkpoint completed inside that window. |
Uh oh!
There was an error while loading. Please reload this page.
The file preview reloads an open HTML page after every finished command, file edit or checkpoint (
workspace-revisioninFilePreviewPanel.tsx), even when the open file hasn't changed. Any page state is lost, so a slide deck or long report you're reading jumps back to the top while the agent keeps working. Follow-up to #20913.Idea: keep the refresh signal, but compare the open file before reloading:
file_changethat names other paths could skip the check entirely; acommand_execution(paths unknown) still triggers it.That keeps today's guarantee (a shell command that rewrites the file still refreshes the preview) without reloading pages nobody touched.
All reactions