You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AI Workflow Preset Switching & Enable/Disable (canvas_preset tool)
action: "list": Returns current canvas status (enabled state, active preset name, node summary, running/paused flags), synced user presets, and all 5 built-in starter templates (tpl-swe, tpl-prd, tpl-ab, tpl-cond, tpl-loop) — usable even when the canvas is disabled.
action: "apply": Switches the current session canvas to a user preset or built-in template by exact name, template id, or unique partial match (lists candidates on ambiguity; supports optional task override & enabled flag; blocks while a run is active or paused at a Lead gate).
action: "toggle": Enables or disables the current session canvas in place without altering node positions, layout, or undo history.
Mismatch Awareness: buildActiveCanvasContext and canvas_inspect now expose the active preset name and remind the agent to check with the user before running a mismatched workflow.
Zero-Noise Preset Sync: User presets and active preset name piggyback on /canvas-sync and persist globally in .workflow-canvas-state.json across sessions.
Optimizations & Fixes
Plugin-Wide Tool Schema Diet (Lower Per-Turn Token Cost Than v1.6.2)
Trimmed verbose descriptions across all 5 tools (canvas_generate, canvas_patch, canvas_inspect, canvas_preset, canvas_workflow) and SKILL_DESCRIPTION while keeping every parameter, enum, and invariant intact (~35% smaller total tool definitions; compact list output when >20 user presets exist).
Layout & State Polish
Auto-layout now runs in both horizontal (lr) and vertical (tb) modes whenever an imported or AI-applied canvas lacks node coordinates; built-in templates respect the user's current lr/tb preference while saved user presets restore their saved direction.
Clearing the canvas now properly resets the tracked active preset name.
Verification
npm run check: 13/13 passed (including new lib/presets.js)