Skip to content

Fix #925: linked files changed in another app update when the window comes back - #931

Merged
bflatastic merged 1 commit into
mainfrom
fix/925-links-on-focus
Oct 10, 2026
Merged

bflatastic merged 1 commit into
mainfrom
fix/925-links-on-focus

Conversation

@bflatastic

Copy link
Copy Markdown
Member

Fixes #925.

Preferences › File Handling › Update Links only acted when a document opened. A linked image edited in another app while VectorCraft stayed open kept its old pixels until Update Link in the Links panel, even with Automatically chosen.

Now, when the window comes back to the front, the active document's links are checked (links.check):

  • Automatically: changed files are read again (links.update).
  • Ask When Modified (the default): they're offered for update, once per change of a file. The change is keyed by path, size and modification time, since two saves can share a time.
  • Manually: nothing happens; the Links panel shows them as modified.

Nothing is asked while a dialog is open. The check uses the file's size and modification time first and reads the file only when they differ, so coming back to the window costs a few stat calls. Docs: docs/control-protocol.md, docs/mcp.md; ROADMAP updated.

Tested:

  • cargo xtask ci (all 7 steps).
  • New test a_link_changed_in_the_background_follows_update_links_on_focus: the window-focus event requests the check; Ask When Modified asks once per change and again for a new one; Automatically updates without asking; Manually leaves the link modified.

🤖 Generated with Claude Code

…comes back

Preferences › File Handling › Update Links only acted when a document
opened, so a linked image edited in another app while VectorCraft stayed
open kept its old pixels until Update Link in the Links panel, even with
Automatically chosen.

When the window comes back to the front, the active document's links
are now checked. With Automatically, changed files are read again; with
Ask When Modified, they are offered for update, once per change of a
file (keyed by path, size and modification time, since two saves can
share a time); with Manually, the Links panel shows them as modified.
Nothing is asked while a dialog is open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bflatastic
bflatastic merged commit 5ccbbcc into main Oct 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

linked file does not update automatically

1 participant