With Show Missing Links on, a links.marked call from a caller confined to
other read folders saw a linked file outside them as missing and wrote that
answer to the markers the canvas draws, putting a missing-link badge on a
file that is there. The call now updates the markers only when its read
folders match those the document was opened with and no script gate is in
force; otherwise the caller gets its own answer.
missing_markers left out hidden artwork when it scanned, so a missing
link on a hidden layer when View > Show Missing Links turned on got no
marker once shown: until the next look on the desktop, and never in the
web app, which has no link watch worker and marked only once, when the
toggle turned on. The scan now keeps hidden art, and the canvas leaves
it out while it is hidden (links.marked lists visible art as before).
The web app now finds its markers again in place whenever the art
changed (Session::mark_missing_links_in_place), so artwork restored or
placed while the overlay is on is marked too. It has no files to read;
the desktop still scans on the link watch worker, and the toggle reads
no files on either.
A regression covers hide, enable, show through the worker and in place,
and delete then undo in place.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
missing_markers called probe, which reads and hashes a linked file whose
size or modification time differs from its stored link. With Update
Links set to Manually that difference stays, so every look of the link
watcher read the whole file again while the markers were on, for a
Modified result the markers throw away. They now use missing(), which
returns the same answer as probe for Missing (not found, or found but
unreadable) and opens a changed file without reading its content.
probe is unchanged for its other callers.
The toggle test also checks that no probe runs on the calling thread.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
view.showMissingLinks no longer probes linked files: a changed file was
read in full and hashed or decoded before the command returned, which
could stall the desktop UI on a large or slow asset. Turning the overlay
on now leaves its markers unscanned; Session::missing_link_scan_due tells
the desktop link watcher to start a look at once, and the canvas repaints
from the worker's result. links.marked keeps its synchronous inspection.
A test gates the probe of one linked file and checks that the toggle
returns before the probe completes, and that the probe runs on the
link-watch worker.
Co-Authored-By: Claude Opus 5.5 <[email protected]>