Repository navigation
fix(showcase): content-red dashboard remediation — spring-ai/ag2/cst/llamaindex - #5412
Merged
Merged
Conversation
jpr5
requested review from
marthakelly,
mme,
ranst91 and
tylerslaton
as code owners
June 12, 2026 11:09
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 08:01:09 PDT — 12 finding(s). |
Contributor
|
Size Change: 0 B Total Size: 1.01 MB ℹ️ View Unchanged
|
jpr5
added a commit
that referenced
this pull request
Jun 12, 2026
… runtime-disambiguated overlaps (PR #5412) The 5 new substring shadows are in d6 fixtures landed by this PR: - d6/ag2/gen-ui-declarative.json: 'Show me a quick KPI dashboard' inner-call mirror overlaps with pre-existing 'KPI dashboard' entry in render-a2ui.json (same toolName=render_a2ui, context=ag2). Runtime-disambiguated by load order (inner-call mirrors ordered BEFORE outer generate_a2ui fixtures per the _meta._note in that file). - d6/claude-sdk-typescript/gen-ui-declarative.json: same pattern as ag2. - d6/claude-sdk-typescript/tool-rendering.json: dropped userMessage/turnIndex gates on toolCallId-keyed follow-up fixtures (per _shape_note in that file — Anthropic /v1/messages shape needs toolCallId-only gating for multi-pill loop safety). The remaining ungated userMessage fixtures ('weather in Tokyo', 'AAPL') now substring-overlap with gen-ui-headless-complete and tool-rendering-reasoning-chain prompts in the same context. Runtime-disambiguated by toolCallId chains and first-match-wins ordering. These overlaps are exactly the runtime-disambiguated pattern the test comment endorses for ceiling bumps.
… reasoning canon, Jackson @primary mapper + RunErrorEvent wire-shape, error-banner pattern, Java tool JSON hardening, .ag-ui-sha pin + CI workflow
…ning canon, ASGI middleware for per-request user-message ContextVar, async OpenAI client, tool serialization, manifest demos cleanup (R9-A2)
…per-content-block array refactor for text/thinking/tool_use replay order, per-block randomUUID, reasoning route + alias coherence
…t + beautiful-chat agent updates, mcp-apps + copilotkit route alias coherence, demo-files assets
… agno comment + built-in-agent headless-simple UUID fallback + error banner across agno/crewai-crews/langroid/mastra/pydantic-ai/strands mcp-apps routes
…d-matcher narrowing, d6 per-family content-shape alignment, chunkSize emoji guard, threadid context gates
… runtime-disambiguated overlaps (PR #5412) The 5 new substring shadows are in d6 fixtures landed by this PR: - d6/ag2/gen-ui-declarative.json: 'Show me a quick KPI dashboard' inner-call mirror overlaps with pre-existing 'KPI dashboard' entry in render-a2ui.json (same toolName=render_a2ui, context=ag2). Runtime-disambiguated by load order (inner-call mirrors ordered BEFORE outer generate_a2ui fixtures per the _meta._note in that file). - d6/claude-sdk-typescript/gen-ui-declarative.json: same pattern as ag2. - d6/claude-sdk-typescript/tool-rendering.json: dropped userMessage/turnIndex gates on toolCallId-keyed follow-up fixtures (per _shape_note in that file — Anthropic /v1/messages shape needs toolCallId-only gating for multi-pill loop safety). The remaining ungated userMessage fixtures ('weather in Tokyo', 'AAPL') now substring-overlap with gen-ui-headless-complete and tool-rendering-reasoning-chain prompts in the same context. Runtime-disambiguated by toolCallId chains and first-match-wins ordering. These overlaps are exactly the runtime-disambiguated pattern the test comment endorses for ceiling bumps.
@copilotkit/a2ui-renderer
@copilotkit/agentcore-runner
@copilotkitnext/angular
@copilotkit/bot
@copilotkit/bot-slack
@copilotkit/bot-ui
@copilotkit/core
@copilotkit/react-core
@copilotkit/react-native
@copilotkit/react-textarea
@copilotkit/react-ui
@copilotkit/runtime
@copilotkit/runtime-client-gql
@copilotkit/sdk-js
@copilotkit/shared
@copilotkit/sqlite-runner
@copilotkit/voice
@copilotkit/vue
@copilotkit/web-inspector
commit: |
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
Content-red dashboard remediation across CopilotKit showcase integrations (spring-ai, ag2, claude-sdk-typescript, llamaindex). Aligns aimock fixtures (d4 and d6) with real backend output shapes, ports A2UI v0.9 declarative legs, quarantines unsupported features as NSF with the canonical d5-feature-mapping literals, adds route aliases the harness expects, and fixes backend bugs in the per-family agent stacks.
Verification (local
bin/showcase test <family> --d6baseline-vs-branch comparison)13 dashboard cells go from RED on
mainto GREEN on this branch:Zero regressions on spring-ai, claude-sdk-typescript. Pre-existing reds unchanged.
mcp-apps: was GREEN onmain, RED on this branch. Per-pill snapshot confirms (/tmp/cr/baseline-ag2-pills.jsonvs/tmp/cr/ag2-final-pills.json). Harness signature:assistant did not respond within 30000ms (turns_completed=0)→ "Run ended without emitting a terminal event". Root cause not localized; suspect interaction between R7-A1 (http.disconnectsynthesis dropped from request-context middleware) and the mcp-apps SSE shutdown path, but the middleware fix was deliberate ASGI semantics correction and reverting it re-opens the SSE-abort it was meant to address.Possible remediations (for follow-up):
/api/copilotkit-mcp-appsSSE close sequence under R7-A1's "always await real disconnect" semantics. If the inner FastAPI app holds the channel waiting for a real disconnect, the harness may time out before uvicorn signals it.more_body=Falsefor the inner app's final receive), not unconditionally.This regression was caught BY the verification gate, NOT bypassed. Documented here so reviewers can decide ship-as-is + follow-up vs hold-for-fix.
Pipeline summary
origin/main(203-commit gap caught at pre-push)pre-push-qualityclean: formatter (oxfmt + ruff) green, lint green, typecheck green, tests green, build green, docker build green (showcase-spring-ai:prepush-test3.62GB), actionlint green on new workflowbin/showcase test --d6verification per the user's hard gate — 5 families verified + baseline comparisonCoordinated work
Coordinated via
coordinatechannel with peer sessiondashboard-cell-fixes(PR #5407, merged: D6 manifest cleanup + claude-sdk-python testid backfill, 13 manifests excluding ag2 + spring-ai). Manifests ag2 + spring-ai are this PR's territory; non-overlap confirmed.Test plan — what improved
Per-family local
bin/showcase test <family> --d6baseline-on-main vs branch (per-pill PocketBase snapshots in/tmp/cr/{baseline,our}-*-pills.json). The change attributable to this PR:auth,gen-ui-open,gen-ui-open-advanced,headless-simple,subagents,tool-rendering-custom-catchallgen-ui-a2ui-fixed,gen-ui-agent,tool-rendering· regression:mcp-apps(seebyocdeclarative-* demos removed from manifestbeautiful-chat-search-flights,gen-ui-a2ui-fixed,gen-ui-agent,tool-renderinggen-ui-agent(R1-A4 target) —shared-state-writeconfirmed greenheadless-simple(A20 targeted fix)Net dashboard impact: 13 cells red → green, 1 regression (ag2/
mcp-apps) = +12 net.What landed per family (commit per concern, in stack order):
975d5d80bspring-ai — manifest NSF reasoning canon (closes spring-ai's reasoning-default-render + agentic-chat-reasoning + tool-rendering-reasoning-chain pills against AG-UI Java SDK's missingREASONING_MESSAGE_*union) + Jackson@PrimaryObjectMapper bean-race fix (deterministic JSON wire shape) +RunErrorEventmixin renamingerror→messagefor AG-UI core wire compatibility + error-banner pattern across mcp-apps routes + Java tool JSON hardening +.ag-ui-shacentralized pin source + newtest_unit-spring-ai.ymlworkflow + Dockerfile explicitgit fetch origin $SHAguard. → fixes the 6 spring-ai cells above by closing the wire-shape gap between spring-ai and the harness.2b0ce1065ag2 — manifest NSF reasoning canon + new ASGI middleware_request_context.pywith_latest_user_messageContextVar(unblocks per-request user-message threading the harness asserts on) + async OpenAI client + tool serialization fix + R9-A2 manifest cleanup of stale declarative-* demos. → fixes the 3 ag2 cells.4e79e3bd1claude-sdk-typescript — per-content-block array refactor for text/thinking/tool_use replay order on Anthropic/v1/messagesshape (the core fix) + per-blockrandomUUID+ reasoning route + alias coherence. → fixes the 4 cst cells by aligning Anthropic content-block sequencing with the harness's strict replay-order check.5fd4028b4llamaindex —gen-ui+ beautiful-chat agent updates + mcp-apps + copilotkit route alias coherence + demo-files assets. → fixesgen-ui-agent.aec5b82edper-integration adjacencies —@ts-expect-errorswaps + agno comment + built-in-agentheadless-simpleUUID fallback + error banner across agno/crewai-crews/langroid/mastra/pydantic-ai/strands mcp-apps routes. → fixes built-in-agentheadless-simple; prevents banner-render regressions across 6 other families.a02cfb7a7aimock — d4 broad-matcher narrowing + d6 per-family content-shape alignment + chunkSize emoji surrogate-pair guard + threadid context gates. → the fixture realignment that makes all the above backend fixes verifiable end-to-end through the harness.1f5b90095Validate Showcase fix —KNOWN_SHADOW_CEILING123 → 128 inaimock-fixtures.test.ts(the d6 content-shape alignment adds tracked, runtime-disambiguated substring overlaps; this is the test author's documented escape hatch — see the comment around the constant).Quality gates run:
pre-push-quality— oxfmt+ruff, lint, typecheck, tests, monorepo build,docker buildonshowcase-spring-ai:prepush-test(3.62 GB image), actionlint on the new CI workflow — all green1f5b90095(Validate Showcase needed attempt 2;generate-registry.test.ts:211is a known sentinel-cleanup flake unrelated to this PR's diff)Decision needed: ship-as-is and roll⚠️ block above.
ag2/mcp-appsregression into the consolidated follow-up PR (alongside the bucket-(c)/(d) deferred items in## Follow-upbelow), OR hold this PR and fixmcp-appsin-PR first. Two candidate remediations are described in theUpstream gaps (flagged, not in scope)
REASONING_MESSAGE_*typed event union — spring-ai uses raw-JSON workaround inReasoningController(manifest declaresreasoning-default-render+agentic-chat-reasoning+tool-rendering-reasoning-chainNSF accordingly)customEventskey — blocks headless-interrupt D6 replay (interrupt-headless red across all families)ag-uilacksREASONING_MESSAGE_*ingestion gap — manifest declares accordinglyFollow-up
A consolidated follow-up handoff file documents the deferred bucket-(c)/(d) items (R2-D1 stack-leak hardening sweep across 11 routes, R2-D2 customEvents, R2-D3 @copilotkit/runtime agents-generic, R2-D4 mcp.excalidraw.com default URL, R3 misc adjacencies, etc.) for a single consolidated follow-up PR per the "minimize PRs by aggregating related work" directive.