Skip to content

fix: restore subagent and background process side panels - #164061

Merged
roboclaw-bot merged 16 commits into
mainfrom
fix/subagent-sidebar
Oct 4, 2026
Merged

roboclaw-bot merged 16 commits into
mainfrom
fix/subagent-sidebar

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes missing beside-parent inspection of ordinary subagents and background shell processes after the old Tasks/sidebar flow was removed.

User Impact

Subagents and Processes are separate chat side panels, not a merged work list. Subagents retain the existing design and full child transcript. Processes show running and recently finished commands, bounded recent output, and Stop for the exact process. Inspection does not consume the agent's output or replace the parent's draft.

Existing retention and permissions are unchanged. Output is temporary, not a durable terminal archive. A disconnected or incompatible remote worker reports an explicit error rather than pretending no processes exist.

Why This Change Was Made

Reuse the existing child-session, transcript, exec-registry, and process-supervisor owners. The process API routes to the session's actual local or retained-worker owner, rechecks authority after asynchronous work, and never substitutes a whole-turn cancellation for process Stop. Hidden/disposed Subagents panels retain responsibility for retrying subscription releases.

Review also corrected Stop availability for own-session-only credentials and distinguished a process omitted from a limited snapshot from one no longer retained. No Tasks registry, database migration, config option, or retention change is introduced.

Compatibility review

No configuration option or default, SQLite schema/version, persisted process store, or retention policy changes. The new session-process schema describes additive RPC messages, not a stored data model. New methods append to the canonical method table without shifting existing advertised indices. The two side-panel slot names are additive; existing saved layouts, order, and defaults remain valid. The Gateway and its Control UI ship together.

Retained workers keep their existing lifecycle. Process observation/control requires the current bundle and exact session, placement, owner epoch, node connection, and process incarnation. An older or unavailable worker returns actionable unavailability; it is not sent unknown process messages and never falls back to another process owner. Existing read/write and own-session ceilings remain enforced. No migration or operator configuration change is required. These contracts were source-reviewed and covered by saved-layout, older-endpoint, stale-owner, permission, and append-only method-order tests.

Original Subagents implementation and design by @shakkernerd. Separate-panel restoration, verification, and landing requested by @steipete.

Work sessions

Evidence

Inspected before/after screenshots and verification details.

The runtime/UI builds, final type graphs, changed-scope lint, 17 mock-Gateway browser scenarios, and the real-Gateway composition pass. The real proof executes and independently stops an actual child and background process, verifies socket/stream closure and terminal state, and preserves the parent draft through reload at desktop/mobile widths. Its loopback model provider is scripted, not an external API. Permission, cancellation-incarnation, partial-list, requested-Stop, and subscription-cleanup regressions are covered. No Team production deployment was performed.

Whole-core lint retains three unchanged maximum-line violations; the UI build reports a startup-JS size advisory. Neither baseline nor budget was relaxed. See the linked evidence for exact scope and limitations.

Original Subagents visual evidence

The following evidence belongs to the contributor's original head 232bb69; the separate Processes restoration is documented above and in the final verification comment.

Open preview

View Before After
Parent conversation Parent conversation without a Subagents panel Ordinary subagents listed beside the parent
Child transcript beside the parent Parent conversation without an embedded child transcript Existing child transcript with Back to Subagents and Stop
Standalone child, desktop Original full read-only footer with Stop Compact parent notice with Stop in the header
Standalone child, mobile Original tall read-only footer at 390 pixels Compact parent notice within the mobile viewport

Subagents panel interaction (playback slowed 2.5 times)

subagents-readable.webm

Visual verification

  • Baseline: 5f52ff0
  • Exact head: 232bb6950c8796988873d383383f6fe9e4ef31de
  • Scenario: Open the Subagents tab, inspect a child and its tool output, return to the list, stop the other child, and reload while preserving the parent draft. Compare standalone parent notices at desktop and mobile widths.
  • Runtime/build: Built Control UI in Chromium on Linux; candidate 232bb69, source tree 0366168313fe45964613172d67bacaa7d40030d2; native Crabbox carrier verified against the same tree. Synthetic Gateway fixtures.
  • Child membership: Four ordinary children shown; Swarm and persistent conversation excluded.
  • Tool count: Two calls after a repeated activity frame; tool-name fallback shown when activity is absent.
  • Parent draft: Retained through child inspection, Stop, and reload.
  • Fork navigation: Accepted navigation preserves text and image; refused navigation stores neither.
  • Standalone notice: Parent navigation works at 1440 and 390 pixels.
  • Panel navigation preserves the parent draft and input owner through detail, Stop and reload.
  • Four ordinary children shown; Swarm and persistent conversations excluded.
  • Repeated activity leaves the exact count at two; public activity and display-name fallback rendered.
  • Existing child transcript and tool output remain usable; Stop targets only the selected child run.
  • Direct-page notice names the parent and navigates back at 1440 and 390 pixels.

CI follow-up: all identified failures have reproduced repairs. Original worker scenarios, Linux ownership and terminal UI outcome fixes pass. The final harness batch also repairs workspace source aliases and stale node/Activity expectations:44combined tests pass on pinned Bun and Node,23configuration cases pass, plus2Activity browser and53owner tests. Exact-head CI:https://github.com/openclaw/openclaw/actions/runs/37165639560 (a1e2182) passed with no pending checks. See the verification comment for head-specific evidence.

Merged directly through the native workflow as e25a981 on October4,2026 at01:00UTC. Exact-head CI passed; auto-merge remained disabled. No inherited-red admin exception or Team deployment was used.

@clawsweeper

clawsweeper Bot commented Oct 3, 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 size: XL labels Oct 3, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Oct 3, 2026
@clawsweeper

clawsweeper Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 3, 2026, 8:49 PM ET / October 4, 2026, 00:49 UTC (Revision 12).

ClawSweeper review

What this changes

Restores separate Subagents and Processes chat panels with child transcripts, recent command output, exact-target Stop controls, and supporting worker transport and test-runner repairs.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open: the restoration remains useful, and the earlier compatibility concern is resolved by the additive contracts and existing ownership boundaries. No actionable introduced defect was found. Likely related people: steipete and shakkernerd, supported as routing candidates by current-main UI history.

Priority: P2
Reviewed head: a1e2182f9140778d6c5385ca1a7757fe079353cb

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, coherently owned restoration with meaningful runtime evidence and no supported blocking finding.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): Recorded real-Gateway proof exercises actual child and background-process owners through built UI, observing independent Stop, stream/socket closure, terminal output and preserved drafts; the central exercised owners are unchanged from its recorded runtime revision. Inspected original-head screenshots additionally show Subagents list/detail behavior. The provider is scripted loopback, and later Processes media were absent from the prepared manifest. Existing layouts remain compatible through additive slot acceptance; no persisted process format or database migration is introduced.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (logs): Recorded real-Gateway proof exercises actual child and background-process owners through built UI, observing independent Stop, stream/socket closure, terminal output and preserved drafts; the central exercised owners are unchanged from its recorded runtime revision. Inspected original-head screenshots additionally show Subagents list/detail behavior. The provider is scripted loopback, and later Processes media were absent from the prepared manifest. Existing layouts remain compatible through additive slot acceptance; no persisted process format or database migration is introduced.
Evidence reviewed 9 items Pinned scope and clean checkout: The verified introduction delta is 892f6cc..a1e2182. Local enumeration recovered the complete changed-path list. Initial and final status checks showed a clean checkout; the stale test merge was not used to infer removal of main-only behavior.
Restoration remains necessary: Fetched main lacks the Subagents and Processes layout slots and their dedicated panel modules. REST searches for subagent panels and background process panels found no verified merged replacement for this restoration. The PR remains open at the reviewed head and its author association is MEMBER.
Session and final-effect authority: The process handler rechecks request, session access, session generation and placement authority after readiness and placement awaits. Local Stop then synchronously checks session scope and process incarnation before cancellation. Remote dispatch additionally checks environment epoch, lease, current node connection and bundle identity; returned output is reauthorized before publication.
Findings None None.
Security None None.

How this fits together

The Control UI displays work belonging to a conversation using Gateway session and process owners. Panel requests retrieve child transcripts or bounded process output, while Stop requests reach the authorized owner of the selected run or process.

flowchart TD
  A[Parent conversation] --> B[Subagents panel]
  A --> C[Processes panel]
  B --> D[Gateway session access]
  C --> D
  D --> E[Local or worker process owner]
  D --> F[Child transcript owner]
  E --> G[Recent output and exact Stop]
  F --> H[Child transcript and run Stop]
Loading

Before merge

  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Production versus test growth Runtime/UI production net +3,256 lines; tests/support net +3,034 lines Excluding docs and tooling, the substantial growth is justified in the PR by two independent panel flows and bounded observation/exact-stop transport through existing owners.
Process observation bounds 50 rows; 2,000 characters per output tail; 48 KiB row budget The new inspection path bounds returned process output without consuming the agent's pending output.

Stored data model

Persistent data-model change detected: migration/backfill/repair: ui/vitest.config.ts, unknown-data-model-change: packages/gateway-protocol/src/schema/session-processes.ts, unknown-truncated-pull-files. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Technical review

Best possible solution:

Restore beside-parent inspection through existing session, transcript and process owners while preserving saved layouts, permission ceilings and exact-target cancellation.

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

Yes, from source: current main lacks the dedicated panel slots and modules needed for beside-parent inspection. This review did not execute target code.

Is this the best way to solve the issue?

Yes. The patch restores the UI through existing session and process owners, keeps the retired Tasks registry removed, and preserves authorization and stored-layout behavior.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Restores useful conversation inspection with limited UI and process-control impact; no urgent current-user outage is established.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (logs): Recorded real-Gateway proof exercises actual child and background-process owners through built UI, observing independent Stop, stream/socket closure, terminal output and preserved drafts; the central exercised owners are unchanged from its recorded runtime revision. Inspected original-head screenshots additionally show Subagents list/detail behavior. The provider is scripted loopback, and later Processes media were absent from the prepared manifest. Existing layouts remain compatible through additive slot acceptance; no persisted process format or database migration is introduced.
  • proof: sufficient: Contributor real behavior proof is sufficient. Recorded real-Gateway proof exercises actual child and background-process owners through built UI, observing independent Stop, stream/socket closure, terminal output and preserved drafts; the central exercised owners are unchanged from its recorded runtime revision. Inspected original-head screenshots additionally show Subagents list/detail behavior. The provider is scripted loopback, and later Processes media were absent from the prepared manifest. Existing layouts remain compatible through additive slot acceptance; no persisted process format or database migration is introduced.

Evidence

What I checked:

  • Pinned scope and clean checkout: The verified introduction delta is 892f6cc..a1e2182. Local enumeration recovered the complete changed-path list. Initial and final status checks showed a clean checkout; the stale test merge was not used to infer removal of main-only behavior. (a1e2182f9140)
  • Restoration remains necessary: Fetched main lacks the Subagents and Processes layout slots and their dedicated panel modules. REST searches for subagent panels and background process panels found no verified merged replacement for this restoration. The PR remains open at the reviewed head and its author association is MEMBER. (ui/src/pages/chat/sidebar-layout-types.ts:1, ca267fa035f8)
  • Session and final-effect authority: The process handler rechecks request, session access, session generation and placement authority after readiness and placement awaits. Local Stop then synchronously checks session scope and process incarnation before cancellation. Remote dispatch additionally checks environment epoch, lease, current node connection and bundle identity; returned output is reauthorized before publication. (src/gateway/server-methods/session-processes.ts:54, a1e2182f9140)
  • Forbidden and stale targets: Dispatch tests distinguish read-only, write-capable and own-session-only credentials, and assert rejected requests do not mark the process cancelled. Worker runtime coverage rejects an incorrect owner epoch before invoking cancellation; transport coverage rejects authority, epoch and connection changes. These are supplemental tests, not claimed live security proof. (src/gateway/server-methods/session-processes.test.ts:15, a1e2182f9140)
  • Earlier compatibility concern resolved: The introduced layout changes only accept two additional slot names; existing stored fields, defaults and normalization branches remain intact. Process schemas are RPC messages, and incarnation IDs live in a WeakMap. Methods append to the canonical table. Scoped UI policy explicitly establishes one shipped Gateway/UI version. Older retained workers are checked against the current bundle before process messages are dispatched. (ui/src/pages/chat/sidebar-layout-normalize.ts:30, a1e2182f9140)
  • Real Gateway proof and revision continuity: The captured verification comment at fix: restore subagent and background process side panels #164061 (comment) records an isolated real Gateway serving built UI, actual background exec and child streams, independently targeted Stop, observed socket/stream closure, terminal output and draft preservation through reload. The provider is scripted loopback. The inspected scenario exercises those production boundaries. A comparison from its e28a8f6 runtime revision showed no changes to the selected process RPC, observation, worker-command and panel data/component owners. (ui/src/e2e/background-work.real-gateway.e2e.test.ts:174, a1e2182f9140)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • shakkernerd: 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 (11 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-03T16:29:16.484Z sha 232bb69 :: needs changes before merge. :: none
  • reviewed 2026-10-03T16:38:07.490Z sha 232bb69 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-03T19:31:00.250Z sha e28a8f6 :: blocked before merge. :: none
  • reviewed 2026-10-03T19:46:36.898Z sha d39cccb :: blocked before merge. :: none
  • reviewed 2026-10-03T22:28:04.963Z sha 22f889f :: blocked before merge. :: none
  • reviewed 2026-10-03T23:25:46.371Z sha 04d95a5 :: blocked before merge. :: none
  • reviewed 2026-10-03T23:38:56.552Z sha 04d95a5 :: blocked before merge. :: none
  • reviewed 2026-10-04T00:34:27.276Z sha ed13d84 :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Oct 3, 2026
@shakkernerd shakkernerd changed the title fix: restore ordinary subagent rows in the sidebar fix: restore subagent navigation in the chat side panel Oct 3, 2026
@shakkernerd
shakkernerd force-pushed the fix/subagent-sidebar branch from 59afcf6 to 232bb69 Compare October 3, 2026 16:23
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Oct 3, 2026
Restore bounded process observations and exact-instance Stop through existing local and retained-worker owners. Preserve narration release custody, permission ceilings, and parent drafts; keep Subagents out of the topbar.

Co-authored-by: steipete <[email protected]>
Co-authored-by: shakkernerd <[email protected]>
@roboclaw-bot

roboclaw-bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

Separate sidebar restoration — a1e2182

Subagents and Processes are independent side-panel tabs. The dedicated Subagents icon is removed from the conversation and Home topbars. The existing Subagents design, child transcript, and parent draft ownership are retained.

Before / after

Actual built Control UI, Chromium, dark theme, 1440×900, synthetic Gateway data. Before is the original PR head 232bb69, which has Subagents but no Processes. After is this restoration candidate. Both images were inspected and delivered in the originating conversation.

Before After
Original PR: no Processes panel Separate Processes and Subagents tabs without a Subagents topbar icon

Completed verification

  • 17 browser scenarios pass, including a regression that first failed on the unwanted topbar icon, independent panel discovery, exact Stop parameters, and draft/reload preservation.
  • Focused runtime/UI suites pass, including foreign-versus-own narrow-scope permissions, stale instance/authority rejection, bounded non-consuming process output, and subscription-release retry custody.
  • Full runtime and Control UI builds pass. Core production, all core-test shards, UI, scripts, and root-test types pass. All 82 changed TypeScript/JS files pass scoped lint; scripts and UI stylesheet lint pass.
  • Whole-core lint reports only three inherited maximum-line violations after the changed-scope repairs: chat-send-admission.ts, doctor-contract-registry.ts, and openclaw-state-read.worker.ts. These files are unchanged from the PR merge base. No lint baseline or suppression was relaxed.
  • UI build reports a startup-JS advisory (365.1 KiB versus 364.7 KiB); build exits successfully. No bundle budget was changed.
  • Real-Gateway proof passes in the supported rootless, network-isolated runner: real background exec socket and native child stream; separate desktop/mobile list and detail; exact child-run and process-instance Stop; confirmed socket/stream closure; parent run left pending; retained output and draft preserved after reload. The loopback model provider is scripted, not an external live API. Scenario: 10.33 s; Vitest: 36.91 s; cold isolated build plus proof: 272.57 s. The task-owned container was removed. Team production was not deployed.
  • This live scenario first exposed a requested Stop incorrectly displayed as Failed. The fix reuses the process tool's canonical confirmation predicate; 14 focused tests pass, including timeout and cleanup-failure distinctions. The same live scenario then passed without weakening its assertions.

Production delta against the PR merge base is +3,249 lines; tests/support +2,845. Growth restores two independent panel flows and the missing bounded process read/exact-stop transport through existing registry/supervisor owners; it introduces no parallel Tasks registry, storage migration, retention change, or configuration option.

CI follow-up and compatibility

Six CI failures were repaired: append-only method registration, schema owner inventory, current/private/serial browser-test inventories, a frozen-target inventory that must not follow current tests, the deliberately removed topbar button expectation, and the canonical monospace theme token. The affected suites pass (34 method cases; 13 inventory cases; 6 theme cases; 6 additional browser scenarios). The updated image above includes the final output typography.

The actual exec/child live proof described above was run on the e28a8 runtime repair. Subsequent changes have focused method-order, inventory, and UI proof; that completed runtime evidence is retained rather than represented as a new live run.

Configuration and upgrade compatibility reviewed: no new config/default, database schema/version, persisted process store, retention change, or permission grant. The new schema module is an additive RPC contract, not stored data. Existing method indices and saved layouts remain valid. Older retained workers are rejected with actionable unavailability before unknown process commands; no alternate owner fallback. This addresses the review's compatibility question.

Two broader worker-wire CI failures from the previous head remain under isolated diagnosis; they are not being called inherited or passing. Landing remains pending their disposition and the native gates.

Conflict repair and runner readiness — 22:23 UTC

Merged current main to resolve the actual conflict, preserving contributor ancestry and main's consolidated SSH/node timeout tests. The new process-observation fixture method remains present. On this published head, 32 worker environment/observation cases, six process-RPC permission cases, and 68 sidebar/controller/composer UI cases pass (106 total). The frozen dependency lock is reconciled.

Two isolated-runner defects encountered during diagnosis are also repaired: complete private-QA/declaration preparation for the canonical E2E configuration, and private scratch on the existing admitted snapshot disk. They preserve HOME isolation, the 2-GiB /tmp cap, networking, mounts, authority, and cleanup. Their 33 focused tests and changed-file lint pass; they do not claim to fix either runtime CI failure.

The original two worker-wire failures remain under investigation. The earlier Testbox admission expired and AWS refused allocation at its active-lease cap; neither command reached runtime assertions. Diagnosis has resumed. Current-head CI is https://github.com/openclaw/openclaw/actions/runs/37158161545; it is not yet passing evidence. Existing screenshots and e28 live proof remain historical evidence for unchanged behavior, not a fresh live run on this head. No Team production deployment.

Final worker-wire repairs — 23:10 UTC

Both previously failing scenarios now have reproduced causes and passing repairs:

  • Node exec: the state-read migration required openclaw-state-read.worker.mjs and worker-native-lifecycle.worker.mjs, but the portable bundle did not deliver/register them. Existing build, sealed-entry registry and hashed bundle inventory now include those canonical workers. Original sequence failed at exec after85.509s; it now passes142.801s, reaching previously blocked reconnect, reconciliation, load and restart assertions. Relocated-archive regression performs real read and SQLite authorization (2.543s test).
  • Workshop fixture: runtime correctly deferred Workshop behind Tool Search. Synthetic provider now describes the advertised tool, validates its real schema and invokes its returned catalog identity. Original collaborator-authoring sequence failed28.208s; now passes38.477s through remaining ownership, supporting-file, pin and replacement assertions. Discovery itself is asserted.

Proof used supported rootless isolation, unchanged deadlines and a complete private-QA/declaration build (final build9m17.6s). Fresh independent P0-P2 review found no actionable findings. Formatting, focused type-aware lint and diff-check pass. Parent integration reran all50 build-configuration cases successfully (16.80s wrapper). Temporary instrumentation is absent from source; owned containers/snapshots and AWS lease cleaned up.

Fixes published as17d445/36dfcee. Both earlier CI findings are resolved by source and red-to-green proof; current-head hosted CI and native landing gates remain pending. Earlier screenshots and e28 live UI evidence retain original attribution. No Team deployment, schema/protocol bump, permission or timeout change.

Remaining CI failures repaired — October4,00:27UTC

All three roots from the completed04d95a58 CI run are now addressed:

  • Linux test inventory: incorporated canonical main fix53eb4193d0edae, which uses the existing native Node test owner and test-prefixed filenames. The original full-suite ownership audit passes11.33s; no ignored-test exception.
  • UI unknown outcome: an explicit activity end phase must not become Running merely because its parent remains live. The shared resolver now retains Unknown for an ended statusless item, while start/update fallback remains covered. The regression fails before the owner repair and passes after;78focused unit tests and all15original browser scenarios pass (33.79s browser suite). Typed lint and fresh independent P0-P2 review are clean.
  • Workshop fixture reconciliation: main3d66dd51 had forced Tool Search off to accommodate the old synthetic provider. Our corrected provider supports real discovery, so that obsolete override is removed, not the discovery assertion. Exact candidatee1e83 passes the original full worker scenario43.006s, including every ownership, publication, support-file, pin, refresh/removal, cancellation, replacement and reclaim assertion. Private-QA/declaration build passes10m34.6s; wholeisolatedinvocation12m9.5s; container/snapshot cleaned up. Finaled13 adds only the separately tested UI repair.

Current published head:ed13d849bd72b7b4526c03478239c6276aaf0ec9. Exact-head CI:https://github.com/openclaw/openclaw/actions/runs/37164774724. Landing now uses normal completed gates and direct native recovery, not an inherited-red exception. Auto-merge remains disabled. No Team deployment. Earlier visual and real-Gateway evidence retains its original attribution above.

Final test-harness integration — October4,00:42UTC

The completeded13 run passed the original worker/runtime repairs and exposed three harness issues. All have reproduced repairs:

  • UI projects now reuse canonical workspace source aliases, preserving browser redaction and excluding Node dependency shims. The missing worker-runtime import fails before repair and passes afterward under pinned Bun and Node without runtime builds. Parent combined integration:44tests pass on each runtime;23configuration cases pass.
  • The sibling node outcome fixture distinguishes start/update/end rather than expecting ended activity to remain Running.88related tests pass, with no new production change.
  • Activity now asserts the existing push-reconciliation contract: settled state and no redundant active-only read, with all visible membership and owner-specific navigation assertions retained.2browser cases and53owner tests pass.

All patches have fresh scoped P0-P2 clean review and checked lint/formatting. Alias duplication is removed instead of adding a special-case fallback. Auto-merge stays disabled; direct native recovery follows completed normal gates. Earlier runtime/media proof retains its attribution.

Current head:a1e2182f9140778d6c5385ca1a7757fe079353cb. Current CI:https://github.com/openclaw/openclaw/actions/runs/37165639560 (pending, not a green claim).

Landed — October4,2026,01:00UTC

Exact-head CI37165639560 passed with no pending checks. The native completed-evidence gate accepted sourcea1e2182f9140778d6c5385ca1a7757fe079353cb, and direct recovery landed it as e25a981. GitHub merged state, retained native complete receipt and containment on main were verified. Auto-merge was not re-enabled; no admin CI exception or Team deployment was used. Native PR worktree and task-owned PR branches were removed and their absence verified.

@github-actions

github-actions Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: a1e2182f9140778d6c5385ca1a7757fe079353cb
  • Maintainer: @shakkernerd
  • Repository role: maintain

These security sensitive changes were made:

  • src/gateway/methods/core-descriptors.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/session-method-policy.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/shared/session-method-scopes-base.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.

Carefully review these changes before merging.

@clawsweeper

clawsweeper Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@roboclaw-bot roboclaw-bot changed the title fix: restore subagent navigation in the chat side panel fix: restore subagent and background process side panels Oct 3, 2026
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime scripts Repository scripts agents Agent runtime and tooling labels Oct 3, 2026
Reuse the existing cancellation confirmation predicate without masking timeout or finalization failures.

Co-authored-by: steipete <[email protected]>
Co-authored-by: shakkernerd <[email protected]>
@clawsweeper clawsweeper Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Oct 3, 2026
@clawsweeper

clawsweeper Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

vyctorbrzezowski added a commit that referenced this pull request Oct 22, 2026
* improve: show configured names for shared operator profiles

* fix(ui): preserve unnamed shared owner labels across consumers

* test(ui): align sidebar shared owner name expectation

* fix(test): share package aliases with UI Vitest projects

Backport the shared worker-runtime alias-owner entries from #164537. Reuse the shared aliases in standalone UI Vitest and cover them following #164061.

* fix(ui): reconcile named shared-owner locale expectations and scan coverage

* chore: prepare reviewed contributor base integration

* fix(ui): preserve shared profile labels across main integration

* chore: remove duplicate scan target

* style(ui): format shared profile name fixture

---------

Co-authored-by: TheAngryPit <[email protected]>
Co-authored-by: Vyctor H. Brzezowski <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 23, 2026
…#164593)

* improve: show configured names for shared operator profiles

* fix(ui): preserve unnamed shared owner labels across consumers

* test(ui): align sidebar shared owner name expectation

* fix(test): share package aliases with UI Vitest projects

Backport the shared worker-runtime alias-owner entries from openclaw#164537. Reuse the shared aliases in standalone UI Vitest and cover them following openclaw#164061.

* fix(ui): reconcile named shared-owner locale expectations and scan coverage

* chore: prepare reviewed contributor base integration

* fix(ui): preserve shared profile labels across main integration

* chore: remove duplicate scan target

* style(ui): format shared profile name fixture

---------

Co-authored-by: TheAngryPit <[email protected]>
Co-authored-by: Vyctor H. Brzezowski <[email protected]>
obviyus added a commit that referenced this pull request Nov 22, 2026
## Problem

Open a brand-new main chat (no messages yet, for example right after onboarding sets a model). Session Details shows a red "Session process access changed; refresh the conversation." with Retry until the first reply arrives. The Gateway log shows three refused reads for the same chat:

- `sessions.processes.list` → `FORBIDDEN` "Session process access changed; refresh the conversation."
- `mcp.app.discover` → `FORBIDDEN` "The requested session is unavailable; open an existing session first."
- `talk.catalog` → `INVALID_REQUEST` "No session found: agent:main:main"

A config hot reload is not needed: a fresh profile with a model already configured shows the same three refusals.

![Before: new chat shows the process access alert](https://github.com/user-attachments/assets/da479b13-8826-428d-b009-f85f9c914719)

## Root cause

The agent's main conversation has no session row until its first turn creates it. The chat still starts session-scoped reads for it on open:

- Session Details reads processes as soon as it renders (`ui/src/pages/chat/chat-pane-layout-render.ts:293`, process Details since #175041). The Gateway has no row to bind the list to and answers with the access-changed error (`src/gateway/server-methods/session-processes.ts:69-79`, since #164061).
- The composer mounts MCP discovery for the chat. The composer already has a `sessionAdmitted` gate for provisional sessions (`chat-composer-view.tsx:414`, #166865), but the chat pane never set it. Discovery needs a session authority, which needs a row (`src/gateway/session-access-authority.ts:246`).
- The composer reads the session-scoped Talk catalog. The catalog only uses the key to pick the agent, but `talk.catalog` refused the missing row (`src/gateway/talk/handlers/catalog.ts:536`). Subscriptions already admit the caller's own unstarted main conversation (`isStartableMainSession`, #197151).

v2026.11.6 has the same chat pane and process code.

## Fix

Each reader is fixed at the owner of the fact it depends on:

| Read | Depends on | Owner and fix |
|---|---|---|
| `sessions.processes.list` | the row's `sessionId` | Control UI: Details stops offering process reads once the chat's history read proved the session absent (`isChatSessionProvenAbsent`, #197151). A cold load of an existing chat keeps its Details layout while rows load. |
| `mcp.app.discover` | a session authority built from the row | Control UI: the chat pane sets the composer's existing `sessionAdmitted` gate from the selected row, so composer extensions mount once it exists |
| `talk.catalog` | only the agent named by the key | Gateway: answers the caller's own unstarted main conversation from its agent (same `isStartableMainSession` rule as subscriptions); other missing or hidden keys still get "No session found" |

Holding `talk.catalog` in the UI instead would keep dictation unavailable for the first message, and the protocol has no agent-only form of the request.

Same PR, first send (two causes, both at their owner):

- **Diff baseline (session creation owner).** The first turn captures the session diff baseline (`sessionDiffBaseline`, the files that existed before the session) about half a second after `chat.send` creates the row. A diff read in that window either showed pre-existing workspace files as session changes or was refused with "Session workspace changed during file access" when the baseline landed. A new operator conversation now records the pending baseline claim (`sessionDiffBaselineCapture`) with its row, as `sessions.create` already does (`buildNewSessionCreationFields` in `src/config/sessions/session-diff-baseline-capture.ts`), and the diff answers "no changes" while the claim is pending (`src/gateway/server-methods/sessions-diff.ts`). The first turn's existing capture settles the claim.
- **Skill-library selection (workspace owner).** The first turn writes an empty selection (`librarySelections: []`) into a row that had none, and the session file workspace compared `undefined` with `[]` strictly. The sandbox owner already treats both as "no selection" (`librarySelections?.length`); the workspace check now does too.

The existing access-change refusals (replaced row, revoked sharing) are unchanged.

## Impact

- A new chat opens without an error. Processes and MCP controls appear after the first turn, which is when they can have content. The first message can be dictated.
- No protocol or schema change.

![After: new chat opens without the alert](https://github.com/user-attachments/assets/fccbce31-4a42-4e73-a9b5-4f8d0adb2460)

## Evidence

- Real-Gateway Control UI e2e `ui/src/e2e/chat-new-session-readers.real-gateway.e2e.test.ts`: opens `agent:main:main` before its first turn at 1600x900, sends the first message, checks that no non-retryable Gateway read failed and that process, MCP and diff reads succeed after the row exists. Red on the merge base (the three refusals above), green on this branch.
- `src/gateway/talk/handlers/catalog.test.ts` "answers the caller's unstarted main conversation from its agent": red on the merge base, green here. A missing non-main key and a caller who cannot start the conversation still get "No session found".
- `src/gateway/server-methods/sessions-diff-reset.test.ts` "shows no changes for a new operator conversation before its first turn captures the baseline": creates the row through the real reply session init, then reads the diff of a repo with a pre-existing file. Red on the merge base (the pre-existing file is listed as a session change), green here.
- `src/gateway/server-methods/session-file-live-read.test.ts` "keeps a diff read across the first turn recording no library skills": red on the merge base, green here; a real selection change still invalidates.
- Isolated Gateway with a real provider, fresh agent main chat, Control UI at 1600x900: base shows the alert and logs the three refusals; this branch shows no alert and no refusal, and the first reply arrives.
- Existing consumers: `chat-pane-side-panels.test.ts`, `chat-details-reload.e2e.test.ts`, `test/vitest-ui-e2e-config.test.ts` green. `chat-pane-state-snapshot.e2e.test.ts` was red on `main` and is fixed separately in #203246.
- `pnpm tsgo:ui`, `pnpm check:test-types`, `pnpm check:changed` (the dead-export scan reports two exports in files this PR does not touch; same on `main`).

Isolated Gateway first-send log (fresh agent, real provider, head rebased on #203283): from opening the brand-new chat through the first reply, no FORBIDDEN, UNAVAILABLE or INVALID_REQUEST line. The `talk.catalog` first-read "warming" answer is fixed at its owner in #203283.

## Merge danger

Two-way door: a revert fully restores the previous behavior. No stored state, config or published contract changes. Blast radius: Control UI chats, `talk.catalog` callers for an unstarted main conversation, new operator session rows (pending diff-baseline claim), and session file/diff reads across the first turn.

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 22, 2026
…w#203126)

## Problem

Open a brand-new main chat (no messages yet, for example right after onboarding sets a model). Session Details shows a red "Session process access changed; refresh the conversation." with Retry until the first reply arrives. The Gateway log shows three refused reads for the same chat:

- `sessions.processes.list` → `FORBIDDEN` "Session process access changed; refresh the conversation."
- `mcp.app.discover` → `FORBIDDEN` "The requested session is unavailable; open an existing session first."
- `talk.catalog` → `INVALID_REQUEST` "No session found: agent:main:main"

A config hot reload is not needed: a fresh profile with a model already configured shows the same three refusals.

![Before: new chat shows the process access alert](https://github.com/user-attachments/assets/da479b13-8826-428d-b009-f85f9c914719)

## Root cause

The agent's main conversation has no session row until its first turn creates it. The chat still starts session-scoped reads for it on open:

- Session Details reads processes as soon as it renders (`ui/src/pages/chat/chat-pane-layout-render.ts:293`, process Details since openclaw#175041). The Gateway has no row to bind the list to and answers with the access-changed error (`src/gateway/server-methods/session-processes.ts:69-79`, since openclaw#164061).
- The composer mounts MCP discovery for the chat. The composer already has a `sessionAdmitted` gate for provisional sessions (`chat-composer-view.tsx:414`, openclaw#166865), but the chat pane never set it. Discovery needs a session authority, which needs a row (`src/gateway/session-access-authority.ts:246`).
- The composer reads the session-scoped Talk catalog. The catalog only uses the key to pick the agent, but `talk.catalog` refused the missing row (`src/gateway/talk/handlers/catalog.ts:536`). Subscriptions already admit the caller's own unstarted main conversation (`isStartableMainSession`, openclaw#197151).

v2026.11.6 has the same chat pane and process code.

## Fix

Each reader is fixed at the owner of the fact it depends on:

| Read | Depends on | Owner and fix |
|---|---|---|
| `sessions.processes.list` | the row's `sessionId` | Control UI: Details stops offering process reads once the chat's history read proved the session absent (`isChatSessionProvenAbsent`, openclaw#197151). A cold load of an existing chat keeps its Details layout while rows load. |
| `mcp.app.discover` | a session authority built from the row | Control UI: the chat pane sets the composer's existing `sessionAdmitted` gate from the selected row, so composer extensions mount once it exists |
| `talk.catalog` | only the agent named by the key | Gateway: answers the caller's own unstarted main conversation from its agent (same `isStartableMainSession` rule as subscriptions); other missing or hidden keys still get "No session found" |

Holding `talk.catalog` in the UI instead would keep dictation unavailable for the first message, and the protocol has no agent-only form of the request.

Same PR, first send (two causes, both at their owner):

- **Diff baseline (session creation owner).** The first turn captures the session diff baseline (`sessionDiffBaseline`, the files that existed before the session) about half a second after `chat.send` creates the row. A diff read in that window either showed pre-existing workspace files as session changes or was refused with "Session workspace changed during file access" when the baseline landed. A new operator conversation now records the pending baseline claim (`sessionDiffBaselineCapture`) with its row, as `sessions.create` already does (`buildNewSessionCreationFields` in `src/config/sessions/session-diff-baseline-capture.ts`), and the diff answers "no changes" while the claim is pending (`src/gateway/server-methods/sessions-diff.ts`). The first turn's existing capture settles the claim.
- **Skill-library selection (workspace owner).** The first turn writes an empty selection (`librarySelections: []`) into a row that had none, and the session file workspace compared `undefined` with `[]` strictly. The sandbox owner already treats both as "no selection" (`librarySelections?.length`); the workspace check now does too.

The existing access-change refusals (replaced row, revoked sharing) are unchanged.

## Impact

- A new chat opens without an error. Processes and MCP controls appear after the first turn, which is when they can have content. The first message can be dictated.
- No protocol or schema change.

![After: new chat opens without the alert](https://github.com/user-attachments/assets/fccbce31-4a42-4e73-a9b5-4f8d0adb2460)

## Evidence

- Real-Gateway Control UI e2e `ui/src/e2e/chat-new-session-readers.real-gateway.e2e.test.ts`: opens `agent:main:main` before its first turn at 1600x900, sends the first message, checks that no non-retryable Gateway read failed and that process, MCP and diff reads succeed after the row exists. Red on the merge base (the three refusals above), green on this branch.
- `src/gateway/talk/handlers/catalog.test.ts` "answers the caller's unstarted main conversation from its agent": red on the merge base, green here. A missing non-main key and a caller who cannot start the conversation still get "No session found".
- `src/gateway/server-methods/sessions-diff-reset.test.ts` "shows no changes for a new operator conversation before its first turn captures the baseline": creates the row through the real reply session init, then reads the diff of a repo with a pre-existing file. Red on the merge base (the pre-existing file is listed as a session change), green here.
- `src/gateway/server-methods/session-file-live-read.test.ts` "keeps a diff read across the first turn recording no library skills": red on the merge base, green here; a real selection change still invalidates.
- Isolated Gateway with a real provider, fresh agent main chat, Control UI at 1600x900: base shows the alert and logs the three refusals; this branch shows no alert and no refusal, and the first reply arrives.
- Existing consumers: `chat-pane-side-panels.test.ts`, `chat-details-reload.e2e.test.ts`, `test/vitest-ui-e2e-config.test.ts` green. `chat-pane-state-snapshot.e2e.test.ts` was red on `main` and is fixed separately in openclaw#203246.
- `pnpm tsgo:ui`, `pnpm check:test-types`, `pnpm check:changed` (the dead-export scan reports two exports in files this PR does not touch; same on `main`).

Isolated Gateway first-send log (fresh agent, real provider, head rebased on openclaw#203283): from opening the brand-new chat through the first reply, no FORBIDDEN, UNAVAILABLE or INVALID_REQUEST line. The `talk.catalog` first-read "warming" answer is fixed at its owner in openclaw#203283.

## Merge danger

Two-way door: a revert fully restores the previous behavior. No stored state, config or published contract changes. Blast radius: Control UI chats, `talk.catalog` callers for an unstarted main conversation, new operator session rows (pending diff-baseline claim), and session file/diff reads across the first turn.

Co-authored-by: Ayaan Zaidi <[email protected]>
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 gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts security-sensitive-changed size: XL 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.

3 participants