Repository navigation
Running and Done tabs in the background work panel - #971
Merged
Merged
Conversation
The Session Chat background work panel splits into a Running / Done segmented control on iOS and Android. Running holds working and waiting subagents plus running shells; Done holds finished, failed and stopped subagents, newest first, with a dot for finishes since the tab was last viewed. Rows lead with the task title through a new OpenCodeTaskRow. The agent shows as a tag only when it is not "general". Done rows show the first result line or failure reason, the run time and when it finished. The current step and tool count show only when the task part carries the classic v1 metadata.summary; current v1 and v2 servers do not send it. A settle stamped with its start time no longer counts as a finish, and run times under a second or unknown are hidden, so done rows no longer read 0:00. OpenCodeFilterTabs gains a segmented style and an unseen dot. The harness gets a subagent-running-and-done scenario. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.







Fixes #966
What
The Session Chat background work panel now has Running / Done tabs, plus new rows on iOS and Android.
Running N | Done N. The panel opens on Running.seenDoneIds/hasUnseenDone, plus thesetBackgroundWorkDoneVisibleaction.general.0:00fix: a settle stamped with its start time is no longer a finish time. A v2 livetool.successwith no running event before it carries the event time as both start and end. The duration is now hidden when it is unknown or under a second, instead of showing zero.Design system
OpenCodeFilterTabsstyle: .segmented(equal-width segments on a track).unseendot, read out as "new".OpenCodeTaskRow: state-aware (running,waitingForInput,done,failed,stopped), with title, tag, detail, caption and time. It lines up withOpenCodeShellRow.What the servers actually send
I checked opencode's tags and
dev, plus a live v2.2.2 harness run:metadata.summary(the child's tool parts)error<task …><task_result>…</task_result></task>Subagent failed (task_id: …): msg<subagent sessionID=… state=…>…</subagent>Subagent failed (sessionID: …): msg,Subagent cancelled (sessionID: …)So the current step and the tool count only show on servers that send
metadata.summary. On current v1 and v2, running rows show the title and the timer and leave the rest out, as the issue asks. Background calls settle at spawn with a "working in the background" note. That note is never shown as a result.Checks
:app:testDebugUnitTestis green, including the newSessionChatBackgroundWorkTabsTest(15 tests).ktlintCheckreports nothing in the changed files.SessionChatBackgroundWorkTabsTests.subagent-running-and-donescenario (P1) runs three subagents in one turn: an explore one that finishes, one that fails (unknown agent) and one held running for 40s.check.mjspasses on v2.Risks / Follow-ups
metadata.summary, 1.19<task_result>,task_iderrors) is covered by unit tests only.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.