mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
501565c966
Addresses the blocking review on #5151: 1. Starter smoke 'Popup Assistant' timeouts (adk, agno, mastra, ms-agent-framework-python/dotnet): the pages passed the dead v1 label keys (labels.title / labels.initial), which v2 CopilotSidebar ignores — the header rendered the default 'CopilotKit Chat' so the smoke's text=Popup Assistant wait timed out. Map to the v2 CopilotChatLabels keys: title -> modalHeaderTitle, initial -> welcomeMessageText. Verified live: SSR now renders 'Popup Assistant'. 2. llamaindex TypeError (reading 'proverbs'): the page still used the v1 useAgent API ({ state, setState } = useAgent({ name, initialState })) — v2 returns { agent }, so state was undefined at render. Migrate to the v2 pattern (agent.state with a guarded default + agent.setState + one-time seed effect), and fix its dead v1 label keys too. Verified: next build prerenders all pages cleanly. 3. parity-check drift: ran _parity/sync.ts --all — syncs example-layout (mobile-header fix), layout.tsx, docker-route-override.ts to the north-star, and bumps @copilotkit/* to 1.59.1 in langgraph-fastapi and strands-python. parity verify: 0 errors across all instances. (next-env.d.ts is gitignored repo-wide; verify warns-and-skips it in a clean checkout, so it is intentionally not committed.) 4. Trailing-whitespace diff-check failure (showcase google-adk agent): already resolved by the merge of main (the file matches main; diff --check clean). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1.4 KiB
1.4 KiB