Skip to content

feat(showcase/built-in-agent): D6 BIA component port — tool-rendering + headless-complete + LGP-canonical naming - #5427

Merged
jpr5 merged 10 commits into
mainfrom
fix/bia-component-port
Jun 15, 2026
Merged

jpr5 merged 10 commits into
mainfrom
fix/bia-component-port

Conversation

@jpr5

@jpr5 jpr5 commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Summary

BIA D6 component port (#4 from PR #5413 followup list). Companion to PR #5407 (claude-sdk-python), PR #5413 (initial BIA D6), PR #5421 (BIA D6 small follow-ups). Brings BIA closer to LGP gold-standard parity.

What's in

  • tool-rendering: 5 LGP-mirrored companion components (weather-card, flight-list-card, stock-card, d20-card, custom-catchall-renderer) + extracted tool-renderers.tsx wiring. D6 GREEN.
  • headless-complete: 2 new components (stock-card, chart-card) + get_revenue_chart server tool + LGP-aligned 4 pill suggestions + data-message-role on bubble cascade + get_weather tool name fix in tool-renderers. Turns 1 (weather) + 2 (stock) GREEN.
  • roll_dice → roll_d20 rename across BIA backend + reasoning-chain references (LGP canonical naming).
  • aimock fixtures: BIA-namespaced tool-rendering.json updated + tool-rendering-reasoning-chain.json realigned to the rename.
  • PARITY_NOTES: documents the server-tool reprompt loop architectural gap blocking turns 3+4 of headless-complete.

Known issue (documented in PARITY_NOTES.md, out-of-PR-scope)

headless-complete turns 3 (highlight_note) and 4 (revenue_chart) RED due to BIA's TanStack multi-turn server-tool reprompt cycle + aimock userMessage-keyed fixtures looping until timeout. Three remediation options identified — all require changes outside this PR's scope (BIA agent architecture / aimock matcher precedence / fixture matcher gating).

Test plan

  • Local --direct D6 on tool-rendering: GREEN (2.8s)
  • Local --direct D6 on headless-complete: turns 1+2 GREEN, turns 3+4 RED (documented)
  • CI green on PR

jpr5 added 4 commits June 12, 2026 12:12
…mponents (weather, flight, stock, d20, custom-catchall) + tool-renderers wiring
…art-card + get_revenue_chart server tool + LGP-aligned suggestions
… conversation-runner cascade (data-message-role + get_weather wiring)
@vercel

vercel Bot commented Jun 12, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
chat-with-your-data Ready Ready Preview, Comment Jun 12, 2026 9:54pm
docs Ready Ready Preview, Comment Jun 12, 2026 9:54pm
form-filling Ready Ready Preview, Comment Jun 12, 2026 9:54pm
research-canvas Ready Ready Preview, Comment Jun 12, 2026 9:54pm
travel Ready Ready Preview, Comment Jun 12, 2026 9:54pm

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

📣 Social Copy Generator

Generate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.

  • Generate social media copies

@github-actions

github-actions Bot commented Jun 12, 2026 •

Copy link
Copy Markdown
Contributor

Production Digest-Pinning Audit

12 of 41 service(s) not digest-pinned.

Service Source.image Status
starter-adk ghcr.io/copilotkit/starter-adk:latest mutable-tag
starter-agno ghcr.io/copilotkit/starter-agno:latest mutable-tag
starter-crewai-crews ghcr.io/copilotkit/starter-crewai-crews:latest mutable-tag
starter-langgraph-fastapi ghcr.io/copilotkit/starter-langgraph-fastapi:latest mutable-tag
starter-langgraph-js ghcr.io/copilotkit/starter-langgraph-js:latest mutable-tag
starter-langgraph-python ghcr.io/copilotkit/starter-langgraph-python:latest mutable-tag
starter-llamaindex ghcr.io/copilotkit/starter-llamaindex:latest mutable-tag
starter-mastra ghcr.io/copilotkit/starter-mastra:latest mutable-tag
starter-ms-agent-framework-dotnet ghcr.io/copilotkit/starter-ms-agent-framework-dotnet:latest mutable-tag
starter-ms-agent-framework-python ghcr.io/copilotkit/starter-ms-agent-framework-python:latest mutable-tag
starter-pydantic-ai ghcr.io/copilotkit/starter-pydantic-ai:latest mutable-tag
starter-strands-python ghcr.io/copilotkit/starter-strands-python:latest mutable-tag

Run 2026-06-12 14:51:20 PDT — 12 finding(s).

jpr5 added 2 commits June 12, 2026 12:22
@jpr5
jpr5 force-pushed the fix/bia-component-port branch from 89c1eee to 0ddf1c0 Compare June 12, 2026 19:22
jpr5 added 3 commits June 12, 2026 14:50
…to avoid shadowing gen-ui-headless-complete pills

The legacy bare 'AAPL' userMessage matchers in tool-rendering.json were
substrings of gen-ui-headless-complete's 'price of AAPL right now'
pill prompt, so when the BIA TanStack server-tool reprompt loop hit
iteration 2 (toolCallId chain broken by /v1/responses id rewriting),
the request fell through to tool-rendering.json's loose 'AAPL'
matchers and leaked wrong-card content. Tightened all four bare 'AAPL'
match keys to 'current price of AAPL' — preserves matching for the
tool-rendering 'Stock price' pill ("What's the current price of
AAPL?") and the custom-catchall probe's second prompt ("What's the
current price of AAPL?") while no longer matching the headless
probe's "What's the price of AAPL right now?".
…uenceIndex to break BIA reprompt loop

BIA registers headless-complete's tools (get_weather, get_stock_price,
get_revenue_chart, highlight_note) as server-executed via TanStack's
chat() engine. After the LLM returns a tool call, TanStack runs the
server tool and reprompts the LLM with the result. The userMessage-keyed
toolcall fixtures fired again on every reprompt because the original
user pill text stays in conversation history — and the toolCallId-keyed
narration fallback never matched because BIA's /v1/responses endpoint
rewrites the assistant tool_call_id to a runtime-generated fc-… value.
Net effect: turns 3+4 (highlight, revenue chart) ballooned to 70+
assistant messages within the 60s timeout window.

Restructured each pill as a (sequenceIndex:0 emitter, narration
fallback) pair. The emitter matches the FIRST request for the pill
prompt (counter starts at 0) and emits the tool call; subsequent BIA
reprompt iterations fall through the now-exhausted emitter to the
narration fallback (no tool call), so the loop converges. sequenceIndex
is chosen over hasToolResult:false because hasToolResult is computed
across the entire thread — any earlier pill's tool result would
permanently disable a hasToolResult:false emitter, breaking multi-turn
sessions where turn 2+ would have hasToolResult=true globally.
…eadless-complete reprompt-loop known-issue

* duplicate ceiling 290→291: tool-rendering.json's tightened 'current
  price of AAPL' matchers now share two match keys with the existing
  tool-rendering-custom-catchall.json entries in the same BIA context,
  runtime-disambiguated by feature route.
* shadow ceiling 134→132 (ratchet down): the bare 'AAPL' vs 'current
  price of AAPL' shadow pair on the tool-rendering.json side is gone.
* PARITY_NOTES: replaces the 'headless-complete turns 3+4 server-tool
  reprompt loop' known-issue section with a resolved-via-sequenceIndex
  description; the architectural reprompt loop now converges via the
  sequenceIndex-gated emitter + narration-fallback pattern in
  gen-ui-headless-complete.json.
@jpr5
jpr5 merged commit cb9fbe4 into main Jun 15, 2026
29 checks passed
@jpr5
jpr5 deleted the fix/bia-component-port branch June 15, 2026 03:15

This branch was successfully deployed

5 active deployments
Preview – docs — 8b6052ac Deployed Jun 12, 2026 by vercel[bot]
Preview – research-canvas — 8b6052ac Deployed Jun 12, 2026 by vercel[bot]
Preview – travel — 8b6052ac Deployed Jun 12, 2026 by vercel[bot]
Preview – form-filling — 8b6052ac Deployed Jun 12, 2026 by vercel[bot]
Preview – chat-with-your-data — 8b6052ac Deployed Jun 12, 2026 by vercel[bot]
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