mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
f5fbc35fc2
Closes the interrupt architectural-divergence gap for ms-agent-python
and ms-agent-dotnet. Pairs with PDX-68 — same gating mechanism as the
a2ui parity commit.
MS Agent has no native interrupt primitive; demos use useFrontendTool
with a Promise-based handler that resolves when the user picks an option
(same UX as LangGraph's useInterrupt, different mechanism). New region
names describe the promise-based shape rather than overloading the
canonical names:
ms-agent-python + ms-agent-dotnet:
gen-ui-interrupt:
frontend-promise-handler — useFrontendTool with promise resolver
backend-tool-call — agent-side trigger that fires the tool
interrupt-headless:
headless-promise-primitives — headless equivalent of the same flow
(also picks up backend-tool-call from the shared agent file)
MDX restructure (3 docs pages):
- /human-in-the-loop/useInterrupt.mdx
- /human-in-the-loop/headless.mdx
- /programmatic-control.mdx
Each now has parallel <WhenFrameworkHas interrupt_pattern=...> blocks:
native → existing langgraph regions (backend-interrupt-tool,
frontend-useinterrupt-render, headless-useinterrupt-
primitives) with the existing prose
promise-based → the new regions above with prose explaining the
Promise-based shim ('same UX, different mechanism')
Frameworks where interrupt cells are unshipped (no interrupt_pattern in
their manifest) see neither block — that's the correct behavior; engineering
fills in the field once the demo ships.