Repository navigation
feat(native-chat): add execution details and tool row identity - #19226
Conversation
|
Warning Review limit reachedNext included review available in 13 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (20)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Important
This PR fails the project typecheck — pnpm tc (both tc:web and tc:node) reports error TS2345 on a new test fixture, so CI will block merge. The fix is a one-line addition (see inline comment).
Reviewed changes
- Execution metadata on command rows —
commandItemandboundStreamItemnow preserve optionalexitCode/durationMs(both casings) via the sharedtoolExecutionMetadatain the newsrc/shared/native-chat-tool-identity.ts. - MCP server/tool identity —
mcpToolCallItemattachesmcpIdentityonly when the provider supplies bothserverandtool;mcpToolIdentitysplitsmcp__server__toolfor display while keeping the raw name intact. - Web-search result links —
webSearchItemderives a bounded, HTTP(S)-only, dedupedwebSearchResultssubset while retaining the raw JSON asoutputfor older readers. - Renderer annotations — new
NativeChatToolAnnotations(NativeChatToolName,NativeChatCommandMetadata,NativeChatSearchResults) wired throughNativeChatToolRun,NativeChatToolIcon, andMessageRow; search-result clicks route through the existingonLinkClickhandler. - Schema & projection — optional
ToolMetadataadded to the journal schema and intersected intoAgentJournalToolCallItem/NativeChatToolCallBlock, with forward-tolerance tests.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Since the prior review, the single blocking concern was resolved:
- Projection test fixture typecheck — added the required
state: 'running'field to the "preserves confirmed MCP identity" fixture, clearing theTS2345error that blockedpnpm tc.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Since the prior review, the branch merged origin/main, reconciling the PR's onLinkClick wiring with the subagent-groups feature that landed on main.
- Merged
origin/main— thesubagent-groupblock type joinedKNOWN_BLOCK_TYPESand theBlockunion;NativeChatToolRungained a defaultedsubagentGroupsprop and rendersNativeChatSubagentRunroster rows above the tool run. - Reconciled renderer wiring —
MessageRownow mountsNativeChatToolRunwhensubagentGroups.length > 0even without tools, and the PR'sonLinkClickstays threaded throughToolLinealongside the roster.
The reconcile is clean: onLinkClick, mcpIdentity, execution metadata, and search results all still reach their render targets, the eda0adf typecheck fix is intact, and every caller of the widened icon/category signatures is type-consistent.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
Status: ready for reviewPlan reviewReviewed before any code was written. APPROVE WITH AMENDMENTS, all applied. Two mattered:
Code review loopSame-model subagent review found and fixed both candidate issues, then returned clean on re-review. Wire safetyThe three new journal fields ( Verification
Manual UI validationReal Orca dev build, hidden renderer over CDP. Screenshots attached above. Process deviations, stated plainly
Known-red, not caused by this PR
|









What this does, in plain terms
Every tool row in the chat looks the same, and three useful facts were being thrown away:
mcp__linear__list_issuesrendered as one opaque blob. Now the server and the tool read separately.Before → After
mcp__linear__list_issuesThese are annotations on the existing one-line tool row — it doesn't become a card, and rows without this data look exactly as they do today.
Technical detail
ELI5
Command rows now show their exit code and supplied duration, MCP calls distinguish the server from the tool, and web searches reveal result links inside the existing row disclosure.
What Changed
Why
Tool lines previously discarded command exit codes and duration, obscured MCP identity, and exposed search results only as raw output. The change keeps the existing inline layout and adds no cards or journal item kinds.
Linked Issue
Coordinator-assigned tool row identity task; no issue number supplied.
Visual Proof
Pending real-session before/after screenshots. A background Electron build was attached over CDP and verified as this worktree, but its fresh profile contained no chat session; no substitute fixture screenshots are presented as product evidence.
Testing
Review
Independent same-model review is clean after fixes for ambiguous MCP name classification and millisecond translation. Reviewed optional-field compatibility, bounded result parsing, HTTP(S)-only links, raw-name preservation, and negative identity cases for paths, filenames, and classified commands. Shared metadata remains optional for mobile and mixed-version SSH peers; no execution ownership changes. Opening readiness audit identified those two candidates; closing audit found zero remaining candidates, including the mobile compatibility checklist. Severity counsel was unavailable at dispatch depth 1; no formal opening severity verdict is claimed.
Agent skill upstream boundary
Notes
Oversized streamed web-search snapshots retain their existing degradation and may omit result metadata. Full provider output remains the old-reader fallback on ordinary rows.
Checklist