Uh oh!
There was an error while loading. Please reload this page.
improvement(mothership): reuse logs detail panel in resource view - #4389
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview The logs sidebar ( Reviewed by Cursor Bugbot for commit c5b4199. Configure here. |
Greptile SummaryThis PR extracts Confidence Score: 5/5Safe to merge — clean refactor with no logic changes on existing paths and correct null-guarding throughout. No P0 or P1 findings. The extraction is structurally sound: LogDetailsContent's flex/min-h-0 chain is compatible with both host containers, the stale-activeTabRef bug is correctly fixed, and the EmbeddedLog null guards prevent passing undefined to the non-nullable prop. All removed code was dead duplication. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[LogDetails sidebar] -->|renders chrome + keyboard nav| B[LogDetailsContent]
C[EmbeddedLog mothership] -->|thin wrapper| B
B --> D[SModalTabs - Overview / Trace]
B --> E[ExecutionSnapshot modal]
D --> F[WorkflowOutputSection]
D --> G[TraceView]
D --> H[FileCards]
D --> I[CostBreakdown]
A -->|activeTabRef via onActiveTabChange| J[Keyboard nav guard]
Reviews (2): Last reviewed commit: "fix(logs): notify embedder on every reso..." | Re-trigger Greptile |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
waleedlatif1
commented
May 1, 2026
waleedlatif1
commented
May 1, 2026
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit c5b4199. Configure here.
Uh oh!
There was an error while loading. Please reload this page.
Summary
LogDetailsContent(tabs + sections + snapshot modal) from the revamped logs sidebar so it can be reusedEmbeddedLog(~270 lines duplicating the old panel) with a thin wrapper aroundLogDetailsContent— net −239 linesuseStateforuseRefinLogDetailssince the active-tab value is only read inside the keyboard effectType of Change
Testing
Tested manually — opened a log resource in mothership and confirmed the panel renders identically to the logs sidebar (tabs, output, trace, cost, snapshot).
tsc --noEmitand biome both clean on the touched files.Checklist