Skip to content

docs(showcase): clarify catch-all tool rendering - #5509

Closed
ataibarkai wants to merge 37 commits into
mainfrom
codex/docs-render-status-optout
Closed

ataibarkai wants to merge 37 commits into
mainfrom
codex/docs-render-status-optout

Conversation

@ataibarkai

@ataibarkai ataibarkai commented Jun 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • reorganize Tool Rendering into Custom Tool Rendering and Catch-all Tool Rendering (Default tool rendering), with the catch-all page kept lean and using showcase-backed snippets
  • replace reader-facing "zero-config/default renderer" phrasing with built-in/custom/suppress/named catch-all language, while keeping the full render: ({ name, parameters, status, result }) => ... signature visible
  • fix catch-all docs highlightLines offsets so suppress/named snippets highlight the intended API lines, including the null renderer line, without highlighting neighboring code
  • add showcase rows/demos for suppressing the catch-all renderer and overriding one named tool across the active integrations, plus D5 scripts, D5 fixtures, D6 aimock fixtures, and dashboard mappings
  • add reusable PR-tour mechanics: dashboard row filtering via ?rows=..., a deterministic showcase/scripts report command, generated PR-tour video recorder, and repo-level AGENTS.md instructions for future PR tour sections
  • keep the docs contributor notes current: how to discover showcase-derived docs, how to keep feature registry/manifests/D5/D6 aligned, and how to visually verify snippet highlight ranges
  • preserve the D6 default catch-all hardening so green requires the built-in renderer wrapper, tool name, status, and scoped status pill

PR Tour

Generated starting point:
npm --prefix showcase/scripts run pr-tour -- --base origin/main --head HEAD --rows tool-rendering-default-catchall,tool-rendering-custom-catchall,tool-rendering-suppress-catchall,tool-rendering-named-override

Dashboard row-filtered matrix:
tool-rendering rows in matrix

Showcase items changed:

  • Rows: tool-rendering-default-catchall, tool-rendering-custom-catchall, tool-rendering-suppress-catchall, tool-rendering-named-override
  • Columns: all active showcase framework columns that carry these rows (built-in-agent, langgraph-python, langgraph-typescript, langgraph-fastapi, google-adk, mastra, crewai-crews, pydantic-ai, claude-sdk-python, claude-sdk-typescript, agno, ag2, llamaindex, strands, langroid, ms-agent-python, ms-agent-dotnet, spring-ai)
  • Cells: all listed rows across all listed columns, 72 cells total

Video Attachments

Current PR HEAD: 2d4cfb4846. Corrected default/custom tour videos were recorded locally on 2026-06-24 after the feedback about repeated slides, missing relevant code highlights, and single-column coverage. The only commit after recording reconciles harness probe assertions, so the recorded UI/code walkthroughs remain representative of the current pushed branch.

Release asset bundle: PR #5509 tour videos @ 2d4cfb4846

Embedding note: GitHub only renders inline video players for PR-description uploads that become github.com/user-attachments/assets/... URLs. The CLI-accessible artifacts here are GitHub release assets, so each thumbnail links to the video asset. If an authenticated browser editor is available, re-upload these same .webm files through the PR description field and replace the links with the embedded attachment URLs.

Tour Video
Tool rendering: built-in catch-all Tool rendering: built-in catch-all
Tool rendering: custom catch-all Tool rendering: custom catch-all

Video status notes:

  • These two corrected topic videos use the intended tour structure: one topic slide, a per-column slide for each affected showcase column, real application interaction for every visible suggestion pill, one non-pill manual prompt, then the relevant code view with the important lines highlighted.
  • tool-rendering-suppress-catchall and tool-rendering-named-override still need refreshed all-column videos before they are attached. Their previous single-column/prompt-limited assets were removed from this description; the all-column recording path is currently blocked by deployed route 404s for those rows on generated-framework staging routes.

Video commands:

  • Corrected showcase command used for the attached default/custom videos: npm --prefix showcase/scripts run pr-tour-videos -- --mode showcase --rows tool-rendering-default-catchall,tool-rendering-custom-catchall --backend-host-pattern 'https://showcase-{slug}-staging.up.railway.app' --per-prompt-wait-ms 6000 --output-dir /tmp/copilotkit-pr-tour-default-custom-final
  • Deterministic plan sample: npm --prefix showcase/scripts run pr-tour-videos -- --mode plan --preset tool-rendering --backend-host-pattern 'https://showcase-{slug}-staging.up.railway.app'

Docs URLs for the Loom path:

Verification

Latest post-rebase checks:

  • npm --prefix showcase/scripts run test -- pr-tour-video-plan — 5 tests passed
  • npx nx run @copilotkit/showcase-harness:typecheck
  • npx nx run @copilotkit/showcase-harness:test -- d5-tool-rendering-default-catchall — 19 tests passed
  • npx nx run @copilotkit/showcase-harness:test — 150 files passed, 3192 tests passed, 18 skipped
  • npm --prefix showcase/shell run build
  • git diff --check

Earlier verification on this PR:

  • pnpm -C showcase/shell-docs run typecheck
  • NX_TUI=false NX_SKIP_NX_CACHE=true pnpm nx run @copilotkit/showcase-harness:test -- src/probes/scripts/d5-tool-rendering-suppress-catchall.test.ts src/probes/scripts/d5-tool-rendering-named-override.test.ts — 16 tests passed
  • NX_TUI=false NX_SKIP_NX_CACHE=true pnpm nx run @copilotkit/showcase-harness:test -- src/probes/helpers/d5-mapping-drift.test.ts src/probes/helpers/d5-representatives.test.ts — 6 tests passed
  • npm --prefix showcase/shell-dashboard test -- dashboard-row-filter feature-grid useOverlays — 61 tests passed
  • npm --prefix showcase/scripts test -- pr-tour-report pr-tour-video-plan — 7 tests passed
  • npm --prefix showcase/scripts run pr-tour -- --base origin/main --head HEAD --rows tool-rendering-default-catchall,tool-rendering-custom-catchall,tool-rendering-suppress-catchall,tool-rendering-named-override
  • in-app browser sweep: 15 visible docs routes checked (main-docs plus all non-hidden framework variants with the catch-all page); 0 failures; each had 3 snippet blocks, full signatures, Shiki styling, and the expected highlighted text
  • targeted highlight sweep after the screenshot bug: suppress catch-all highlights the import, useDefaultRenderTool({, render: ({ name, parameters, status, result }) => null,, and }); but not the final hook brace; named override highlights the import and null renderer but not the Zod schema line
  • computed-style check confirmed the exact targeted rows had the Shiki highlight background
  • screenshots captured locally: /tmp/copilotkit-catchall-highlight-main-fixed.png, /tmp/copilotkit-catchall-highlight-ms-agent-fixed.png, /tmp/copilotkit-tour-screenshots/tool-rendering-row-filter-dashboard-parity.png
  • lefthook pre-commit passed: check-binaries, lint-fix, test-and-check-packages, commitlint

Known local blockers unrelated to this PR:

  • npm --prefix showcase/shell-dashboard run typecheck is blocked by an existing src/components/__tests__/unified-cell.test.tsx fixture type error (isStaleCell optional vs required).
  • npm --prefix showcase/scripts exec -- tsc -p showcase/scripts/tsconfig.json --noEmit is blocked by an existing showcase/scripts/generate-search-index.ts typed-platform error.
  • ruff format --check could not run locally because ruff is not installed in this worktree; the only Python change is a two-entry Google ADK agent alias mapping.

@vercel

vercel Bot commented Jun 17, 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 18, 2026 3:50pm
docs Ready Ready Preview, Comment Jun 18, 2026 3:50pm
form-filling Ready Ready Preview, Comment Jun 18, 2026 3:50pm
research-canvas Ready Ready Preview, Comment Jun 18, 2026 3:50pm
travel Ready Ready Preview, Comment Jun 18, 2026 3:50pm

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 17, 2026 •

Copy link
Copy Markdown
Contributor

Production Digest-Pinning Audit

All 40 services digest-pinned.

Run 2026-06-24 12:29:54 PDT — 0 finding(s).

@pkg-pr-new

pkg-pr-new Bot commented Jun 17, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@copilotkit/a2ui-renderer

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/a2ui-renderer@5509

@copilotkit/agentcore-runner

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/agentcore-runner@5509

@copilotkit/angular

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/angular@5509

@copilotkit/bot

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/bot@5509

@copilotkit/bot-discord

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/bot-discord@5509

@copilotkit/bot-slack

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/bot-slack@5509

@copilotkit/bot-store-postgres

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/bot-store-postgres@5509

@copilotkit/bot-store-redis

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/bot-store-redis@5509

@copilotkit/bot-telegram

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/bot-telegram@5509

@copilotkit/bot-ui

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/bot-ui@5509

@copilotkit/bot-whatsapp

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/bot-whatsapp@5509

@copilotkit/core

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/core@5509

@copilotkit/react-core

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/react-core@5509

@copilotkit/react-native

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/react-native@5509

@copilotkit/react-textarea

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/react-textarea@5509

@copilotkit/react-ui

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/react-ui@5509

@copilotkit/runtime

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/runtime@5509

@copilotkit/runtime-client-gql

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/runtime-client-gql@5509

@copilotkit/sdk-js

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/sdk-js@5509

@copilotkit/shared

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/shared@5509

@copilotkit/sqlite-runner

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/sqlite-runner@5509

@copilotkit/voice

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/voice@5509

@copilotkit/vue

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/vue@5509

@copilotkit/web-inspector

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/web-inspector@5509

commit: 2d4cfb4

ataibarkai and others added 28 commits June 24, 2026 12:17
@BenTaylorDev

Copy link
Copy Markdown
Contributor

Closing as stale, with the live part carried forward. 3915 commits behind and conflicting, and the 300-file docs/aimock wrapper is not worth a rebase. The source change had not landed: defineToolCallRenderer.ts and use-render-tool.tsx are being widened for null renderers in #6533, and the remaining gap in use-default-render-tool.tsx is carried in #6942 with you as co-author. The argsSchema = def.args ?? z.any() change is intentionally not carried, since it alters runtime behavior for named renderers declared without args.

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.

3 participants