Skip to content

fix(session-catalog): preserve explicit agent ownership across UI and CLI - #123899

Merged
steipete merged 9 commits into
openclaw:mainfrom
IWhatsskill:fix/session-catalog-multi-home-owner
Aug 15, 2026
Merged

steipete merged 9 commits into
openclaw:mainfrom
IWhatsskill:fix/session-catalog-multi-home-owner

Conversation

@IWhatsskill

@IWhatsskill IWhatsskill commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

[AI-assisted]

What Problem This Solves

Session-catalog requests could lose their explicit OpenClaw agent owner between the route, provider, adoption, terminal handoff, and Codex App Server connection. The catalog also exposed only one Codex home, so sessions stored in a process CODEX_HOME or another configured agent codex-home could disappear from the Control UI.

Failure mode

In multi-agent installations, List, Read, Continue, Archive, adoption, and terminal actions could resolve different agent directories. Independently, a single App Server connection could only enumerate the thread store for one CODEX_HOME.

Why This Change Was Made

The Gateway now resolves one concrete owner for every catalog request and forwards it through providers and UI actions. The Codex provider discovers each existing local Codex home, gives it an opaque source identity, and routes later actions and supervised bindings back to the same home while retaining the route owner's agent directory.

Root Cause

Owner resolution was repeated at multiple layers and sometimes fell back to the default agent. The Codex catalog control also assumed one process-wide connection even though each App Server process reads exactly one Codex home.

Runtime ownership

The chat route or sidebar catalog owns agentId. The opaque home identity owns CODEX_HOME selection, pagination, reads, continuation, archive, terminal resume, and later supervised turns. One shared App Server connection remains scoped to each physical home.

User Impact

Users can see sessions from their process Codex home and configured agent Codex homes together, then read, continue, archive, adopt, or open the selected session without crossing agent or home boundaries. The Codex CLI also accepts --agent for list, continue, and archive, plus --host for actions on secondary local homes.

Evidence

Revalidated at exact head 21f7c721949ca0a1a29d96c7a6e314c74dbfe4a5: the focused ownership regression suite and a fresh real two-home App Server run passed after the CI repair. The runtime kept alpha and beta owners separate, retained stable source identity, isolated the two stores, rejected a wrong-home read, and reused one connection per physical home.

Inspect exact-head proof ledger

Provenance

  • Base: 054354e099c4952af5152c974253b99af5cfb676
  • Proof head: 0ffc5b730a96fd00c27c61fa69fd6de4aa11c043
  • Revalidated: on the bound base

Direct behavior

Codex multi-home runtime command

node --import tsx .artifacts/session-catalog-multihome-0ffc5b730a9/session-catalog-multihome.ts
  • Codex multi-home runtime (PRODUCTION_RUNTIME; boundary: production Codex home resolver, shared App Server clients, thread/list, and thread/read against real local stores) — Observed: Two real Codex stores were discovered for both alpha and beta; each catalog retained its route owner, the same physical home kept one opaque source identity and one App Server connection, correct-home reads succeeded, and a wrong-home read was rejected. Result: the selected agent and opaque home remained authoritative through real App Server list and read operations. Proves multi-home discovery and later routing do not merge thread stores or replace the route owner. Preserves one physical App Server connection per Codex home.

Redacted exact-head terminal output

{"schema":"session-catalog-multihome-direct-proof-v1","head":"0ffc5b730a96fd00c27c61fa69fd6de4aa11c043","owners":{"alpha":true,"beta":true,"separated":true},"homes":{"discoveredForAlpha":2,"discoveredForBeta":2,"sharedSourceIdentity":true,"isolatedThreads":true,"secondHomeConnected":true},"appServers":{"oneConnectionPerHome":true,"sharedAcrossOwnersForSameHome":true},"list":true,"read":true}

Automated verification

Session catalog ownership regressions

pnpm exec vitest run extensions/codex/src/session-catalog.test.ts extensions/codex/src/session-cli.test.ts src/plugins/session-catalog.test.ts src/gateway/server-methods/session-catalog.test.ts src/gateway/server-methods/session-catalog-visibility.test.ts ui/src/lib/sessions/catalog-key.test.ts ui/src/pages/chat/chat-pane.test.ts ui/src/pages/chat/chat-pane-history.test.ts ui/src/components/app-sidebar.test.ts ui/src/components/terminal/terminal-panel.test.ts
  • pnpm exec vitest run extensions/codex/src/session-catalog.test.ts extensions/codex/src/session-cli.test.ts src/plugins/session-catalog.test.ts src/gateway/server-methods/session-catalog.test.ts src/gateway/server-methods/session-catalog-visibility.test.ts ui/src/lib/sessions/catalog-key.test.ts ui/src/pages/chat/chat-pane.test.ts ui/src/pages/chat/chat-pane-history.test.ts ui/src/components/app-sidebar.test.ts ui/src/components/terminal/terminal-panel.test.ts — [TEST] 460/460 tests passed across 8 executed test files. Proves owner propagation, fail-closed multi-agent behavior, pagination, stale guards, home-qualified adoption identity, agent-qualified concurrent Continue operations, terminal handoff, CLI forwarding, and multi-home provider routing. Preserves legacy compatible-owner discovery and single-agent callers without --agent.

Browser session-catalog E2E

node --import tsx scripts/ensure-playwright-chromium.mts && node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/codex-sessions.e2e.test.ts
  • node --import tsx scripts/ensure-playwright-chromium.mts && node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/codex-sessions.e2e.test.ts — [TEST] 7/7 browser E2E scenarios passed. Proves catalog grouping and pagination, progressive host results, failure presentation, and browser adoption with explicit agentId: "main" across List, Read, and Continue.

Preserved boundaries

  • agents.ownership: explicit remains fail-closed for ownerless multi-agent requests.
  • CatalogSessionKey, URL formats, and /chat/ as the authoritative UI owner source remain unchanged.
  • Codex App Server authentication, OAuth behavior, and one-connection-per-home sharing remain unchanged.
  • Legacy compatible-owner discovery remains available outside explicit ownership mode.

Proof gap

No known proof gaps remain: the targeted browser E2E, focused regressions, type checks, and real two-home runtime proof all passed on the exact PR head.

Artifacts

  • None attached.

Current-head proof refresh

Validated on exact pushed head 21f7c721949ca0a1a29d96c7a6e314c74dbfe4a5.

Real two-home App Server behavior

node --import tsx .artifacts/session-catalog-multihome-21f7c721949/session-catalog-multihome.ts

The production home snapshot and shared App Server clients discovered two real stores for both route owners. The same physical process home retained one opaque source identity and one shared connection across owners; reads stayed in the selected store, and a cross-home read was rejected.

{"schema":"session-catalog-multihome-direct-proof-v1","head":"21f7c721949ca0a1a29d96c7a6e314c74dbfe4a5","owners":{"alpha":true,"beta":true,"separated":true},"homes":{"discoveredForAlpha":2,"discoveredForBeta":2,"sharedSourceIdentity":true,"isolatedThreads":true,"secondHomeConnected":true},"appServers":{"oneConnectionPerHome":true,"sharedAcrossOwnersForSameHome":true},"list":true,"read":true}

Focused regression proof

pnpm exec vitest run extensions/codex/src/session-catalog.test.ts extensions/codex/src/session-cli.test.ts src/plugins/session-catalog.test.ts src/gateway/server-methods/session-catalog.test.ts src/gateway/server-methods/session-catalog-visibility.test.ts ui/src/lib/sessions/catalog-key.test.ts ui/src/pages/chat/chat-pane.test.ts ui/src/pages/chat/chat-pane-history.test.ts ui/src/components/app-sidebar.test.ts ui/src/components/terminal/terminal-panel.test.ts

All selected regression files completed successfully. Current-head formatting, changed-file lint, and pnpm check:test-types also passed.

This evidence proves the current broad multi-home behavior; the separate maintainer scope decision requested by ClawSweeper remains unchanged.

@clawsweeper

clawsweeper Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime extensions: acpx extensions: anthropic extensions: codex extensions: opencode plugin: beam Beam session sharing plugin size: XL labels Aug 15, 2026
@IWhatsskill
IWhatsskill marked this pull request as ready for review August 15, 2026 00:29
@IWhatsskill
IWhatsskill requested a review from a team as a code owner August 15, 2026 00:29
@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. 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. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 15, 2026
@clawsweeper

clawsweeper Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 15, 2026, 6:35 AM ET / 10:35 UTC.

ClawSweeper review

What this changes

The PR propagates an explicit agent owner and opaque Codex-home identity through session-catalog UI, Gateway, CLI, provider, terminal, and supervised-fork operations.

Merge readiness

⛔ Blocked until stronger real behavior proof is added - 9 items remain

Keep open: two remaining P1 defects can cross explicit agent ownership during concurrent Pi or OpenCode session adoption. The PR is not on current main or released.

Priority: P1
Reviewed head: e8925ce915bcce713e980306eba7252da67d0860

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The PR has substantial runtime evidence, but two P1 cross-agent ownership defects remain and the UI behavior lacks real-surface proof.
Proof confidence 🦐 gold shrimp (3/6) Needs stronger real behavior proof before merge: The exact-head terminal trace is useful provider evidence, but this UI-visible change lacks redacted real Control UI proof of the multi-agent catalog flow. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦪 silver shellfish (2/6) 2 actionable review findings remain.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: The exact-head terminal trace is useful provider evidence, but this UI-visible change lacks redacted real Control UI proof of the multi-agent catalog flow. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 7 items Pi cross-agent collision: Pi scopes its existing-session lookup by agent but gives the shared single-flight coordinator only the host/thread key; a concurrent second agent returns the first operation's session key.
OpenCode cross-agent collision: OpenCode has the same unqualified coordinator key while creation is explicitly agent-owned.
Coordinator behavior: The shared coordinator returns an existing promise before running the caller's agent-scoped lookup or creation callback.
Findings 2 actionable findings [P1] Namespace Pi adoption single-flight by agent
[P1] Namespace OpenCode adoption single-flight by agent
Security None None.

How this fits together

Session catalog requests originate in the Control UI or CLI, pass through Gateway authorization to a provider, then operate on an external session store. The selected agent and Codex home must remain attached through reads, continuation, archival, terminal launch, and later forks.

flowchart LR
  A[Control UI or CLI] --> B[Gateway catalog request]
  B --> C[Agent owner resolution]
  C --> D[Catalog provider]
  D --> E[Selected local session store]
  E --> F[Read, continue, archive, or terminal action]
  F --> G[Agent-owned session result]
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: The exact-head terminal trace is useful provider evidence, but this UI-visible change lacks redacted real Control UI proof of the multi-agent catalog flow. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Namespace Pi adoption single-flight by agent (P1) - The lookup is agent-scoped, but the coordinator key is only host/thread. Concurrent alpha and beta requests for the same Pi session share the first promise, so beta can receive alpha's session key before its own lookup or creation runs.
  • Namespace OpenCode adoption single-flight by agent (P1) - This has the same cross-agent coalescing bug as Pi: the coordinator returns a promise keyed only by host/thread even though the adopted session is created for the explicit agent.
  • Resolve merge risk (P1) - Concurrent Pi or OpenCode adoption by two explicit agents can return one agent's adopted session key to the other.
  • Resolve merge risk (P1) - The PR changes Control UI catalog actions but provides no real running UI recording or screenshot of the multi-agent flow.
  • Resolve merge risk (P1) - Direct Codex App Server source validation remains unavailable in this reviewer environment.
  • Complete next step (P2) - The two remaining P1 defects have a narrow, mechanical repair and clear two-agent regression coverage path.
  • Improve patch quality - Namespace Pi and OpenCode in-flight adoption by agent and add concurrent alpha/beta regressions.
  • Improve patch quality - Attach a redacted real Control UI recording or screenshots for catalog read, continue, and terminal ownership.

Findings

  • [P1] Namespace Pi adoption single-flight by agent — extensions/acpx/src/pi-session-catalog-runtime.ts:400-403
  • [P1] Namespace OpenCode adoption single-flight by agent — extensions/opencode/session-catalog-plugin.ts:541-544
Agent review details

Security

None.

PR surface

Source +899, Tests +1204, Docs +6, Other +28. Total +2137 across 67 files.

View PR surface stats
Area Files Added Removed Net
Source 41 1741 842 +899
Tests 24 2037 833 +1204
Docs 1 20 14 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 1 29 1 +28
Total 67 3827 1690 +2137

Review metrics

Metric Value Why it matters
Production versus test delta visible stats: production net +736; tests/test-support net +1,350; 53 additions/2 deletions could not be materialized from the partial clone This is a large cross-boundary bug fix; the remaining production growth should stay focused on a single owner-qualified flow.
Compatibility surface 3 optional protocol fields and 5 provider action parameter shapes extended Existing clients and plugin providers must continue to use the additive default-owner path safely.

Stored data model

Persistent data-model change detected: persistent cache schema: extensions/codex/src/app-server/binding-connection.ts, persistent cache schema: extensions/codex/src/session-catalog-homes.ts, persistent cache schema: extensions/codex/src/session-catalog.test.ts, serialized state: extensions/acpx/src/pi-session-catalog-node.test.ts, serialized state: extensions/anthropic/session-catalog-runtime.ts, serialized state: extensions/anthropic/session-catalog.test.ts, and 46 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Scope adoption single-flight by owner (recommended)
    Include agent identity in Pi and OpenCode coordinator keys and prove simultaneous alpha/beta adoption of the same source creates or returns owner-correct sessions.
  2. Add real UI evidence
    Record or screenshot a redacted live Control UI flow showing the selected agent stays attached through catalog read, continue, and terminal launch.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Namespace Pi and OpenCode adoption single-flight operations by agent, add explicit two-agent concurrent continuation regressions, preserve same-agent deduplication, and attach redacted Control UI proof after the repair.

Technical review

Best possible solution:

Namespace Pi and OpenCode adoption single-flight keys by agent, add two-agent concurrency regressions, and attach redacted real Control UI proof before merging.

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

Yes, from source: concurrently continue the same Pi or OpenCode host/thread as alpha and beta; the second call reuses the first unqualified coordinator promise before reaching its own agent-scoped lookup.

Is this the best way to solve the issue?

No: owner propagation is otherwise coherent, but Pi and OpenCode must namespace their adoption coordinator by agent as Anthropic already does.

Full review comments:

  • [P1] Namespace Pi adoption single-flight by agent — extensions/acpx/src/pi-session-catalog-runtime.ts:400-403
    The lookup is agent-scoped, but the coordinator key is only host/thread. Concurrent alpha and beta requests for the same Pi session share the first promise, so beta can receive alpha's session key before its own lookup or creation runs.
    Confidence: 0.98
  • [P1] Namespace OpenCode adoption single-flight by agent — extensions/opencode/session-catalog-plugin.ts:541-544
    This has the same cross-agent coalescing bug as Pi: the coordinator returns a promise keyed only by host/thread even though the adopted session is created for the explicit agent.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 7e0941270d0d.

Labels

Label justifications:

  • P1: A concurrent multi-agent catalog continuation can return the wrong agent's adopted session key.
  • merge-risk: 🚨 compatibility: The PR extends session-catalog protocol and plugin-provider request contracts used by existing clients and plugins.
  • merge-risk: 🚨 session-state: The remaining coordinator collision can associate an external session with the wrong agent-owned OpenClaw session.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The exact-head terminal trace is useful provider evidence, but this UI-visible change lacks redacted real Control UI proof of the multi-agent catalog flow. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

Acceptance criteria:

  • [P1] pnpm test extensions/acpx/src/pi-session-catalog.test.ts extensions/opencode/session-catalog.test.ts.
  • [P1] pnpm test src/gateway/server-methods/session-catalog.test.ts.
  • [P1] Attach a redacted live Control UI recording or screenshots of multi-agent catalog continuation and terminal ownership.

What I checked:

Likely related people:

  • steipete: Authored the per-request Codex-home, central owner-resolution, and adopted-home fork repairs on this branch, and has extensive current-area history. (role: recent area contributor; confidence: high; commits: a5558f844e25, fd53ceed966b, 7dd6b8f9e151; files: extensions/codex/src/session-catalog.ts, src/gateway/server-methods/session-catalog.ts)

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 (6 earlier review cycles)
  • reviewed 2026-08-15T00:44:36.372Z sha 0ffc5b730a96fd00c27c61fa69fd6de4aa11c043 :: found issues before merge. :: [P2] Keep Codex tests on the public plugin SDK boundary | [P2] Remove filesystem polling from catalog requests | [P1] Preserve a compatible public provider contract
  • reviewed 2026-08-15T02:41:28.457Z sha c713a6ebe99cacb857cea67034672151d0b821b2 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-15T04:20:40.109Z sha 21f7c721949ca0a1a29d96c7a6e314c74dbfe4a5 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-15T06:33:14.537Z sha ed2bae69259dbcf1dafffbf0344465b4a38adfa0 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-15T07:36:50.458Z sha c3ffbef3328d9970c5a64e4ccdfc88ee8e616583 :: needs real behavior proof before merge. :: [P1] Namespace Pi adoption single-flight by agent | [P1] Namespace OpenCode adoption single-flight by agent
  • reviewed 2026-08-15T08:15:42.704Z sha 4684fa1aa413d301d4178cfa8abf3a35327eb599 :: needs real behavior proof before merge. :: none

@clawsweeper clawsweeper Bot added 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. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. 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. labels Aug 15, 2026
@steipete

Copy link
Copy Markdown
Contributor

Maintainer review (deep pass, including direct codex-rs source inspection). Summary: the architecture is right — Gateway resolves one owner per catalog request, providers receive it additively, and the Codex provider owns multi-home discovery behind an opaque sourceHomeId. The one-connection-per-physical-home premise matches upstream Codex exactly (codex-rs/app-server/src/lib.rs resolves find_codex_home() once per process; the thread store is codex_home/sessions), so spawn-time CODEX_HOME selection is the correct mechanism. Sibling providers (anthropic, acpx/Pi, opencode, beam) and the UI owner threading are covered, and the isolated-state invariant actually improves (agent-dir stores stay visible when process-HOME fallback is banned).

Findings that block merge as-is:

  1. check-lint is red on the exact head: ui/src/pages/chat/chat-pane.test.ts exceeds max-lines (1032 counted > 1000 cap for test files). Repo policy is to split the file — suppressions/baseline edits are not accepted.
  2. Home snapshot goes stale on hot config reload. createCodexCatalogHomeSnapshot runs once at plugin registration, but agents.entries is a hot-reload config prefix (src/gateway/config-reload-plan.ts) — plugins are not re-registered. An agent added at runtime resolves against live config but gets an empty homes list: its local Codex sessions silently vanish from the catalog, and continue/read/archive/terminal fail with a misleading "unavailable in isolated state" error until Gateway restart. The snapshot (and the catalogConnectionHomes map used by supervised-binding recovery) should be keyed by runtime-config identity — same pattern as the adjacent requestOptionsByConfig cache — so it follows config generations without per-request fs polling.
  3. Control-surface shape. Threading optional positional (agentId?, source?) through every CodexSessionCatalogControl method produced dozens of params.source ? f(x, agentId, source) : f(x, agentId) call-site branches and drives most of the +903 production LOC. Homes are fixed per snapshot and source.agentDir already carries the directory — a per-home control facade (resolve the home once per request, then call an unchanged interface) deletes nearly all of that branching. agentId only genuinely matters at the adoption/continue-key boundaries.

Smaller items: resolveSessionAgentIds({ config: {} }) as a fallback in readCodexSessionTranscript; hardcoded "main" fallback in chat-pane-header.ts (unreachable in practice — the catalog key is also null when state is null — but it shouldn't exist); read/continue now run requireCatalogEligibleThread twice per action (memo-cached, worth collapsing during the refactor).

Since this branch allows maintainer edits, we are pushing fixes for the items above directly to it (test-file split, config-keyed snapshot, per-home facade refactor + LOC reduction), preserving your authorship on the base work. The additive public-contract scope (agentId/sourceHomeId on the catalog locator and session schema, CLI --agent/--host) is accepted.

Thanks @IWhatsskill — the direction and the sibling/UI coverage here are genuinely good work.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 15, 2026
@steipete
steipete force-pushed the fix/session-catalog-multi-home-owner branch from 4684fa1 to e8925ce Compare August 15, 2026 10:28
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 15, 2026
@steipete
steipete merged commit 6325814 into openclaw:main Aug 15, 2026
227 of 229 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 16, 2026
… CLI (openclaw#123899)

* fix(session-catalog): preserve explicit agent ownership across UI and CLI

* fix(session-catalog): repair owner routing regressions

* Fix-session-catalog-CI-checks

* test(ui): split chat catalog pane coverage

Co-authored-by: IWhatsskill <[email protected]>

* refactor(session-catalog): bind Codex homes per request

Co-authored-by: IWhatsskill <[email protected]>

* refactor(session-catalog): centralize owner resolution

Co-authored-by: IWhatsskill <[email protected]>

* fix(codex): resolve session fork against the adopted home

Co-authored-by: IWhatsskill <[email protected]>

* refactor(ui): extract chat session discussion

* test(sessions): stabilize archive worker responsiveness check

---------

Co-authored-by: IWhatsskill <[email protected]>
Co-authored-by: Peter Steinberger <[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 extensions: acpx extensions: anthropic extensions: codex extensions: opencode gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. plugin: beam Beam session sharing plugin rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants