Repository navigation
feat(showcase/built-in-agent): D6 BIA component port — tool-rendering + headless-complete + LGP-canonical naming - #5427
Merged
Merged
Conversation
…mponents (weather, flight, stock, d20, custom-catchall) + tool-renderers wiring
…P canonical naming
…art-card + get_revenue_chart server tool + LGP-aligned suggestions
… conversation-runner cascade (data-message-role + get_weather wiring)
jpr5
requested review from
marthakelly,
mme,
ranst91 and
tylerslaton
as code owners
June 12, 2026 19:13
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📣 Social Copy GeneratorGenerate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.
|
Contributor
Production Digest-Pinning Audit12 of 41 service(s) not digest-pinned.
Run 2026-06-12 14:51:20 PDT — 12 finding(s). |
…endering-reasoning-chain + shadow-ceiling 128→134
…complete server-tool reprompt loop
jpr5
force-pushed
the
fix/bia-component-port
branch
from
June 12, 2026 19:22
89c1eee to
0ddf1c0
Compare
…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.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
weather-card,flight-list-card,stock-card,d20-card,custom-catchall-renderer) + extractedtool-renderers.tsxwiring. D6 GREEN.stock-card,chart-card) +get_revenue_chartserver tool + LGP-aligned 4 pill suggestions +data-message-roleon bubble cascade +get_weathertool name fix in tool-renderers. Turns 1 (weather) + 2 (stock) GREEN.tool-rendering.jsonupdated +tool-rendering-reasoning-chain.jsonrealigned to the rename.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
--directD6 on tool-rendering: GREEN (2.8s)--directD6 on headless-complete: turns 1+2 GREEN, turns 3+4 RED (documented)