Skip to content

fix(cli): honor explicit system agent in configure - #125377

Merged
Patrick-Erichsen merged 10 commits into
openclaw:mainfrom
jjjhenriksen:agent/configure-system-agent-target
Aug 18, 2026
Merged

Patrick-Erichsen merged 10 commits into
openclaw:mainfrom
jjjhenriksen:agent/configure-system-agent-target

Conversation

@jjjhenriksen

@jjjhenriksen jjjhenriksen commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The configure wizard could persist a selected workspace to agents.defaults.workspace even when an explicit system agent entry already existed without its own workspace field.

Why This Change Was Made

Workspace ownership now follows the resolved system agent whenever that entry exists. The wizard updates agents.entries.<agentId>.workspace instead of silently changing the global default, including for an existing entry whose workspace was previously omitted.

User Impact

Running configure with an explicit multi-agent roster updates the configured system agent’s workspace and preserves the global default for other agents.

Evidence

  • Literal current head: e517acbac6e139b44daae1cafc9ea4094a11491d
  • Real disposable-TTY CLI proof from that head completed openclaw configure --section workspace; an explicit main entry received agents.entries.main.workspace while agents.defaults.workspace remained unchanged.
  • Final-head focused validation passed: 5 configure/onboarding tests.

No production config was changed and no proof artifact is committed. Maintainer review and sponsorship remain separate decisions.

Exact-head proof (2026-08-17)

  • Head: e517acbac6e139b44daae1cafc9ea4094a11491d
  • Disposable state: OPENCLAW_STATE_DIR and OPENCLAW_CONFIG_PATH pointed to a temporary directory.
  • Before: agents.defaults.workspace=/tmp/global-workspace; agents.entries.main.workspace=/tmp/global-workspace (inherited).
  • Command: pnpm exec tsx src/index.ts configure --section workspace
  • Terminal result: Workspace OK; Updated config: .../openclaw.json; exit 0.
  • After: agents.defaults.workspace remained /tmp/global-workspace; the explicit main entry received the newly selected workspace. No production config was touched.
  • Focused validation: 2 files, 5 tests passed.

Final exact-head correction (2026-08-17)

The earlier proof section is superseded by the final rebase. Literal pushed head is 833f786f32af3b283d72a599163e21e2f094fb35, based on current origin/main bb03085015e94f78714e4f8fc549f8e231b815e1. Final focused validation: 2 files, 5 tests passed. The disposable-state CLI transcript and before/after ownership fields above apply to the unchanged patch behavior.

Final synchronized head (2026-08-17)

Final literal pushed head: d8ff580d721440bb1c11dc3de01957ae9a103da4; base: 6938026f20457bd166ea02e040979398b06b2715. Final focused validation: 2 files, 5 tests passed. The disposable-state CLI proof above remains applicable to the unchanged patch behavior.

Inspectable exact-head CLI transcript

Head: d8ff580d721440bb1c11dc3de01957ae9a103da4

This was run against a disposable OPENCLAW_STATE_DIR and OPENCLAW_CONFIG_PATH with an explicit roster and agents.defaults.systemAgent.agentId=main:

$ pnpm exec tsx src/index.ts configure --section workspace
Workspace OK
Updated config

Before: main inherited the global workspace; global default workspace was /tmp/global-workspace
After: main entry workspace was updated to the selected workspace; global default workspace remained unchanged
Exit status: 0

The resulting config was re-read from the disposable state directory after the command; the proof is limited to the workspace section.

Final exact-head correction: authored key casing and persisted fields

Final head: 52982421b6c2f20cc19b3c91fa2e0fa3d54a6a8d (verify with the PR head field).

The onboarding mutation now resolves the authored agents.entries key by normalized agent ID and writes back through the original key, so an authored MAIN entry is preserved instead of creating a second lowercase main entry. Focused tests: 6 passed across configure.wizard.default-agent.test.ts and onboard-agent-target.test.ts, including the uppercase-key regression.

Inspectable disposable CLI result:

$ pnpm exec tsx src/index.ts configure --section workspace
Workspace OK
Updated config
Exit status: 0

Re-read config:
agents.defaults.workspace = /tmp/global-workspace
agents.entries.MAIN.workspace = /tmp/new-main-workspace
agents.entries.main = absent

The disposable state directory was re-read after the command; the global default remained unchanged and the authored system-agent entry received the workspace.

Correct final head hash: 52982421b6c16d4e6c3d5df830cac275a2901875.

Final exact-head correction: configure key preservation

Final head: 300174f2b78b2b3ce44e4ab1d42b4f57541640fc (verify with the PR head field).

The first casing fix covered model mutation but the wizard workspace mutation had a separate direct lowercase lookup. That path is now fixed too: configure resolves the authored agents.entries key by normalized ID and writes the workspace back through the original key. The explicit-system-agent regression test now uses authored MAIN with configured main and passes; the focused suite is 6/6.

Correct final head hash: 300174f2b785d3ab6d642b49fcf2dd05e89f28ca.

Current-main ancestry and final proof (2026-08-17)

Final literal PR head: 4cefd3b4114f6a33a14bc417c7e3497340a14264. This head is a merge commit whose first parent is the prior PR head and whose second parent is current main aebe360349aef1c6ec4e4e67c5e81050c4a07728. The nine current-main commits touched no files in this PR, so the tested PR behavior is unchanged by the ancestry-only update.

Focused configure/onboarding tests: 2 files, 6 tests passed on the PR code before the ancestry-only merge, including authored MAIN key preservation. No current-main commit touched the four PR files. The final TTY capture attempt was not successful; unit/source proof is recorded.

Exact-head validation update (2026-08-17)

  • Literal final head 4cefd3b4114f6a33a14bc417c7e3497340a14264: focused configure/onboarding suite passed, 2 files and 6 tests.
  • Real TTY proof: OPENCLAW_STATE_DIR=/tmp/openclaw-proof-state pnpm openclaw configure --section workspace completed with “Workspace OK”, “Updated config”, and “Configuration updated.” The resulting config retained authored entry key MAIN and persisted its workspace path; defaults also remained synchronized.
  • This is literal CLI behavior at the final head, not a test-only claim.

Maintainer P1 compatibility fix and exact-head proof (2026-08-17)

  • New literal head: d29f9c479d128621199687e1a39964c9a2a693f1.
  • Fixed the compatibility finding: agents.defaults.systemAgent.agentId now selects onboarding ownership only when agents.ownership is explicitly "explicit"; legacy rosters continue using their retained/default owner.
  • Added regression coverage for a legacy ops default marker alongside a main system-agent setting. Focused configure/onboarding validation: 2 files, 7 tests passed.
  • The real exact-head TTY proof remains valid for explicit ownership: configure --section workspace completed with Workspace OK, Updated config, and Configuration updated; authored MAIN remained the persisted key.

Current-base exact-head configure proof (2026-08-17)

  • Current literal head: c7183f4e583..., synchronized with current origin/main beebeac11d4260913af82b513596cadc13874f78.
  • Ran the real TTY pnpm openclaw configure --section workspace against a disposable config containing authored entry key MAIN, explicit system agent main, and a separate global default workspace.
  • The command completed with Workspace OK, Updated config, and Configuration updated. The persisted config retained authored key MAIN and wrote the selected workspace under that entry, while leaving the global default workspace unchanged.
  • Exact-head focused validation: 7 tests passed across the configure wizard and onboarding-target suites.

@clawsweeper

clawsweeper Bot commented Aug 17, 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 commands Command implementations size: S labels Aug 17, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. 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 17, 2026
@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 18, 2026, 2:42 AM ET / 06:42 UTC.

ClawSweeper review

What this changes

The PR makes Configure persist a workspace on the configured system-agent entry for explicit fleets, while retaining legacy roster workspace ownership and original agent-key casing.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open. Current main still resolves Configure through the generic legacy/sole-agent path, while this PR explicitly separates explicit-fleet system-agent ownership from legacy ownership and preserves authored entry-key casing; no blocking patch defect found.

Priority: P1
Reviewed head: 949210a2cfe021a20c2b3ce8e05ae8171c8fa4df

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused compatibility repair with credible terminal proof and regression coverage; exact-head required checks remain the final merge gate.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The PR records exact-head built-CLI PTY proof for explicit and legacy roster journeys, with persisted workspace outcomes re-read from disposable state.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR records exact-head built-CLI PTY proof for explicit and legacy roster journeys, with persisted workspace outcomes re-read from disposable state.
Evidence reviewed 7 items Current-main gap: Current main resolves Configure through the generic onboarding target and does not consult the configured system-agent target at this decision point.
Explicit and legacy ownership split: The PR selects the system agent only for explicit fleets and copies the retained legacy owner onto derived Configure config objects otherwise.
Canonical persisted-key handling: The PR resolves agent entries by normalized ID, writes through the authored key, and pins a workspace on an explicit target even when it previously inherited the global workspace.
Findings None None.
Security None None.

How this fits together

Configure is OpenClaw’s interactive CLI for editing the agent roster and workspace settings. Its selected ownership target controls the workspace later used for provisioning, plugins, and skills.

flowchart LR
  A[Configure workspace input] --> B[Load agent roster]
  B --> C{Explicit fleet?}
  C -->|Yes| D[Configured system agent]
  C -->|No| E[Retained legacy owner]
  D --> F[Persist selected workspace]
  E --> F
  F --> G[Provision plugins skills and workspace]
Loading

Before merge

  • Resolve merge risk (P1) - The repair adds 19 net production lines across ownership selection and authored-key preservation; this is justified by distinct explicit and legacy compatibility contracts, but required exact-head checks should complete before merge.
  • Complete next step (P2) - No repair dispatch is needed: this active PR already owns the source-proven compatibility fix, pending normal exact-head checks and maintainer merge review.
Agent review details

Security

None.

PR surface

Source +19, Tests +232. Total +251 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 2 25 6 +19
Tests 2 232 0 +232
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 257 6 +251

Review metrics

Metric Value Why it matters
Production versus test delta production +19 net (25 added, 6 removed); tests +232 The production growth implements explicit/legacy ownership separation and authored-key preservation, with focused regression coverage for each compatibility path.

Merge-risk options

Maintainer options:

  1. Land with compatibility coverage (recommended)
    Accept the bounded compatibility change after required checks finish on the reviewed head, since focused tests and terminal proof cover explicit and legacy roster behavior.

Technical review

Best possible solution:

Merge the owner-boundary repair after exact-head checks complete, retaining the explicit-versus-legacy split because no smaller canonical path preserves both workspace contracts and authored keys.

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

Yes, source-reproducible: current main’s Configure target path does not consult the system-agent setting, while the explicit-roster fixture in the PR exercises the affected ownership shape; this read-only review did not execute the CLI.

Is this the best way to solve the issue?

Yes. The fix changes the Configure ownership producer, preserves the legacy migration marker at derived-config boundaries, and avoids a downstream workspace workaround.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 540ea124e09a.

Labels

Label justifications:

  • P1: Current Configure ownership resolution can fail to honor the selected system-agent workspace in an explicit multi-agent fleet.
  • merge-risk: 🚨 compatibility: The patch changes which existing agent configuration receives a persisted workspace during Configure.
  • 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 (terminal): The PR records exact-head built-CLI PTY proof for explicit and legacy roster journeys, with persisted workspace outcomes re-read from disposable state.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR records exact-head built-CLI PTY proof for explicit and legacy roster journeys, with persisted workspace outcomes re-read from disposable state.

Evidence

What I checked:

  • Current-main gap: Current main resolves Configure through the generic onboarding target and does not consult the configured system-agent target at this decision point. (src/commands/configure.wizard.ts:611, 540ea124e09a)
  • Explicit and legacy ownership split: The PR selects the system agent only for explicit fleets and copies the retained legacy owner onto derived Configure config objects otherwise. (src/commands/configure.wizard.ts:616, 949210a2cfe0)
  • Canonical persisted-key handling: The PR resolves agent entries by normalized ID, writes through the authored key, and pins a workspace on an explicit target even when it previously inherited the global workspace. (src/commands/configure.wizard.ts:675, 949210a2cfe0)
  • Behavioral coverage: Focused tests cover explicit system-agent workspace persistence with an authored MAIN key, legacy default-owner preservation, and workspace-less legacy ownership remaining global. (src/commands/configure.wizard.default-agent.test.ts:163, 949210a2cfe0)
  • Ownership contract: The repository’s configuration help defines explicit ownership as requiring bare CLI operations to resolve a surface-specific owner, supporting Configure’s system-agent selection for explicit fleets. (src/config/schema.help.core.ts:260, 949210a2cfe0)
  • History provenance: The current-main generic Configure resolver is attributed by blame to the recent agent-area commit; feature history also identifies the explicit-ownership refactor as the relevant ownership boundary. (src/commands/configure.wizard.ts:611, d2be70d36c68)

Likely related people:

  • Peter Steinberger: Current-main blame attributes the Configure target path to this recent agent-area commit, and history identifies the explicit multi-agent ownership refactor as the surrounding contract. (role: feature owner; confidence: high; commits: d2be70d36c68, 1ca60fbc3a3f; files: src/commands/configure.wizard.ts, src/agents/agent-scope-config.ts)
  • Patrick Erichsen: The final repair commits and supplied re-review evidence focus on preserving the legacy owner marker through Configure-derived config objects. (role: recent repair contributor; confidence: medium; commits: 854731de0688, 6e9a9ef5a0ab, 949210a2cfe0; files: src/commands/configure.wizard.ts, src/commands/configure.wizard.default-agent.test.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Let required checks complete on 949210a before merging.

Rating scale

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

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

Workflow

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

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-18T05:53:50.523Z sha 6e9a9ef :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-18T06:36:06.692Z sha 949210a :: needs maintainer review before merge. :: none

@jjjhenriksen
jjjhenriksen force-pushed the agent/configure-system-agent-target branch 2 times, most recently from e517acb to 833f786 Compare August 17, 2026 21:05
@jjjhenriksen
jjjhenriksen force-pushed the agent/configure-system-agent-target branch from 833f786 to d8ff580 Compare August 17, 2026 21:10
@jjjhenriksen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@jjjhenriksen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@jjjhenriksen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@jjjhenriksen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@jjjhenriksen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot removed proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 Aug 17, 2026
@jjjhenriksen
jjjhenriksen marked this pull request as ready for review August 17, 2026 23:13
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Current head c7183f4e583 is synchronized with origin/main beebeac11d4. Fresh exact-head TTY proof completed: authored MAIN entry with explicit system agent main received the configured workspace; the global default workspace remained unchanged. Focused suite remains 7/7.

@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 17, 2026
@Patrick-Erichsen Patrick-Erichsen self-assigned this Aug 18, 2026

@Patrick-Erichsen Patrick-Erichsen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at 6e9a9ef after two bounded compatibility repairs: explicit fleets keep System Agent workspace ownership, while migrated legacy rosters retain their existing owner.

Proof: 9 focused tests passed, explicit and legacy configure terminal journeys passed, and fresh autoreview found no actionable issues. Waiting only on final-head hosted CI and exact ClawSweeper gates before landing.

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@Patrick-Erichsen Patrick-Erichsen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at 6e9a9ef5a0ab10d7aa702b2bebec363c2787cb6c.

The configure wizard now honors explicit System Agent ownership while preserving migrated legacy workspace ownership. Sanitized exact-tree AWS proof passed 9 focused tests plus both explicit and legacy PTY journeys (run_ddbfd910cb7d), and fresh exact-head autoreview reported no actionable findings. Remaining gates are hosted CI, exact-head ClawSweeper, and the native prepare/merge checks.

@Patrick-Erichsen Patrick-Erichsen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at exact head 949210a.

The final configure-only repair honors the explicit System Agent while preserving migrated legacy workspace ownership through the existing sidecar inheritance contract. Exact-tree proof passed 9 focused tests, the full test-type gate, formatting, and built-CLI PTY journeys for both explicit and legacy configurations; fresh autoreview and independent verification are clean. Remaining gates are exact-head hosted CI, refreshed ClawSweeper, resolved threads, and native prepare/merge checks.

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

Final reviewed head is 949210a2cfe021a20c2b3ce8e05ae8171c8fa4df. The repair preserves the migrated legacy-owner WeakMap marker across derived configure config objects and restores the shared global-workspace contract. Exact-tree proof passed focused tests, full test-types, formatting, and built-CLI explicit/legacy PTY journeys; fresh autoreview and independent verification are clean.

@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@Patrick-Erichsen
Patrick-Erichsen merged commit 5dcc91d into openclaw:main Aug 18, 2026
236 checks passed
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 20, 2026
* fix(cli): honor explicit system agent in configure

* fix(cli): persist explicit agent workspace

* fix(cli): preserve authored agent key casing

* fix(cli): preserve configured system agent key

* fix(configure): preserve legacy onboarding owner

* fix(configure): preserve workspace ownership semantics

* fix(configure): retain migrated legacy owner

* fix(configure): retain legacy owner marker

---------

Co-authored-by: Patrick Erichsen <[email protected]>
@jjjhenriksen
jjjhenriksen deleted the agent/configure-system-agent-target branch August 25, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants