You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Code-run card: live execution feed from code_mode:* events #376
While `execute_typescript` runs, the user sees nothing until the sandbox returns. The upstream `@tanstack/ai-code-mode` sandbox emits progress events over the AG-UI custom-event channel — `code_mode:execution_started`, `code_mode:console`, `code_mode:external_call` / `external_result` / `external_error` — but conciv drops them all: `codeModeToolChunks` (`packages/core/src/chat/code-mode-parts.ts`) maps only our own `conciv:tool_call/result/error` events into synthetic tool parts and returns `null` for everything else (pinned by `packages/core/test/chat/code-mode-parts.test.ts:63`). Nothing in the repo subscribes via `onCustomEvent`.
The inner tool calls already surface properly as first-class transcript parts with cards and captures (#344) — this issue is ONLY about the live progress feed (console lines, external-call timeline, started marker) inside the code-run card while execution is in flight.
Shape
Map selected `code_mode:*` events into UI-only state keyed by the parent `execute_typescript` toolCallId (`parentToolCallId` already rides on the synthetic parts' metadata).
Ephemeral by design: the feed is progress UI, not transcript content — it must NOT become message parts or model context, and it need not survive reload (the final result part already does).
Colocation rule applies: the card ships from core; any event-mapping vocabulary that names no tool belongs in ui-kit-chat.
References
TanStack AI doc "Showing Code Mode in the UI" (code-mode-client-integration) describes the raw event contract and an onCustomEvent consumer for React.
Pulled under the tool-card kit epic #381 as a sub-issue, because #396 changes its weight. Once code mode is the only chat tool surface, every turn runs through execute_typescript and the code-run card is the card the user watches for the whole turn — the missing code_mode:* feed stops being a nicety and becomes the difference between a visible turn and a frozen one. Blocked by #396.
Heads-up from the #413/#428 work (aggregated page-session card): the new fold policy absorbs page-driving execute_typescript runs into one session card per driving stretch in the thread. When this issue's live code_mode:* feed lands, its render target for page-driving runs is the session card (SessionCard in @conciv/extension-page), not a standalone code-run card; non-page code runs keep the core code-run card. The synthetic-parts channel this issue references is unchanged — the session card's step rows already stream from those parts.
Activity
omridevk commentedon Aug 10, 2026
Pulled under the tool-card kit epic #381 as a sub-issue, because #396 changes its weight. Once code mode is the only chat tool surface, every turn runs through
execute_typescriptand the code-run card is the card the user watches for the whole turn — the missingcode_mode:*feed stops being a nicety and becomes the difference between a visible turn and a frozen one. Blocked by #396.omridevk commentedon Aug 11, 2026
Heads-up from the #413/#428 work (aggregated page-session card): the new fold policy absorbs page-driving
execute_typescriptruns into one session card per driving stretch in the thread. When this issue's livecode_mode:*feed lands, its render target for page-driving runs is the session card (SessionCardin@conciv/extension-page), not a standalone code-run card; non-page code runs keep the core code-run card. The synthetic-parts channel this issue references is unchanged — the session card's step rows already stream from those parts.