Skip to content

(CODUX-112) Render live widgets in invocation bubbles - #2628

Merged
numnx merged 1 commit into
feature/CODUX-178-enrich-chat-widgets-with-live-datafrom
task/feature-codux-178-enrich-chat-widgets-with-live--t04-codex-mranew1a
Jul 7, 2026
Merged

(CODUX-112) Render live widgets in invocation bubbles#2628
numnx merged 1 commit into
feature/CODUX-178-enrich-chat-widgets-with-live-datafrom
task/feature-codux-178-enrich-chat-widgets-with-live--t04-codex-mranew1a

Conversation

@numnx

@numnx numnx commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

🧩 Task: Render live widgets in invocation bubbles

Automated task PR opened by Code UX for T04.

📋 Summary

Sprint: Sprint 178 · Enrich Chat widgets with live data · Task: T04

Enrich existing chat rich widgets so sprint and task references in project-scoped chat and invocation transcripts resolve to real live sprint/task records, show current statuses, and link to the correct dashboard destinations with polished accessible UI.

🤖 Model & Provider

Provider Codex CLI
Model gpt-5.5

⏱️ Timing

Started 2026-07-07 12:51:59 UTC
Finished 2026-07-07 12:57:22 UTC
Duration 5m 23s

📊 Token Usage

Metric Value
Input tokens 72,515
Cached input tokens 1,289,856
Output tokens 8,865
Total tokens 1,371,236
Invocations 1
Tool calls 41
Active time 4m 12s

Included usage estimate (subscription/local login): $1.27

✅ QA Review

⏳ QA review runs after this PR is opened. Check the task card in the dashboard for the outcome once it lands.

📝 Full Task Prompt
## Objective
Teach invocation transcript message bubbles to display live sprint/task widgets for invocation-scoped task and sprint references.

## Scope
- Edit `dashboard/src/v2/components/chat/InvocationMessageBubble.tsx`
- Create or update `dashboard/src/v2/components/chat/__tests__/InvocationMessageBubble.live-entities.test.tsx`
- Consume `LiveEntityStatusWidget` from `dashboard/src/v2/components/chat/widgets/LiveEntityStatusWidget.tsx`
- Consume live entity model types from `dashboard/src/v2/lib/chat-live-entities.ts`

## Implementation Requirements
1. Add an optional prop to `InvocationMessageBubble` for resolved live entity widget models.
2. Render `LiveEntityStatusWidget` in the standard invocation bubble widget slot for normal assistant/user/system invocation messages.
3. Preserve compact full-width rendering for `metadata.kind === "reasoning"`, `tool_call`, and `tool_result`; those structural cards should not receive duplicate live entity widgets unless the component already renders a normal bubble.
4. Preserve existing planning widget rendering; when both planning and live entities are present in a normal bubble, render both with stable spacing.
5. Add tests for a normal invocation bubble with sprint/task live entities, a bubble with planning plus live entities, and a tool-call message that remains rendered as the existing `ToolCallWidget` without extra live entity chrome.

## Constraints
- Do not fetch project data in `InvocationMessageBubble`; it must only render prepared props.
- Do not edit `ChatMessageBubble.tsx` or `ChatPage.tsx` in this task.
- Preserve existing provider/model/status chips, external API icon, error labels, and sanitized output behavior.
- Keep screen-reader status text present for invocation bubbles.

## Verification
- Run `pnpm exec vitest run dashboard/src/v2/components/chat/__tests__/InvocationMessageBubble.live-entities.test.tsx tests/dashboard/lib/chat-widget-view-models.test.ts`.
- Run `pnpm run typecheck:dashboard`.
- Success means normal invocation messages can show live entity widgets while reasoning/tool transcript cards keep their current compact behavior.
🌿 Branch Info

Base: feature/CODUX-178-enrich-chat-widgets-with-live-data
Head: task/feature-codux-178-enrich-chat-widgets-with-live--t04-codex-mranew1a


🤖 Generated by Code UX

@numnx
numnx merged commit 10c7eb4 into feature/CODUX-178-enrich-chat-widgets-with-live-data Jul 7, 2026
6 checks passed
@numnx
numnx deleted the task/feature-codux-178-enrich-chat-widgets-with-live--t04-codex-mranew1a branch July 7, 2026 13:00
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.

1 participant