Repository navigation
fix(ui): keep subagent details in the background tasks panel - #113671
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
July 25, 2026 12:58
Contributor
Author
|
Land-ready proof for
Known proof note: the broad changed-file classifier stopped before affected lanes on an unrelated current-main max-lines ratchet entry for |
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 26, 2026
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.
What Problem This Solves
Fixes an issue where selecting a running subagent in Chat's Background tasks rail could show
Could not load task detailsin the mock/live-development path and encouraged opening the child session as the pane's main conversation, even though subagents are session-owned background work rather than human-facing chat threads.AI-assisted implementation and review.
Why This Change Was Made
Task selection now replaces the rail list with a compact in-panel detail view that owns status, timing, current tool activity, prompt, output, cancellation, and back navigation. Subagent transcript navigation is intentionally omitted, while linked-session actions remain available for other task runtimes. The mock Gateway now implements
tasks.get, so the development fixture exercises the real detail contract instead of returning an invalid empty response.The transition also preserves keyboard focus: selection moves focus to Back, Back restores focus to the selected row, and terminal tasks reveal the Finished section before focus restoration. The Back path merges the newest lookup snapshot into the list first so row placement stays correct when
tasks.getis newer than task events.User Impact
Operators can inspect subagent progress without leaving or replacing their main conversation. The compact panel remains live as a task completes, returns to the correctly regrouped list with Back, and no longer exposes a misleading subagent transcript action.
Release-note context: Control UI background-task selection now opens a compact in-panel subagent detail view instead of navigating the main chat pane.
Evidence
Visual flow
Task list before selection:
Compact detail after selecting a subagent:
Automated proof
tbx_01kycm5n9jzqcqpwqgq4f7ykxb:pnpm tsgo:ui,pnpm tsgo:scripts,pnpm lint:ui:i18n,pnpm lint:scripts, 222 focused UI tests, and 2 background-task browser E2E tests passed. Runtbx_01kycnfq5ad3azyh7xy1ykg6tv:pnpm tsgo:ui, 26 focused task-rail tests, and 2 browser E2E tests passed after the focus/freshness fixes. RunView transcript, applies a pushed completion in place, returns to the regrouped list, and sends cancellation without selecting the row.Live behavior validation
A source-blind run against
pnpm dev:ui:mockpassed the observable list → compact detail → back flow in dark mode. The URL and visible main transcript stayed unchanged, elapsed time advanced, prompt/output/tool activity rendered, no detail error appeared, and browser console plus dev-server error logs were empty.The broad changed-file classifier was attempted on Testbox but stopped before the UI lanes on an unrelated current-main max-lines ratchet entry for
extensions/slack/src/monitor/message-handler/dispatch.ts; the focused affected lanes above were then run directly and passed.