Repository navigation
fix(tui): collapse single shell calls into working blocks - #882
Conversation
Co-authored-by: arena-agent <[email protected]>
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Code Review SummaryStatus: 1 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (2 files)
Fix these issues in Kilo Cloud Previous Review Summaries (3 snapshots, latest commit 0e97f4f)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 0e97f4f)Status: 1 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (2 files)
Fix these issues in Kilo Cloud Previous review (commit 8fda31a)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (3 files)
Fix these issues in Kilo Cloud Previous review (commit 3abe100)Status: No Issues Found | Recommendation: Merge Files Reviewed (3 files)
Reviewed by free · Input: 75K · Output: 5K · Cached: 249.9K |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Co-authored-by: arena-agent <[email protected]>
| activity: () => activity(), | ||
| activityAllExpanded: () => false, | ||
| activityExpanded: () => false, | ||
| activityExpanded: () => true, |
There was a problem hiding this comment.
WARNING: activityExpanded: () => true contradicts test expectations of collapsed initial state
The tests in this file explicitly wait for "Click to expand" and click it:
await app.waitForFrame((frame: string) => frame.includes("Click to expand"))
await app.mockMouse.click(5, rowOf(await frameOf(app), "Click to expand"))If activityExpanded: () => true, the activity block would start expanded, showing "Click to collapse" instead. The first waitForFrame would timeout waiting for "Click to expand" which would never appear.
Either the test expectations need updating (wait for "Click to collapse" first), or activityExpanded should remain false to match the test's assumed initial state.
There was a problem hiding this comment.
The harness expands the outer shell activity block so its ToolPart row is visible. “Click to expand” is the nested shell-output panel disclosure, which remains collapsed initially; the activity header is “− Ran 1 command”. I made that distinction explicit in the fixture comment and wait predicate. Verified the focused shell-line-cap suite: 4/4 passed.
Co-authored-by: arena-agent <[email protected]>
Co-authored-by: arena-agent <[email protected]>
Issue for this PR
Closes #884
Type of change
What does this PR do?
A shell command that is the only tool call in an activity run now renders as its own collapsed
Running command...working block. This applies to both the legacybashtool name and theshelltool name.The block can be expanded to reveal the command output. Shell calls separated by assistant text remain separate blocks, while other singleton tool calls keep their existing inline rendering. Multi-call activity grouping is unchanged.
The regression test covers both shell names, collapsed output, expansion, and separation across an assistant-text boundary.
The Photon patch hunk is also corrected so Bun can install the locked dependencies and resolve the embedded WASM asset in the compiled binary.
How did you verify your code works?
git diff --checkpassed.@opencode-ai/coreReadTool image tests, followed by a TurboSIGBUS. A comparison against the exact base revision has not established whether those Linux failures are pre-existing.Screenshots / recordings
Not included. This is a terminal UI change covered by the activity-group rendering test harness; no standalone screenshot or recording was attached.
Checklist