From 97ecde45b8bf540a6d238ab0f26e7afa3997e554 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Fri, 4 Dec 2026 12:56:43 -0800 Subject: [PATCH] Links: describe when links.marked leaves the canvas markers alone The canvas markers stay as they are when the caller's read folders do not cover the same files as the document's, or when a script command makes the call. The links.marked help text, docs/mcp.md and the progress-doc line now say both, in place of "read folders differ". --- crates/engine/src/cmd/links.rs | 2 +- docs/mcp.md | 3 ++- docs/target-app-parity.md | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/engine/src/cmd/links.rs b/crates/engine/src/cmd/links.rs index e6de3f1cdd..3851aeefac 100644 --- a/crates/engine/src/cmd/links.rs +++ b/crates/engine/src/cmd/links.rs @@ -44,7 +44,7 @@ pub fn specs() -> Vec { "{on?: bool (default: toggle)} show non-printing red outlines and badges on missing linked images and placed documents in the active document; transient view state, no undo step; reads no files (the desktop app scans in the background, links.marked inspects now) → {on}", has_doc, show_missing_links), cmd!(query "links.marked", "Marked Missing Links", [], None, - "{} inspect missing links now; only visible image objects and placed documents are marked, and none when the toggle is off; a caller whose read folders differ from the document's gets its own answer and the canvas markers stay as they are → {on, images: [{id, bounds: [x0, y0, x1, y1]}]}", + "{} inspect missing links now; only visible image objects and placed documents are marked, and none when the toggle is off; a caller whose read folders do not cover the same files as the document's, or a script command, gets its own answer and the canvas markers stay as they are → {on, images: [{id, bounds: [x0, y0, x1, y1]}]}", has_doc, marked), cmd!( query "links.check", diff --git a/docs/mcp.md b/docs/mcp.md index b679b33f3b..c4c3d9411e 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -74,7 +74,8 @@ Use `run_command` with these engine commands (the `command_run` alias takes the `links.marked` refreshes file status and returns `{on, images: [{id, bounds: [x0, y0, x1, y1]}]}` for visible missing linked images and placed documents in the active document. -A caller whose read folders differ from those the document was opened with gets an answer +A caller whose read folders do not cover the same files as those the document was opened +with, and a call made from a script command, gets an answer that lists a linked file it cannot read as missing, even when the file exists and the canvas shows no marker for it. The markers on the canvas stay as they are. When the toggle is off, `images` is empty; `links.list {show: "missing"}` still lists missing diff --git a/docs/target-app-parity.md b/docs/target-app-parity.md index cef0fa95ea..de88f40802 100644 --- a/docs/target-app-parity.md +++ b/docs/target-app-parity.md @@ -2638,7 +2638,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur - On the desktop with Enable Background Export on, Export for Screens and the Asset Export panel's Export encode and write their files (into the folder, or one ZIP in it) from the document as it was at OK on the thread that writes background saves and exports, with "Exporting" in the status bar and the export progress dialog, which counts the files and whose Cancel stops before the next file. `document.exportForScreens` and `assets.export` over MCP and scripts reply as before. - With Enable Background Export on, an Export for Screens with no folder of its own also writes in the background into the folder its `exportPreset` keeps, with the same progress dialog and Cancel, and the status bar names that folder. When that folder is outside an MCP client's read roots, the reply, its errors and the status bar name it by its own name, as for an export made at once (`dialogs::tests_screens::an_export_into_a_presets_folder_writes_in_the_background`, `fileio::tests_screens::a_prepared_export_into_a_presets_folder_outside_the_read_root_leaves_it_out`). Behavior reference: the help page, https://helpx.adobe.com/illustrator/using/exporting-artwork.html (exports run in the background by default). - On the desktop with Enable Background Save on (Preferences › File Handling), a save that is still being written after 0.4 s shows in the same progress window, with the file name, a moving bar (a save counts no steps), how many more saves wait, Cancel (also Esc) and Continue in Background; it never opens over another dialog or progress window. Cancel (`file.cancelSave`) stops the save before it replaces the file: the file stays as it was, the document keeps its file and format and stays modified, and the status bar says the save was canceled. A save whose file was already being replaced finishes and is reported as saved, unless another command or job has set a status line since the Cancel, and a save of several files (EPS with Use Artboards) whose first file is in place writes the rest. Continue in Background (`file.saveInBackground`) closes the window and leaves the save to the status bar (`export_progress::tests::a_background_save_shows_in_the_window_and_continue_hides_it`, `tests::background::a_canceled_save_writes_nothing_and_keeps_the_document_modified`, `tests::background::a_line_set_after_cancel_save_stays`, `fileio::tests::a_canceled_save_leaves_the_file_as_it_was`, `fileio::tests::a_save_canceled_after_its_first_file_writes_them_all`, `atomic::tests::canceled_work_puts_nothing_in_place`). Behavior reference: the help page, https://helpx.adobe.com/illustrator/using/saving-artwork.html (each background save shows its progress and can be canceled). - - A confined `links.marked` query leaves the canvas missing-link markers unchanged when its read folders differ from those the document was opened with. Its answer lists a linked file it cannot read as missing, even when the file exists and the canvas shows no marker for it. Evidence: `tests::missing_links::a_confined_marked_query_leaves_the_canvas_markers_alone` in `crates/engine/src/tests/missing_links.rs`. + - A confined `links.marked` query leaves the canvas missing-link markers unchanged when its read folders do not cover the same files as those the document was opened with, or when a script command makes the call. Its answer lists a linked file it cannot read as missing, even when the file exists and the canvas shows no marker for it. Evidence: `tests::missing_links::a_confined_marked_query_leaves_the_canvas_markers_alone` in `crates/engine/src/tests/missing_links.rs` for the read folders, and `marked` in `crates/engine/src/cmd/links.rs` for script commands. - Missing linked files can be looked for in a folder and its subfolders: Find in Folder… in the Linked File Not Found dialog and in the Links panel menu lists the files with each one's name, those with the size and contents saved with the link first, and relinks the files chosen, copying an image's file into the document's folder when asked, without replacing a file there (`links.findFiles`, `links.relink {copy}`). In the Links panel it looks for the selected linked files when any are selected. - The Links panel's Relink… opens a Relink dialog whose Replace menu picks which links take the new file: Selected Instances (the selected images, as before), All Instances (every image linked to the same file), Missing Links from This Folder (then every other missing link whose file name is in the new file's folder) and Each Link Separately (a file for each selected link in turn). Each relinks as one undo step (`links.relink {scope}`, `ui.relinkDialog`). Relink to Folder… stays as it is. - The Links panel menu's Copy Info ([Links panel](https://helpx.adobe.com/illustrator/desktop/add-and-import-files/import-from-other-apps/links-panel-in-illustrator.html)) copies the selected link's file name to the clipboard (`links.copyInfo`). VectorCraft's own rules: with several rows selected it copies one name per line in the order the panel shows them, an embedded image gives the name its row shows, and the item is off with no row selected.