Skip to content

fix: show running native agents in the Subagents panel - #177414

Merged
roboclaw-bot merged 9 commits into
openclaw:mainfrom
enki:fix/native-subagent-ui-roster
Oct 23, 2026
Merged

roboclaw-bot merged 9 commits into
openclaw:mainfrom
enki:fix/native-subagent-ui-roster

Conversation

@enki

@enki enki commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: running Codex-native subagents are absent from the Control UI Subagents panel even while their parent can receive their progress and results.

User Impact

Users can see current native child labels and running/completed/failed/interrupted status in a separate “Live native agents” section. Existing Open/Stop controls continue to apply to managed OpenClaw child sessions. This first stage covers the full Subagents panel; saved native history, transcript navigation, and Details/header counts remain outside its scope. No migration or configuration change is required.

Why This Change Was Made

The native monitor already owns child observations, but the panel reads only child session rows. The retired Tasks mirror no longer supplies those rows. This change adds an optional, read-only harness observation hook to an opt-in parent description and renders its bounded result separately from sessions.

The host rechecks the real parent's physical identity, current plugin owner, and sharing authorization after awaited work. Codex reads its existing binding, retained client, and monitor without starting or adopting work. Opaque native IDs never become session keys or cancellation handles. Visible panels refresh with one non-overlapping read every five seconds; retired, hidden, disconnected, or denied owners clear the observations.

Related: #168162, #175041, and #176442 improve managed child presentation and are already included in the affected build. #166350 concerns durable native activity across reconnects; this proposal exposes live observations only.

Evidence

Latest-stable upgrade preservation (2026-10-23)

A stopped-state upgrade check from official stable 2026.10.6 passed using isolated, task-created state and synthetic session content. The published core archive matched npm SHA-512/SHA-1 metadata (SHA-256 b13fc9f1221e185451573a435ff31bdeb8c5875f569e6f41008198708ca2359f). Stable source/build: fe06181dc5ecc01cf8904abbfc26925925efefbc.

Stable public sessions.create RPCs created a parent and linked child; chat.inject persisted one synthetic assistant history row in each. After shutting stable down, candidate doctor --fix --non-interactive exited 0, migrating agent schema 25→31 and state schema 20→30. The candidate retained both physical session IDs, labels, parent/child linkage and every original history row exactly. Selected agent/tool/plugin/session/update and Gateway settings matched. Stable rejected the new includeNativeSubagents field; the candidate accepted it for both existing sessions and returned the same identities without inventing native observations. A subsequent parent history write persisted.

Revision qualification: execution used the retained integrated local build 583f9cf88fb6a6e478aba10d4946bc1d7581a6da, not a whole-head build of reviewed 6af87ba50c9feb7f68a389afb0b8b597843caa76. All seven changed core RPC/harness/protocol files match the reviewed head byte-for-byte; UI/native-monitor and other migration source differ. This supplies bounded RPC/session-preservation evidence, not new native-child, external-model, browser, installed-updater or deployment proof. The stable package used a task-owned dependency overlay reusing retained exact-version production packages, plus the verified matching official AI package; unused Chrome DevTools MCP was absent. The shipped launcher completed its own pending package lifecycle; no marker was manually removed. The 13,995 remaining core files and 127 AI files match their verified archives.

Doctor's successful exit retains warnings: the disabled memory-core health surface was unavailable, synthetic inference-account/model context was absent, the existing native database owner was still requested by one inspection, the tool allowlist was narrow, synthetic plaintext tokens and absent recorded backup were noted, and the retained build was older than its checkout source. This is not a warning-free health result. Two preliminary fixture attempts failed before upgrade (runtime selection missing its required model, then an incorrect lineage-field assertion); both remain recorded and are not credited as passes.

Both successful-run Gateways exited 0 with null signal, their observed PIDs are absent, all three attempt state roots were removed, and the selected candidate artifact hashes stayed unchanged. The reviewed checkout remains clean. The optional public observation-hook/live-only presentation decision still requires maintainer acceptance.

Sanitized synthetic upgrade receipt
{
  "scope": "latest-stable stopped-state RPC/session-preservation upgrade, source-qualified candidate reuse",
  "passed": true,
  "node": "v24.22.1",
  "stable": {
    "release": "2026.10.6",
    "sourceCommit": "fe06181dc5ecc01cf8904abbfc26925925efefbc",
    "coreArchiveSha256": "b13fc9f1221e185451573a435ff31bdeb8c5875f569e6f41008198708ca2359f",
    "registrySRIAndSHA1Verified": true,
    "shippedRegularFilesUnchanged": 13995,
    "lifecyclePendingMarkerConsumedByCanonicalLauncher": true
  },
  "candidate": {
    "executedBuildCommit": "583f9cf88fb6a6e478aba10d4946bc1d7581a6da",
    "reviewedPRHead": "6af87ba50c9feb7f68a389afb0b8b597843caa76",
    "changedCoreRPCAndHarnessContractFilesMatch": 7,
    "wholeHeadBuildOrExecutionClaimed": false
  },
  "flow": {
    "canonicalPublicSessionCreation": true,
    "existingSessions": 2,
    "oldHistoryRows": 2,
    "samePhysicalSessionIds": true,
    "labelsAndParentChildLineagePreserved": true,
    "allOriginalHistoryRowsExactlyPreserved": true,
    "selectedSettingsPreserved": [
      "agents",
      "tools",
      "plugins",
      "session",
      "update",
      "gateway port/bind/auth/controlUi"
    ],
    "candidateDoctorExitCode": 0,
    "agentSchemaMigration": "25 -> 31",
    "stateSchemaMigration": "20 -> 30",
    "stableRejectsNewOptionalRPCField": true,
    "candidateAcceptsOptionalRPCFieldForExistingSessions": true,
    "newNativeObservationRowsFabricated": false,
    "newParentHistoryWritePersists": true
  },
  "qualifications": [
    "Candidate uses retained integrated local build 583f9cf, not a whole-head build of reviewed 6af87ba; UI/native monitor and other migration source differ.",
    "No native-child execution, model inference, browser, installed updater-driver, or operator deployment proof.",
    "Stable shipped core and matching AI package use task-owned symlink overlay to existing exact-version retained production dependencies; unused chrome-devtools-mcp is absent.",
    "Doctor exit0 retains warnings about disabled memory-core health surface, absent synthetic inference account/model context, existing native database-owner requirement, narrow tool allowlist, synthetic plaintext tokens, no recorded backup, and build/source drift.",
    "Two preliminary fixture attempts failed (explicit runtime without model; wrong public lineage assertion); neither is counted as passing."
  ],
  "cleanup": {
    "gatewayExits": [
      {
        "phase": "stable",
        "code": 0,
        "signal": null
      },
      {
        "phase": "candidate",
        "code": 0,
        "signal": null
      }
    ],
    "gatewayPidsConfirmedAbsent": true,
    "allThreeAttemptStateRootsRemoved": true,
    "candidateArtifactPinsUnchanged": true,
    "reviewedCheckoutUnmodified": true
  },
  "collectorSha256": "4feedfaf6f980e86a5cf516a21500ecd15e0249bcc09c8ddc56cd708f502ae40"
}

Current upstream integration

Head 6af87ba50c9feb7f68a389afb0b8b597843caa76 merges the prior public head 008261b20c51cfb45a692414646802107295c0df with pinned main 3e0475a199e5877f1b5e0c086437ef1fedd3b693, preserving both histories. The three conflicted UI files now retain upstream's read readiness and Stop handling while keeping native observations visible in desktop, mobile, and classic panel views. The existing native polling remains completion-paced and non-overlapping, with retired and denied contents cleared. No observation API, permission rule, execution control, or scheduling policy is added by this integration.

All 31 focused tests across three UI suites pass, covering polling/retirement, panel readiness and Stop behavior, scope replacement, and retained details. Canonical UI production types, scoped typed lint, English catalog verification, formatting, whitespace, and unchanged controller/line limits pass. Lint retains one unchanged upstream props.createStop reactivity warning. Fresh independent review of the complete manual resolution, with both parents and intact owner context, is scoped-clean for P0–P2. Simplifying the existing polling body kept its current owner and the existing 700-code-line limit without a new helper or exception.

The isolated production-browser scenario passes desktop Running → Completed, mobile Completed → parent access denied, and a return to desktop with denied contents cleared. Managed Open/Stop controls remain available; native rows have neither session controls nor session identity. These are synthetic Gateway-response browser checks, not a new native execution, external-model, stable-upgrade, or deployment capture. Historical native and upgrade evidence below retains its actual revision and collector qualifications. The public observation-hook and live-panel acceptance remain maintainer decisions; new-head hosted CI remains the broad gate.

The before/after screenshots in the prior integration record below retain their recorded revision. This conflict repair preserves that presentation; the current browser result above qualifies the newly merged readiness and Stop handling.

Previous integration checks and before/after screenshots, with their original revisions

Review follow-up: remove unused accessor (2026-10-22)

Head 008261b20c51cfb45a692414646802107295c0df addresses the P3 finding by deleting the unused SubagentsPanelData.nativeRows getter. The existing owner tests read nativeSnapshot?.children directly, distinguishing a retired/absent snapshot from a valid empty roster. Redundant getter assertions are removed where the test already asserts that the snapshot itself is absent. The repair adds no replacement API, helper, or fallback and removes four production lines.

All 18 existing owner and retained-panel tests pass across two suites (2.29s Vitest duration). UI types, scoped typed lint, formatting, whitespace, and a repository reference search pass. Fresh independent helper review is scoped-clean for P0–P3 with no actionable findings (one complete source-review pass; no project execution was claimed by the reviewer).

Desktop/mobile renderers, native/Gateway contracts, snapshot publication, authorization, and polling paths are unchanged. The inspected synthetic captures remain evidence at 1080de986ce145c7b7d9a6322909479889b52851; the prior actual-native capture keeps its recorded revision and collector limitations. No new browser, native, external-model, or deployment capture is claimed. The recorded CI classification below remains tied to its actual tested revision; new-head hosted CI remains the broad gate. Public observation-hook and live-panel acceptance remain an owner decision.

Integration repair (2026-10-22)

Integration revision 1080de986ce145c7b7d9a6322909479889b52851 integrates pinned upstream 52df852cd5be3b3691ef27d0942a4db7b2258eb1 to resolve actual merge conflicts. GitHub reported the previous head unmergeable; all 14 Actions runs at that head used pull_request_target, with no broad CI run. GitHub suppresses pull_request workflows while a branch conflicts. This repairs the integration rather than rerunning an old job or pushing an empty change.

The native observations now render through one shared read-only component in the current desktop, mobile, and classic panel paths. The current managed-session navigation, grouping, Stop confirmation, focus/scroll retention, and visibility owners are preserved. English native labels, including the P3 automatic-retry guidance, live in the existing lazy chat-session catalog; the startup catalog remains empty at that subtree. The native-completion contention test retains upstream's existing receipt/readiness order exactly. No new observation API, state, timer, permission rule, or execution control is introduced by this repair.

The corrected production-browser baseline fails at the missing native-row assertion while retaining the managed child. After integration, the same scenario passes desktop Running → Completed, mobile Completed → access denied, and a return to desktop with the denied contents cleared. Native rows remain separate and have no Open/Stop controls or session identity; the existing managed Open/Stop controls remain available. The scenario takes 6.71s (36.43s wrapper including its isolated production build). An initial baseline capture failed because the older fixture did not account for the new hover-only Stop presentation; that fixture problem was corrected before the meaningful red/green comparison.

Validation: all 20 native/Gateway authorization, physical-identity, continuation, observation and completion-settlement tests across five files pass (124.53s wrapper including cold worker preparation). All 18 panel-owner and retained-detail tests pass across two files (6.35s). UI types, scoped typed lint, keyless English baseline/verification, formatting and whitespace pass. Canonical extension production and full extension test type graphs pass. Fresh helper review is scoped-clean for P0–P2 with no actionable findings (two complete source-review passes; project execution is covered by the separately recorded checks).

The earlier direct package-boundary and external scoped-config typecheck attempts failed during declaration/root-directory setup. The supported canonical source graphs then passed without dependency, source, type-rule, or configuration changes.

The final candidate against pinned upstream changes 29 files: source +668/−123, tests/support +769/−0, and docs +17/−0. One shared native renderer serves all three presentation paths; no effect, untrack, DOM-listener/query, or flush machinery was added.

Inspected current synthetic presentation captures:

Before integration:

Before integration: managed child present, native child missing

After integration:

After integration: live native child visible beside current managed controls

At phone width:

Native child completed at phone width

After parent access is revoked:

Native contents cleared with automatic retry guidance

These browser captures use synthetic Gateway responses. They prove the current rendering, request, refresh and disclosure response boundaries; they are not new native execution, external-model, deployment, or full-collector proof. All historical native evidence below retains its actual revision, native-version override, scripted-provider and failed-collector qualifications. The public observation-hook and live-panel acceptance remains a maintainer decision. New-head hosted CI remains the broad gate.

Previous integration source: 1b843c0c0555ca24ca28ba122f8ac9bdabdee749, integrating pinned upstream 42a73b62bb18abd0dc6b68fca0daf50f62331f79. The sole manual conflict resolution retains the current upstream settlement lifecycle and both authored native-observation regressions, with all required notification/store imports. The shared fixture retains canonical store and agent identity. No production guard, lifetime assertion or native result was replaced.

All 40 tests across three native-observation/inventory/settlement files pass. Production and test extension typechecks, scoped typed lint, formatting, whitespace and independent applied-conflict source review pass. The canonical runtime build records this exact commit; the existing UI gzip-size advisory remains and no budget was changed. The native/browser capture below remains at 235dce3165c6866d53fff24b0b3d05d658ef6332, including its failed-collector qualification. This merge incorporates other upstream production changes and is not a new native/browser execution or deployment. The public observation-hook and live-panel decision remains maintainer-owned.

SDK-surface evidence revision: 99a13e230a9.

SDK surface repair

The new named AgentHarnessNativeSubagents SDK re-export was unnecessary for this feature. Codex now derives its plugin-local snapshot type from the existing AgentHarness["readNativeSubagents"] method, and the roster uses that same alias. The optional observation hook and protocol snapshot shape remain unchanged. The removed named export was introduced by this PR; no previously shipped API is removed.

  • The real surface check fails before the repair at 3,811 public exports against a 3,810 budget, then passes at 3,810. The budget is unchanged and the shipped-API check reports no unauthorized removals.
  • Core and Codex extension types, scoped lint and formatting pass.
  • Eight existing consumer tests pass across three files: four Gateway authorization/lifetime cases, one composed native-observation case and three native-inventory/settlement cases. These consume synthetic observations; they do not execute a real native child.
  • Independent review of the three-file type-only repair found no actionable P0–P2 findings. No runtime behavior change is claimed from this repair.

Prior feature evidence at d0ac9504f2e030cff4afa2364bd2d3678dc1a057

  • The new Gateway opt-in test failed before the API change. The production-browser scenario failed to find the native row before the UI change despite receiving the same synthetic native observation.
  • The earlier feature candidate passed 78 focused checks across Gateway authorization, native monitor/protocol, composed attempt/binding/reader, UI lifecycle and eight production-browser scenarios. Its production build passed in 3m12.5s; selected production/test types, typed lint, styles, i18n, Swift/Kotlin generation, import-cycle and unchanged line/mock/assertion ratchets passed. These are prior-head results; the SDK surface failure and its current repair are stated separately above.
  • The existing synthetic before/after screenshots below demonstrate presentation. The browser supplies the roster response, so they are not native-to-Gateway runtime proof.

Actual native → Gateway → production panel at 235dce3165c6

Redacted runtime trace and collector qualifications.

The full collector exited 1, not a passing full run. The requested native-panel boundary succeeded: a genuine native spawn_agent/list_agents child appeared through the shipped, authorized sessions.describe hook and actual production browser as Running → Completed, with the same prefixed child identity. The browser used real canonical device pairing and natural five-second refresh; no roster, native notification, Gateway response or browser clock was replaced. Private screenshots and raw native/Gateway/browser receipts are retained with an offline audit script for review.

This isolated proof used synthetic content and a scripted loopback Responses provider, with the installed official native 0.163.0 binary explicitly overriding the source dependency 0.162.0. It is actual native/runtime/browser integration, not external model inference. The owned synthetic model catalog enabled V2 multi-agent metadata; native RPC bytes were forwarded unchanged. No compiled-owner instrumentation was used in this post-fix capture.

The native child and original parent both recorded their expected normal finals. Afterward, an additional completion continuation used another native thread and hit the scripted provider fixture's overly strict original-parent assertion. That later failure remains recorded; no successful later continuation or full-run pass is claimed. All native processes exited 0 without a signal; browser, Gateway and provider were joined and task state removed.

This proof found and repaired a real producer mismatch: native-monitor registration retained the logical sessions.json selector while the authorized Gateway reader supplied the canonical physical store. Registration now uses its existing captured entryCurrent.source.path; the exact store/currentness/identity guard is unchanged. The owning regression fails before the fix and all seven parent-continuation cases pass after it. Canonical Codex production-entry types, scoped lint/format and fresh P0–P2 review pass; the broad extension test-type graph remains an exact-head CI gate.

Recorded CI fixture repairs

Recorded head a80a17cf2d5e9594acfade7b2a47ca6d47cadd39 changes only two tests after the 235dce3165c6866d53fff24b0b3d05d658ef6332 native/browser capture; all production and UI source remains unchanged. The composed observation fixture now supplies its actual captured physical store, matching the repaired production registration. Its old logical-selector query reproduces the hosted failure before this test correction. The contention fixture receives the already-existing native receipt while its deliberate write is held, then releases retirement before awaiting observer readiness; this removes a fixture deadlock without starting new execution before readiness or weakening receipt, transcript, currentness or exactly-once assertions.

All 13 tests across the three affected observation/continuation/contention suites pass. Scoped typed lint, formatting, whitespace and fresh independent P0–P2 review pass. The full all-plugin test-type graph was not rerun locally; exact-head CI remains the broad gate. The earlier native capture retains its original revision and failed-collector qualification.

The remaining Swift failure at 235dce3165c6 is the repository-wide iOS ∩ macOS Periphery intersection, not a base-versus-PR comparison. Job118512145573 reports replaceSocketCredentials(_:expectedToken:) and bindNull(at:). Its actual tested merge is 9ee3107b2d93 over upstream 3a0253f25470. Both reported Swift owner files and the intersection script in that tested merge are byte-identical to that upstream base (blobs 174edee9b397, 0088c6e57cfe, and 8a74c1a3bd14). The PR's older Swift owners differ from the incoming base; the failing merge retained upstream's complete versions. This is source-based attribution of an unrelated shared-Swift gate; no separate base Swift build/scan was executed, and no unrelated methods or gate exclusions were changed.

Remaining scope and maintainer decision

The bounded native-to-Gateway-to-panel observation above is now demonstrated, with the full-collector qualification preserved. It does not prove external-model behavior, a successful later completion continuation, saved native history or production deployment. Completed observations can disappear when their existing monitor owner retires; a Completed row alone does not assert parent consumption.

Maintainer direction is still requested for the optional public observation hook, opt-in session-description roster and separate live-only presentation. Removing the redundant named type export does not resolve that product/API decision. Exact-head hosted CI remains the broad gate.

All fixtures and images are synthetic; no live conversation data, private identifiers, credentials or endpoints are published.

Before:

Before: native child absent from the Subagents panel

After:

After: native child running separately from managed sessions

Hosted CI qualification at 1080de986ce145c7b7d9a6322909479889b52851

Hosted job119627628309, checks-node-changed-extensions-bundle-3, fails the existing session-catalog-index-recovery.test.ts case “retries a failed rollout read after access recovers without a fingerprint change.” The line207 assertion reports that the mocked fs.open was never called for the changed rollout. This remains a recorded hosted CI failure.

The job checkout receipt identifies tested merge c27d4e5f4c82dfffdd8b55dd0ca5cf5805904330 over upstream afecea855376287edd92621852067e6c9154f1e8. All 97 session-catalog* files in the tested merge are byte-identical to that base. The determining test, catalog index/files/scanner/rollout owners and rollout fixture also match this PR head: test blob 4d51f4ad15d6537216fb0b7fce6a01531adefa37, index a66c52a73bda168b88b2f80063d6237614dc3dda, files 367d12dcd0f7f6197952bbdfb5f559687409a051, scanner 587a2e11dd563ac5482c1efc66d25ed7481d202d, rollouts 81c51afb21ec7ddad3bb7d03d2d9a4bd8fad49aa, fixture 2a7b5b877a599408ac6735230745c5fa1ae4ca3a.

The failing catalog code is inherited unchanged from the actual base. This rules out a direct edit to those files; it does not establish that the failure is independent of every other PR change. No base execution comparison was run, and the hosted trigger remains unproven. The canonical test:ci-failed helper, invoked through its exact declared Node24 entry after the local pnpm frontdoor failed to start, classified the job unknown because it found no matching main job and could not consume its log. Its available output selected no test rerun. The actual failed job log was separately inspected as cited above.

One bounded replay of the exact-head owning file through the canonical test wrapper passes all 12 tests, including the failing named case (12ms), in 64.99s wrapper wall time including cold worker preparation. The frontdoor used pinned Node24.22.1 and selected the repository's pinned Bun test runtime on macOS. This local non-reproduction does not prove the Linux/concurrent CI cause or repair the recorded hosted failure; no broad bundle, base execution, or CI rerun was performed.

No unrelated catalog source, exclusion, timeout, baseline, or CI workflow was changed. The source and UI/browser evidence remain at 1080de986ce145c7b7d9a6322909479889b52851; this qualification adds no runtime/native/model claim or new review request. Public observation-hook/live-panel acceptance remains a maintainer decision.

@clawsweeper

clawsweeper Bot commented Oct 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.

@enki
enki marked this pull request as ready for review October 19, 2026 14:54
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime agents Agent runtime and tooling extensions: codex size: XL labels Oct 19, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 19, 2026
@clawsweeper

clawsweeper Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

Adds authorized native-child observations to session descriptions and displays them separately in the Subagents panel.

Example: A Codex parent spawns /root/synthetic-audit.

  • Before: The Subagents panel shows managed children but omits the native child.
  • After: Live native agents shows the child changing from Running to Completed, without Open or Stop controls.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, coherent implementation with qualified production-path proof and no open findings; public-contract direction remains unapproved.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (logs): The supplied trace exercises genuine native spawn/list observations through authorized sessions.describe and a production browser, reaching Running and Completed at its recorded revision. It discloses scripted inference, the native binary override, and a later unrelated fixture assertion that leaves the full collector failed. Current integration browser evidence covers desktop/mobile rendering and denied-content clearing; production-handler regressions exercise foreign-reader rejection and revocation before response. The latest-stable stopped-state receipt supplies bounded RPC/session-preservation upgrade evidence with its retained-build source qualification and Doctor warnings preserved. This supports the changed observation behavior without claiming whole-head native execution or deployment.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: Users cannot inspect running Codex-native children in the Subagents panel.
Reason: The live visibility has clear value, but the optional public hook and separate live-only presentation need an area-owner decision.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep this PR open for maintainer acceptance of the additive observation API and live-only presentation; it provides useful work absent from current main, with no actionable code findings.

Priority: P2
Reviewed head: 6af87ba50c9feb7f68a389afb0b8b597843caa76
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should the public harness contract gain readNativeSubagents and sessions.describe expose an opt-in roster rendered as a separate live-only section?
  • Recommendation: Accept the bounded live-only surface: Approve the optional hook, opt-in session description, and separate display without transcript navigation or execution controls.
  • Why: The implementation is useful and bounded, but no maintainer approval of this new public contract and presentation policy is recorded.

Before merge

  • Await maintainer action - An area owner must approve the optional harness observation hook, opt-in RPC roster, and live-only panel presentation.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

None.

Agent review details

How this fits together

Codex owns native execution and observations; the harness exposes bounded snapshots through authorized Gateway reads, and the visible Control UI panel polls and renders them.

flowchart LR
  A[Native child events] --> B[Codex monitor]
  B --> C[Harness observation hook]
  C --> D[Authorized session description]
  D --> E[Visible panel polling]
  E --> F[Subagents panel]
  G[Managed child sessions] --> F
Loading

Technical review

Best possible solution:

Approve the bounded live-only contract and land the existing-owner implementation while leaving durable native history to its separate design request.

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

Current main reads managed child-session rows without a native observation hook, explaining the missing panel entries; the contributor also supplies revision-qualified native-to-browser observations and a failing-before browser regression.

Is this the best way to solve the issue?

The smallest complete approach is a bounded read through the existing native monitor, existing session authorization, and existing panel owner; the diff follows that design without recreating Tasks or giving native IDs session authority.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 5dce97b1362f.

Provenance checked

  • Native pending-child ownership keeps the original intent (40c71f5: Report earlier-turn children whose completion remains owed to the requester, including rotated native parent threads.)
  • Tasks retirement keeps the original intent (6652f7e: Remove duplicated Tasks state while retaining native execution and completion under their existing owners.)
  • Exact-key session visibility keeps the original intent (7d1e622: Prevent foreign draft disclosure and revalidate exact session reads after asynchronous work.)
  • Panel readiness and Stop keeps the original intent (ed3010d: Keep native Solid readiness and existing execution-owned Stop handling in the panel.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Current main still lacks native roster reads: Current-main panel refresh reads managed child sessions, and its harness contract lacks readNativeSubagents; the merged swarm-panel repair addresses managed sessions rather than this native observation path. (ui/src/pages/chat/subagents-panel-data.ts:234, 5dce97b1362f)
  • Final disclosure checks: After native observation awaits, sessions.describe prepares current rows again and checks parent identity, lifecycle, sharing, request authority, and plugin lifetime before responding; added handler tests cover foreign readers, replacement, plugin retirement, and sharing revocation. (src/gateway/server-methods/sessions-read-by-key.ts:111, 6af87ba50c9f)
  • Existing native owner remains authoritative: The reader uses an existing binding and retained physical client, validates the connection and parent lineage, and queries the existing monitor without starting native work. (extensions/codex/src/app-server/native-subagent-roster.ts:16, 6af87ba50c9f)
  • Supplied runtime and visual evidence: The author's fix: show running native agents in the Subagents panel #177414 (comment) records genuine native-child → authorized Gateway → production-browser Running/Completed observations at 235dce3, with scripted inference, an explicit native-version override, and a later collector failure disclosed. Inspected integration screenshots separately show desktop/native rendering, mobile completion, and denied-content clearing using synthetic Gateway responses. (ui/src/e2e/subagents-panel.e2e.test.ts:150, 6af87ba50c9f)
  • Latest-stable preservation receipt: The updated body records stable 2026.10.6 session creation and history, followed by candidate Doctor migration preserving physical IDs, lineage, original history, and selected settings; the new optional RPC field works afterward. Execution used retained build 583f9cf88fb6a6e478aba10d4946bc1d7581a6da, with seven changed core contract files reported identical to the reviewed head, rather than claiming whole-head execution. (packages/gateway-protocol/src/schema/sessions.ts:442, 6af87ba50c9f)
  • Exact-head checks: Paginated reads cover all 174 check runs with no failures or unfinished checks; the dependency-review, security-sensitive-review, and ci-gate commit statuses are successful. Mergeability remains unknown. (6af87ba50c9f)

PR surface

Source +531, Tests +767, Docs +17. Total +1315 across 29 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 20 666 135 +531
Tests 8 767 0 +767
Docs 1 17 0 +17
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 29 1450 135 +1315

Review metrics

Metric Value Why it matters
Public contract additions 1 optional harness hook and 1 opt-in RPC field These enable native observation without adding configuration, execution controls, or a persisted data model.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.
  • remove status: 📣 needs proof: Current PR status label is status: ⏳ waiting on maintainer.

Label justifications:

  • P2: Improves visibility into running native children without repairing an established execution or delivery outage.
  • merge-risk: 🚨 compatibility: The optional harness method and session-description parameter expand public plugin and protocol contracts that require owner acceptance.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (6 earlier review cycles)
  • reviewed 2026-10-19T15:15:44.409Z sha d0ac9504f2e030cff4afa2364bd2d3678dc1a057 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-20T08:10:35.948Z sha a80a17c :: blocked before merge. :: none
  • reviewed 2026-10-20T19:50:31.434Z sha 1b843c0 :: blocked before merge. :: [P3] Explain recovery when native observations cannot be refreshed
  • reviewed 2026-10-22T03:56:42.527Z sha 1080de9 :: blocked before merge. :: [P3] Remove the test-only nativeRows accessor
  • reviewed 2026-10-22T04:15:24.026Z sha 008261b :: blocked before merge. :: none
  • reviewed 2026-10-22T20:16:34.476Z sha 6af87ba :: needs real behavior proof before merge. :: none

Reviewed October 22, 2026, 11:10 PM ET / October 23, 2026, 03:10 UTC (Revision 7).

@enki
enki force-pushed the fix/native-subagent-ui-roster branch from 99a13e2 to ba04abb Compare October 19, 2026 23:23
@enki

enki commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor Author

Current test-only repair: a80a17cf2d5e9594acfade7b2a47ca6d47cadd39.

Current CI fixture repairs

Current head a80a17cf2d5e9594acfade7b2a47ca6d47cadd39 changes only two tests after the 235dce3165c6866d53fff24b0b3d05d658ef6332 native/browser capture; all production and UI source remains unchanged. The composed observation fixture now supplies its actual captured physical store, matching the repaired production registration. Its old logical-selector query reproduces the hosted failure before this test correction. The contention fixture receives the already-existing native receipt while its deliberate write is held, then releases retirement before awaiting observer readiness; this removes a fixture deadlock without starting new execution before readiness or weakening receipt, transcript, currentness or exactly-once assertions.

All 13 tests across the three affected observation/continuation/contention suites pass. Scoped typed lint, formatting, whitespace and fresh independent P0–P2 review pass. The full all-plugin test-type graph was not rerun locally; exact-head CI remains the broad gate. The earlier native capture retains its original revision and failed-collector qualification.

The remaining Swift failure at 235dce3165c6 is the repository-wide iOS ∩ macOS Periphery intersection, not a base-versus-PR comparison. Job118512145573 reports replaceSocketCredentials(_:expectedToken:) and bindNull(at:). Its actual tested merge is 9ee3107b2d93 over upstream 3a0253f25470. Both reported Swift owner files and the intersection script in that tested merge are byte-identical to that upstream base (blobs 174edee9b397, 0088c6e57cfe, and 8a74c1a3bd14). The PR's older Swift owners differ from the incoming base; the failing merge retained upstream's complete versions. This is source-based attribution of an unrelated shared-Swift gate; no separate base Swift build/scan was executed, and no unrelated methods or gate exclusions were changed.

Original revision-qualified native/browser evidence

Actual native → Gateway → browser evidence at 235dce3165c6866d53fff24b0b3d05d658ef6332.

Actual native → Gateway → production panel at 235dce3165c6

The full collector exited 1, not a passing full run. The requested native-panel boundary succeeded: a genuine native spawn_agent/list_agents child appeared through the shipped, authorized sessions.describe hook and actual production browser as Running → Completed, with the same prefixed child identity. The browser used real canonical device pairing and natural five-second refresh; no roster, native notification, Gateway response or browser clock was replaced. Private screenshots and raw native/Gateway/browser receipts are retained with an offline audit script for review.

This isolated proof used synthetic content and a scripted loopback Responses provider, with the installed official native 0.163.0 binary explicitly overriding the source dependency 0.162.0. It is actual native/runtime/browser integration, not external model inference. The owned synthetic model catalog enabled V2 multi-agent metadata; native RPC bytes were forwarded unchanged. No compiled-owner instrumentation was used in this post-fix capture.

The native child and original parent both recorded their expected normal finals. Afterward, an additional completion continuation used another native thread and hit the scripted provider fixture's overly strict original-parent assertion. That later failure remains recorded; no successful later continuation or full-run pass is claimed. All native processes exited 0 without a signal; browser, Gateway and provider were joined and task state removed.

This proof found and repaired a real producer mismatch: native-monitor registration retained the logical sessions.json selector while the authorized Gateway reader supplied the canonical physical store. Registration now uses its existing captured entryCurrent.source.path; the exact store/currentness/identity guard is unchanged. The owning regression fails before the fix and all seven parent-continuation cases pass after it. Canonical Codex production-entry types, scoped lint/format and fresh P0–P2 review pass; the broad extension test-type graph remains an exact-head CI gate.

Allowlisted observations from the captured native/Gateway/browser receipts (identities replaced with fixture roles):

{
  "source": "235dce3165c6866d53fff24b0b3d05d658ef6332",
  "collector": {
    "exit": 1,
    "fullRunPassed": false,
    "targetedNativeGatewayPanelBoundaryQualified": true,
    "laterFailure": "A later completion continuation used another native thread and hit the scripted provider fixture\u2019s overstrict original-parent identity assertion; no later continuation final is claimed."
  },
  "configuration": {
    "syntheticOnly": true,
    "provider": "scripted loopback Responses; not external model inference",
    "sourceNativeDependency": "0.162.0",
    "actualNativeBinary": "official0.163.0 explicit QA override",
    "nativeBinarySha256": "8813367285524ac798dd96d1b071aea30d58708c7226fd236cd275cf1cfdee31",
    "ownedSyntheticCatalog": "V2 model metadata enabled; no native RPC or roster replacement",
    "compiledModuleInstrumentation": false
  },
  "trace": [
    {
      "step": 1,
      "owner": "actual native collaboration tools",
      "operation": "spawn_agent followed by list_agents",
      "child": "CHILD",
      "result": "running"
    },
    {
      "step": 2,
      "owner": "authorized shipped Gateway sessions.describe",
      "includeNativeSubagents": true,
      "coverage": "live",
      "id": "codex:CHILD",
      "status": "running"
    },
    {
      "step": 3,
      "owner": "actual production browser authenticated connection",
      "operation": "real opt-in describe response and rendered row",
      "display": "Running",
      "rowControls": 0
    },
    {
      "step": 4,
      "owner": "same native child/original turn",
      "operation": "held provider response released, native journal task_complete",
      "final": "SYNTHETIC_CHILD_COMPLETE"
    },
    {
      "step": 5,
      "owner": "same Gateway and production browser",
      "id": "codex:CHILD",
      "status": "completed",
      "display": "Completed",
      "naturalRefreshElapsedMs": 4984
    },
    {
      "step": 6,
      "owner": "original native parent/original turn",
      "final": "SYNTHETIC_PARENT_COMPLETE"
    },
    {
      "step": 7,
      "owner": "later continuation outside completed target case",
      "result": "fixture identity assertion failed; full collector remains failed"
    }
  ],
  "cleanup": {
    "nativeExitRecords": 5,
    "everyNativeExitCode": 0,
    "everyNativeSignal": null,
    "browserJoined": true,
    "gatewayConfirmedStopped": true,
    "providerJoined": true,
    "taskStateRemoved": true
  },
  "screenshots": {
    "running": {
      "sha256": "844409c7fd4417ca0ac1fcfc79c8b6dff341a6bd9881d06cd48be43b18709173",
      "width": 480,
      "height": 952
    },
    "completed": {
      "sha256": "6c3bccc22d689820ee288dbba3b42c87e213a485c87caec6086e0af8fe4f1db9",
      "width": 480,
      "height": 952
    }
  },
  "remainingOwnerDecision": "optional harness observation hook and live-only UI presentation require maintainer acceptance"
}

The actual Running/Completed screenshots were inspected locally. Their new GitHub attachment could not be verified as publicly readable, so it is not offered as delivered media. The PR retains its existing synthetic presentation screenshots, explicitly distinguished from this native runtime evidence.

@enki

enki commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The body and existing evidence comment now supply actual native-child → authorized shipped Gateway → production browser Running/Completed observations at 235dce3165c6866d53fff24b0b3d05d658ef6332, plus the producer store-identity repair. Native RPC/roster/browser responses were not substituted. The full collector's later continuation-fixture failure, runtime-version override, scripted inference and clean process teardown remain explicit; no full-run pass is claimed.

Current head a80a17cf2d5e9594acfade7b2a47ca6d47cadd39 only repairs the two affected CI fixtures; production/UI source is unchanged from that capture. All 13 related tests, lint/format and independent P0–P2 review pass. The separate shared-Swift failure is source-attributed against the actual CI base in the body, without claiming a separately executed base scan. Hosted CI remains the broad current-head gate. The public observation-hook/live-only presentation decision still belongs to maintainers.

@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 20, 2026
@enki

enki commented Oct 21, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Current head a00d6f34dc68accbb95f976bfc8eb9a7166ab900 addresses the P3 with localized automatic-retry guidance at the UI owner. The existing visible-panel retry and all Gateway guards are unchanged. The body and linked comment include inspected, publicly rendered synthetic before/after screenshots, the passing existing production-browser scenario, UI types, scoped lint/format/i18n and fresh independent review. Historical native captures retain their revisions and collector limits; the observation-hook/live-panel decision remains maintainer-owned. New-head hosted CI is pending.

@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 21, 2026
@enki

enki commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Please review current head 1080de986ce145c7b7d9a6322909479889b52851, integrating pinned upstream 52df852cd5be3b3691ef27d0942a4db7b2258eb1. The previous branch had real merge conflicts, which prevented broad pull_request CI from starting. This integration preserves current upstream desktop/mobile panel owners and native completion readiness ordering, adds one shared read-only native renderer to the actual visible paths, and keeps native English copy in the lazy chat-session catalog.

The production-browser regression fails before integration at the missing native row, then passes desktop Running/Completed, mobile Completed/denied, and return-desktop denied states with managed controls preserved. All 20 focused native/Gateway tests, 18 panel-owner/retained-detail tests, UI types, scoped typed lint, English baseline/verification, formatting and whitespace pass. Canonical extension production and full extension test type graphs pass. Fresh helper review is scoped-clean for P0–P2 with no actionable findings (two complete source-review passes; project execution is covered by the separately recorded checks). The updated body embeds inspected synthetic before/after captures and links current mobile/error views.

The P3 automatic-retry guidance is retained. The prior exact-head review stopped because the provider limited requests; no new findings or active review were present at preparation time. Historical actual-native evidence remains revision-qualified, and no new native/provider run or deployment is claimed. Optional public observation-hook and live-panel acceptance remain maintainer-owned. Exact-head hosted CI remains pending.

@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 22, 2026
@enki

enki commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Current head 008261b20c51cfb45a692414646802107295c0df addresses the P3 “Remove the test-only nativeRows accessor” finding. The unused production getter is deleted; existing tests read nativeSnapshot?.children directly and retain the distinction between absent snapshots and valid empty rosters. No replacement API, helper, or fallback was added.

All 18 focused owner/retained-panel tests pass (2.29s Vitest duration), together with UI types, scoped typed lint, formatting, whitespace and the repository reference search. Fresh independent helper review is scoped-clean for P0–P3 with no actionable findings (one complete source-review pass; no project execution was claimed by the reviewer). The body preserves the published CI failure classification and its actual tested revision, and keeps all synthetic and actual-native captures tied to their original heads. Rendering, snapshot publication, polling and disclosure paths are unchanged; no new capture or deployment is claimed. Public contract/live-panel acceptance still requires an owner decision.

@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot removed the status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. label Oct 22, 2026
@enki

enki commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The branch now integrates pinned main 3e0475a199e5877f1b5e0c086437ef1fedd3b693 at 6af87ba50c9feb7f68a389afb0b8b597843caa76. The three conflicted UI files preserve current readiness and Stop handling alongside the existing read-only native display. All 31 focused tests, the production-browser scenario, canonical UI production types, scoped lint/format/i18n, unchanged ratchets, and fresh complete manual-resolution source review pass.

The PR body separates this integration's synthetic browser evidence from the earlier revision-qualified native proof and screenshots. Public observation-hook/display-policy acceptance remains a maintainer decision. No scheduling policy, native execution control, or deployment change is claimed.

@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. labels Oct 22, 2026
@enki

enki commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

Added the latest-stable 2026.10.6 stopped-state upgrade preservation proof to the PR body. Both existing sessions, original history, physical identities, lineage and selected settings survive migration; the new opt-in RPC works against those preserved sessions. The body names the retained executed build, the seven matching changed core files, differing UI/migration source, Doctor warnings, two failed fixture attempts, and cleanup. This is bounded migration/RPC evidence, not a new whole-head/native/browser/deployment claim. Public observation-hook/live-only presentation approval remains maintainer-owned.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 23, 2026
@roboclaw-bot
roboclaw-bot merged commit eb83771 into openclaw:main Oct 23, 2026
183 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 24, 2026
* fix: show running native agents in the Subagents panel

* fix: derive native roster types from the harness contract

* fix(codex): register native observations with canonical store identity

* test(codex): use canonical observation store and settle retirement before readiness

* fix(ui): explain native subagent observation retries

* refactor(ui): remove test-only native subagent rows getter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation extensions: codex gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants