Skip to content

fix: show active subagent follow-ups in the sidebar - #153118

Merged
steipete merged 2 commits into
mainfrom
codex/sidebar-subagent-followup-activity
Sep 19, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/sidebar-subagent-followup-activity

Conversation

@steipete

@steipete steipete commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: a conversation can show a running subagent in chat while its parent appears idle in the sidebar, especially after sending a follow-up to a previously completed subagent.

User Impact

The parent keeps its activity ring while a hidden subagent is running or waiting for capacity, then clears it when the work finishes. Opening the parent refreshes hidden subagent activity without adding subagent rows to sidebar navigation.

Why This Change Was Made

The session projection now includes current follow-up runs when computing ancestor activity and retaining child links. It prepares that lookup once per projection refresh, preserves the original task's completed history, and follows current ownership when a child moves. The sidebar loads child details using the retained child-loading keys, rather than the visible navigation rows.

CI also exposed a pre-existing Gateway typecheck shard at 701 roots, above its 700-root headroom guard. This PR moves the complete worker-environments test subtree into an existing shard, bringing the two affected graphs to 494 and 656 roots without changing limits, job count, or compiler concurrency.

Evidence

  • Reproduced the mismatch with fresh session and task reads from a running Control UI.
  • Regression tests failed before the fix and pass for running, queued, capacity-wait, moved-child, completion, and hidden-child cases.
  • 518 focused tests passed after refreshing onto main, including the full sidebar suite and the 2,048-session projection test. Changed-file checks and independent review passed; hosted CI passed on reviewed head 73f1e81f2bb (170 jobs, no failures).
  • The shard inventory regression failed before the prerequisite repair; all 24 planner tests, both affected compiler graphs, and changed-file checks pass afterward. The first hosted CI attempt exposed this base-branch failure; the repaired commit passed fresh CI.
  • Synthetic browser proof below shows the same running task before and after the fix.

Before

Running subagent in chat while the parent sidebar row has no activity ring

After

The parent sidebar row shows its activity ring while the subagent runs

@clawsweeper

clawsweeper Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime size: M maintainer Maintainer-authored PR labels Sep 19, 2026
@steipete
steipete marked this pull request as ready for review September 19, 2026 19:05
@steipete steipete self-assigned this Sep 19, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 19, 2026
@clawsweeper

clawsweeper Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 19, 2026, 3:50 PM ET / 19:50 UTC (Revision 3).

ClawSweeper review

What this changes

The PR keeps parent sidebar activity indicators active during subagent follow-ups, refreshes hidden child activity, and redistributes Gateway test typechecking between existing compiler graphs.

Merge readiness

✅ Ready for maintainer review

The fix remains necessary on the inspected main revision and latest release. No actionable introduced defect was found; the screenshots, focused regression coverage, and successful exact-head CI support the patch.

Priority: P2
Reviewed head: 73f1e81f2bbce7a41788691f509a772c6f278695

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with directly visible before/after evidence, meaningful regression coverage, successful exact-head CI, and no supported blocking finding.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected synthetic Control UI before/after screenshots directly demonstrate the repaired parent ring while the running task remains in chat and child navigation stays hidden. Gateway lifecycle coverage is supplemental regression evidence; no live provider execution is claimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected synthetic Control UI before/after screenshots directly demonstrate the repaired parent ring while the running task remains in chat and child navigation stays hidden. Gateway lifecycle coverage is supplemental regression evidence; no live provider execution is claimed.
Evidence reviewed 8 items Current main still lacks follow-up activity: The inspected main implementation derives subagent activity only from original subagent-run liveness and active descendant counts; it does not consult the current agent-run projection for follow-up turns.
Latest release retains the same limitation: The v2026.9.5 source also computes activity from original subagent-run liveness and descendant counts without projecting follow-up agent runs.
Existing projection owner extended: The patch prepares follow-up ancestor membership once per projection refresh and passes the prepared activity into row presentation and child-link retention. It introduces no configuration, persistence, plugin API, or authorization changes.
Findings None None.
Security None None.

How this fits together

The Gateway combines stored session relationships with current agent activity to produce session rows. The Control UI uses those rows to show parent activity while keeping temporary subagent runs out of sidebar navigation.

flowchart LR
  A[Stored session relationships] --> C[Gateway session projection]
  B[Current agent runs] --> C
  C --> D[Ancestor activity and child links]
  D --> E[Sidebar child refresh]
  E --> F[Parent activity ring]
  D --> G[Subagent rows remain hidden]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +105, Tests +195, Docs +2. Total +302 across 14 files.

View PR surface stats
Area Files Added Removed Net
Source 8 123 18 +105
Tests 4 197 2 +195
Docs 2 3 1 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 14 323 21 +302

Review metrics

Metric Value Why it matters
Production versus regression coverage Production +105 net lines; tests and test support +191 net lines Production growth supplies the prepared ancestor lookup and presentation plumbing; the added coverage checks nested activity, reassignment, completion, and hidden-child loading.

Technical review

Best possible solution:

Keep activity derived from the existing run and session owners, preserving completed task history and hidden subagent navigation.

Do we have a high-confidence way to reproduce the issue?

Yes, source identifies a clear trigger: run a follow-up in a completed subagent session whose original task no longer counts as active. The inspected main projection omits that follow-up; this review did not execute a reproduction.

Is this the best way to solve the issue?

Yes. Extending the existing Gateway projection and consuming retained child-loading keys repairs the missing signal without restoring intentionally hidden navigation rows or introducing another state owner.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 8aec983be3bd.

Labels

Label justifications:

  • P2: This fixes misleading sidebar activity with limited blast radius and no evidence of lost work or blocked conversations.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected synthetic Control UI before/after screenshots directly demonstrate the repaired parent ring while the running task remains in chat and child navigation stays hidden. Gateway lifecycle coverage is supplemental regression evidence; no live provider execution is claimed.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected synthetic Control UI before/after screenshots directly demonstrate the repaired parent ring while the running task remains in chat and child navigation stays hidden. Gateway lifecycle coverage is supplemental regression evidence; no live provider execution is claimed.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected synthetic Control UI before/after screenshots directly demonstrate the repaired parent ring while the running task remains in chat and child navigation stays hidden. Gateway lifecycle coverage is supplemental regression evidence; no live provider execution is claimed.

Evidence

What I checked:

  • Current main still lacks follow-up activity: The inspected main implementation derives subagent activity only from original subagent-run liveness and active descendant counts; it does not consult the current agent-run projection for follow-up turns. (src/gateway/session-utils-display.ts:108, 8aec983be3bd)
  • Latest release retains the same limitation: The v2026.9.5 source also computes activity from original subagent-run liveness and descendant counts without projecting follow-up agent runs. (src/gateway/session-utils-display.ts, ec9c1a13db89)
  • Existing projection owner extended: The patch prepares follow-up ancestor membership once per projection refresh and passes the prepared activity into row presentation and child-link retention. It introduces no configuration, persistence, plugin API, or authorization changes. (src/gateway/session-utils-projection.ts:86, 73f1e81f2bbc)
  • Meaningful regression coverage: The added Gateway cases exercise running, queued, and capacity-wait follow-ups through completed nested lineage outside the selected page, then move ownership and release activity. The sidebar case checks hidden-child loading, absence of navigation rows, and ring removal on completion. Tests were inspected, not executed in this read-only review. (src/gateway/session-row-presentation.test.ts:32, 73f1e81f2bbc)
  • Inspected visual evidence: Locally inspected proof-image-1.png and proof-image-2.png from the prepared manifest. The synthetic Control UI captures show the same running task: the parent has no ring before and has a ring afterward, without a child navigation row. These images establish the visible result, not live provider execution. (73f1e81f2bbc)
  • Exact-head CI verified: GitHub reports workflow run 35463972869 completed successfully on the reviewed head. The live PR read also reports an open, unmerged, cleanly mergeable branch assigned to steipete. (73f1e81f2bbc)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vladimirkrdzic: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-19T19:12:18.325Z sha dc6cba0 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-19T19:26:19.509Z sha 73f1e81 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 19, 2026
@steipete
steipete merged commit 6f33aeb into main Sep 19, 2026
238 checks passed
@steipete
steipete deleted the codex/sidebar-subagent-followup-activity branch September 19, 2026 20:33
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant