Add compact Codex tool-call icons and details to the chat timeline - #988
Conversation
- Gate enhanced tool-call rendering to Codex sessions in `ChatView` - Redesign work-log rows with icons, collapsible details, and file/output previews - Preserve tool lifecycle metadata in `session-logic` and extend tests for output/exit parsing
- Normalize compact tool labels (e.g. "Command run" -> "Ran command") - Improve tool entry icon detection for command/file/web/image activity - Remove staggered row animations from tool work entry rendering and update tests
- include `args` on `approval.requested` and `resolution` on `approval.resolved` activities - update work log file extraction to read changed paths from `payload.args` and `payload.resolution` - add server/web tests covering the new approval payload mapping and file path extraction
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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 |
|
Clearing up some unnecessary stuff that wont be called anyway |
Keep the compact Codex icon treatment while removing the extra expandable UI and approval metadata plumbing. This keeps the PR focused on the timeline scanability improvement without adding unnecessary parsing and server-side scope.
|
I removed the dropdown because we do not consistently receive enough useful detail to justify an expanded view, so it added complexity without meaningful value. |
- Replace "Command run" titles with "Ran command" across server fixtures and tests - Simplify compact tool label normalization to only strip trailing complete/completed text
Removed duplicate import of computeMessageDurationStart.
zortos293
left a comment
There was a problem hiding this comment.
Fixed all the issues related with the tests and moved itemtype to contracts
|
@macroscope-app review this |
|
I hugely appreciate this change, this is much nicer ❤️ |
❤️ |
What Changed
complete/completed, renamed command rows toRan command, and removed the extra row/chip motion that made file updates feel jumpy.Why
The previous work-log UI was plain and harder to scan because tool-call entries had no icons, bulky labels, and inconsistent presentation. This approach improves readability while keeping scope tight by limiting the richer rendering to Codex-oriented metadata and reusing the existing timeline flow instead of changing provider-wide UI behavior.
UI Changes
Before
After
Checklist
Note
Add compact tool-call icons and details to the Codex chat timeline
SimpleWorkEntryRow, a compact single-line component showing a contextual icon, normalized heading, and preview text (command, detail, or changed files).WorkLogEntryin session-logic.ts withtoolTitle,itemType, andrequestKindfields; strips trailing<exited with exit code N>from detail strings.normalizeCompactToolLabelin MessagesTimeline.logic.ts to strip trailing 'complete'/'completed' from tool labels.isToolLifecycleItemTypeto a shared type guard in contracts/providerRuntime.ts and removes the local duplicate in the server ingestion layer.Macroscope summarized a4b6782.