# QA: In-Chat HITL via useInterrupt — LangGraph (Python) ## Prerequisites - Demo is deployed and accessible at `/demos/gen-ui-interrupt` on the dashboard host - Agent backend is healthy (`/api/health`); `OPENAI_API_KEY` is set on Railway; `LANGGRAPH_DEPLOYMENT_URL` points at a LangGraph deployment exposing the `interrupt_agent` graph - Note: The picker card is rendered INLINE inside the chat transcript via `useInterrupt({ renderInChat: true })`, wired to langgraph's `interrupt()` primitive from the backend `schedule_meeting` tool. ## Test Steps ### 1. Basic Functionality - [ ] Navigate to `/demos/gen-ui-interrupt`; verify the page renders within 3s with the `CopilotChat` centered in a `max-w-4xl` container filling full viewport height, with rounded (`rounded-2xl`) styling - [ ] Verify the `CopilotChat` input placeholder is visible and the transcript is empty on first load - [ ] Send "Hello" and verify the agent responds with a text-only reply (no time picker rendered — the agent only calls `schedule_meeting` when explicitly asked to book/schedule) ### 2. Feature-Specific Checks #### Suggestions - [ ] Verify both suggestion pills are visible with verbatim titles: - "Book a call with sales" - "Schedule a 1:1 with Alice" #### Interrupt Trigger + Inline Render (useInterrupt low-level primitive) - [ ] Click the "Book a call with sales" suggestion (or prompt equivalently) - [ ] Within 20s verify the agent invokes `schedule_meeting`, the backend hits `interrupt({topic, attendee})`, and a time-picker card renders INLINE inside the chat transcript with `data-testid="time-picker-card"` - [ ] Confirm the card IS a descendant of the chat transcript container (NOT portaled to `
`, unlike the `hitl-in-app` modal) — inspect in DevTools to verify the card sits between chat message bubbles - [ ] Verify the card header shows eyebrow "Book a call" and a topic heading reflecting the agent-supplied topic (e.g. contains "sales" / "pricing") - [ ] Verify the "Pick a time:" subheading and a 2x2 grid of exactly 4 slot buttons with the default labels: - "Tomorrow 10:00 AM" - "Tomorrow 2:00 PM" - "Monday 9:00 AM" - "Monday 3:30 PM" - [ ] Verify a "None of these work" ghost button is rendered below the slot grid #### Pick-a-Slot Resume Path - [ ] Click one of the four time slot buttons (e.g. "Monday 9:00 AM") - [ ] Verify the card immediately switches to the confirmed state: `data-testid="time-picker-picked"`, green-tinted border/background, and text "Booked for