mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
fae400eddf
Work in progress on top of the OSS-578 parity branch, committed to preserve it outside the worktree rather than to ship it. Retires the byoc-* QA docs and e2e specs and adds declarative-* replacements, plus new QA docs and specs for a2ui-recovery, a2ui-fixed-schema, beautiful-chat, gen-ui-interrupt, interrupt-headless, mcp-apps, reasoning-default, reasoning-custom, threadid-frontend-tool-roundtrip and tool-rendering-reasoning-chain. declarative-gen-ui.spec.ts is largely rewritten. Also touches agent_server.py, readonly_state_agent_context.py, the copilotkit route and PARITY_NOTES.md. Unreviewed and unverified. PR #6235 is untouched: this goes to its own branch because the local branch and the PR branch have diverged.
1.6 KiB
1.6 KiB
QA: Interrupt (Headless) — Claude Agent SDK (Python)
Stub — authored for column completeness. This is a testing-kind demo (see
kind: "testing"inshowcase/shared/feature-registry.json) and does not warrant a full manual checklist. The cell is additionally quarantined undernot_supported_featuresinmanifest.yaml(shared upstream@copilotkit/react-core/v2resume-path defect).
Prerequisites
- Demo is deployed and accessible
- Agent backend is healthy;
ANTHROPIC_API_KEYset. The cell uses the shared/api/copilotkitruntime with agentinterrupt-headless, mapped to the FastAPIPOST /interrupt-adaptedendpoint (src/agents/interrupt_agent.py)
Test Steps
- Navigate to /demos/interrupt-headless and verify the left app surface
(
data-testid="interrupt-headless-app-surface") shows the empty state (data-testid="interrupt-headless-empty", "Nothing scheduled yet") - Send a scheduling prompt (e.g. the "Book a call with sales" pill) and verify a time-slot picker popup (
data-testid="interrupt-headless-popup") appears in the left app surface, not in the chat - Click one of the time-slot buttons and verify the popup disappears and the agent confirms the booking back in the chat
Expected Results
- Page loads without errors
- Interrupt resolves via the plain button grid (no
useInterruptrender prop, no in-chat picker) and the agent continues the run with the picked slot - Known deviation: the turn-2 confirmation bubble may never append — that is the quarantined react-core resume-path bug, not an integration regression