mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-30 05:16:56 -06:00
`file.open` on a path already open in a tab switched to it and returned its index, even when another process had changed the file since, so the caller kept looking at the old copy with nothing saying so (#997). The tab's disk stamp from #1330 (`DocState::on_disk`) now tells: - the result says `stale: true` when the file on disk differs from what the tab read or last saved; - `reload: true` reads the file again into the tab, as Revert to saved does (refused while the tab has unsaved changes or is in a live session), and the result says `reloaded: true`. MCP's `open_file` takes `reload` and passes it on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>