-
fix(mermaid): draw aspect-profile diagrams outside their render scope; add swarm:clear_plan
发布于
2026-07-06 02:20:55 +00:00 Two fixes for the 'plan graph reserves blank space but never draws' report:
-
Inline mermaid diagrams rendered toward an inline aspect goal are cached
under an aspect-tagged RenderProfile, but the draw/probe paths
(inline_image_is_materialized, get_cached_diagram_in_memory) ran outside
that aspect scope and only checked the default profile key. The prewarm
worker would 'succeed' forever without the probe ever flipping, leaving a
permanently blank placeholder region. Probe now matches any profile for
the hash, and the in-memory lookup falls back to any cached profile. -
Stale swarm plans could not be cleared: added swarm:clear_plan: debug
command that removes the plan from memory and re-persists state. Also stop
load_runtime_state from union-loading .bak siblings when the primary .json
exists, which would resurrect deliberately dropped plans on every server
restart (the write path rotates the old plan-bearing snapshot to .bak).
下载附件
-