Skip to content

feat(cockpit-chat): welcome chips backed by recorded aimock prompts (c-tool-calls, c-subagents, c-interrupts)#445

Merged
blove merged 5 commits into
mainfrom
claude/chat-chips-known-prompts
May 18, 2026
Merged

feat(cockpit-chat): welcome chips backed by recorded aimock prompts (c-tool-calls, c-subagents, c-interrupts)#445
blove merged 5 commits into
mainfrom
claude/chat-chips-known-prompts

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented May 18, 2026

Summary

Audit deliverable for task #1 of the post-migration follow-up queue. Adds welcome-suggestion chips to 3 cockpit chat caps whose aimock specs already exercise specific prompts but whose UIs surface nothing to first-time users. Each chip's `value` matches the corresponding aimock spec `PROMPT` constant byte-for-byte — clicking a chip drives a flow guaranteed to replay from the recorded fixture (no real OpenAI hit).

Cap Chip(s) added Matches spec
c-tool-calls "Look up flight UA123" → `What's the status of UA123?` c-tool-calls.spec.ts `PROMPT`
c-subagents "Plan a trip" → `Plan a trip from LAX to JFK` c-subagents.spec.ts `PROMPT`
c-interrupts "Book UA123 (confirm)" → `Book me on UA123.`
"Book AA404 (cancel)" → `Book me on AA404.`
c-interrupts.spec.ts (2 inline prompts)

Pattern mirrors c-generative-ui's existing chip wiring. Other 7 chat caps (messages, input, debug, theming, threads, timeline, a2ui) don't have aimock specs yet — chips deferred until aimock specs land (task #4 in the queue).

Test plan

  • `nx build` succeeds for cockpit-chat-tool-calls-angular, cockpit-chat-subagents-angular, cockpit-chat-interrupts-angular
  • `nx e2e cockpit-langgraph-streaming-angular` passes (1/1)
  • `nx e2e cockpit-chat-tool-calls-angular` passes (1/1)
  • `nx e2e cockpit-chat-subagents-angular` passes (3/3)
  • `nx e2e cockpit-chat-interrupts-angular` passes (2/2)
  • CI Cockpit gates green

CI note

Parallel domain changes may be in flight that turn unrelated CI jobs red. Local 4× cockpit aimock suite passed (7 total tests); Cockpit gates are the meaningful signal.

🤖 Generated with Claude Code

blove and others added 5 commits May 18, 2026 15:20
Audit deliverable for the suggested-prompts follow-up. Adds chips to
c-tool-calls, c-subagents, c-interrupts using the exact prompt strings
their aimock specs exercise. Closes the chip-vs-test drift surfaced
by the audit (3 caps have proven prompts but no chips today).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
6 tasks. 3 component edits (Tasks 1-3) + build verify (4) + e2e
regression (5) + push/PR/merge (6, orchestrator).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds one chat-welcome-suggestion whose value exactly matches the PROMPT
in cockpit/chat/tool-calls/angular/e2e/c-tool-calls.spec.ts. Users
clicking the chip drive a flow guaranteed to replay from the recorded
fixture (no real OpenAI hit).

Closes one row of the chip-vs-test drift surfaced by the suggested-
prompts audit (task #1 of the post-migration follow-up queue).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds one chat-welcome-suggestion whose value exactly matches the PROMPT
in cockpit/chat/subagents/angular/e2e/c-subagents.spec.ts (`Plan a trip
from LAX to JFK`). Users clicking the chip drive the recorded orchestrator
→ research/booking/itinerary subagent flow with no real OpenAI hit.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Two chat-welcome-suggestions, one per recorded flow:
- "Book UA123 (confirm)" → matches the spec's confirm-flow PROMPT.
- "Book AA404 (cancel)" → matches the spec's cancel-flow PROMPT.

Labels hint at the modal action (Accept vs Ignore) that produces the
recorded resume path. Users clicking either chip drive a flow guaranteed
to replay from the recorded fixture.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
threadplane Ready Ready Preview, Comment May 18, 2026 10:35pm

Request Review

@blove blove merged commit 48e5c40 into main May 18, 2026
17 of 18 checks passed
@blove blove deleted the claude/chat-chips-known-prompts branch May 18, 2026 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant