MCP pattern: explicit unsaved-changes policy for closing design docs, avoiding agent deadlocks
jangtrinh · reddit · 2026-11-26
A practical MCP pattern for design servers: after an agent finishes editing a .fig/.designos file, it often gets stuck on the native "Save changes?" dialog, which no tool can answer.
DESIGN:OS Studio v0.7.6 adds designosclosedocument to its MCP server: you pass an explicit policy for unsaved changes plus an optional save path. The reproducible loop:
- Finish edits with applyspec / applybatch / updatenode
- To keep the file, call designossavefile first (or pass a save path into close)
- Call designosclosedocument with the policy the user actually chose — never invent discardchanges yourself
- On failure, read errorkind / nextstep; v0.7.6 also surfaces LOOPSUSPECTED when the agent repeats a failing call
Studio is a free AI-first Figma alternative, source-available under PolyForm Shield; the v0.7.10 MCP snapshot exposes 39 tools.
More from coding & agent
- Agent-native GTM teams need full-stack plus agent engineering, LangChain job post shows — BraceSproul · 2026-12-06
- Cohere Team to Host NeurIPS Panel on Shipping Frontier Research into Regulated Industries — Julianfmack · 2026-12-06
- Agentic commerce in action: snap a QR code and your agent pays for parking and donations — jeff_weinstein · 2026-12-06
- Voice agent dev: even fastest LLM API leaves laggy responses, users hang up — FalseSort5750 · 2026-12-06
- Liquid Glass UI: open-source WebGL2 React components that bend the page — GCWebDesigner · 2026-12-06
- OpenCode's Tinsel Alpha goes free: 1M-context multimodal coding model, rumored to be Muse Spark 1.4 underneath — talkaboutdesign · 2026-12-06