- library deleteMutation.onSuccess: only paths the server really deleted
leave the selection (accumulated across 200-path chunks); kept files
stay checked, current focus cleared only when its file is gone;
in-modal freed-file delete and card-delete-with-file prune the same way
- usage modal: direct delete offered whenever valid_total === 0,
regardless of invalid_total (dead references never block); invalid
count note kept in both branches
- e2e runner: isolated_data_removed recorded after the
TemporaryDirectory context exits and exact child PIDs are waited on
(daemon PID compared first); isolated dir recorded for verification
- locate gold ring: static ring kept, pulse moved to a ::before feedback
layer animated with transform/opacity only (no box-shadow repaint),
gated to data-motion=full; calm/off/reduced-motion stay static
- e2e: +14 checks (46 total) — mixed kept/deleted selection, failed
request retry, cross-200-batch with kept file, invalid-only in-modal
delete, ring computed-style/keyframe evidence; HEL884_STRICT=0 records
the full before-fix failure table
Co-authored-by: multica-agent <github@multica.ai>
- GET /api/library/media/usage: read-only occupancy report per file —
every live canvas card with canvas title, project/session scope, and
the real consequence of deleting that card (deletes_file / keep reason)
- _path_on_canvas joins canvas: orphan nodes (canvas row gone, FK-cascade
dead metadata) no longer count as occupancy; they are reported as
invalid references with totals instead of blocking deletion
- canvas deleteNode: keep_file=true release-only variant (card removed,
file always preserved); artifact cards with a live pending/running job
refuse deletion (409) so completion events cannot resurrect them
- library UI: occupancy modal on kept(on_canvas) with locate / delete
card (accurate impact text) / release-only actions, per-path free-file
delete closing the loop, invalid-reference note, offset paging for
large counts, library selection persisted across canvas round-trips
- canvas UI: ?locate=<node> deep-link centers the card (computed
viewport, no store.fitView — its nodes write-back looped the graph
rebuild effect), gold ring highlight + dismiss, back-to-library chip
- i18n keys for all 7 languages; e2e runner + 32-check real-browser
regression on isolated data
Co-authored-by: multica-agent <github@multica.ai>
List only excludes project-data refs, but delete also kept canvas-card
files with the same 'referenced' reason the UI merged into 被项目使用或
无法删除 — every fresh playground output (materialized as a canvas card)
looked undeletable from 素材库 with a wrong explanation.
Backend: split the kept reason into referenced (project data) vs
on_canvas (live canvas card); protections unchanged.
Frontend: per-reason kept summary with counts and an actionable hint,
error toast names failure and stays retryable, readable API error text.
E2E: isolated real-page regression (cancel/single/batch/retry) +
backend tests for the on_canvas reason.
Co-authored-by: multica-agent <github@multica.ai>
LM Studio's OpenAI-compat endpoint silently ignores chat_template_kwargs
(probed live); reasoning_effort "none" verifiably removes reasoning tokens
on both streaming and blocking paths. Pass it through the existing
LLMClient extra_body channel for translate/polish first and correction
requests only; all other callers keep their default policy.
Co-authored-by: multica-agent <github@multica.ai>