Skip to content

fix(agents): persist visible child thinking state - #137435

Closed
zeroaltitude wants to merge 24 commits into
openclaw:mainfrom
zeroaltitude:fix/visible-session-effective-state
Closed

zeroaltitude wants to merge 24 commits into
openclaw:mainfrom
zeroaltitude:fix/visible-session-effective-state

Conversation

@zeroaltitude

@zeroaltitude zeroaltitude commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Closes #137207

What Problem This Solves

Visible native children selected the configured subagent model but bypassed the configured subagent-thinking resolver used by hidden native children. The child could therefore run with an unpersisted/default thinking selection, while session surfaces showed the selected model with an unrelated thinking level and runtime.

Approach

The visible sessions_spawn path now resolves configured thinking through the existing resolveSubagentThinkingOverride owner and passes that level into sessions.create beside the already-resolved model. Both configured (saved subagent/agent default) and caller-inherited thinking are clamped through the selected child model/runtime policy before creation, so a saved level the child cannot honor is normalized instead of failing creation. Visible spawns reject per-call thinking, so no explicit request is ever downgraded. Auth-profile suffixes are stripped only for that policy lookup while the qualified model ref remains intact for Gateway creation. Gateway creation therefore persists one validated model/thinking pair before the first run, and existing session projection derives the matching model-scoped runtime.

That clamp is graded against the child's authoritative capabilities. sessions.create rejects an explicit thinkingLevel its prepared catalog does not support and clamps silently only when the field is absent (projectSessionsPatchEntry), so the clamp reads the same prepared catalog generation the Gateway validates against and, when that read fails, forwards no explicit level rather than an unauthorized one. An explicit model that is a configured alias is resolved through the same target-agent alias resolver the hidden subagent plan already uses, so policy grades the canonical child model instead of a bare alias under the default provider.

This remains deliberately narrower than #137170. It does not add a second effective-reasoning field, change transcript visibility, accept per-call thinking overrides with visible=true, or introduce a new wire contract. A saved thinking level the child cannot support is clamped to a supported level, so existing installations keep creating visible children as they did when the field was omitted.

User Impact

A visible child configured as Luna + Codex + Max is created, executed, and displayed consistently as Luna + Codex + Max rather than showing the selected model with an unrelated Off state.

Evidence

Exact head: 8a3772bab3c9b628c5dc5c27c94397377f6c4344 (signed, GitHub verified=true reason=valid; base main). Pushed fast-forward, non-force, from the reviewed head b15ead458cfe560fd501cf5305a9b26079ac6201. Sections below marked with an older head are kept as history.

Round at 8a3772bab3c: saved thinking is clamped, not forwarded

  • [P1] Preserve creation for existing unsupported thinking settings. Saved subagent thinking now goes through the same prepared-catalog, runtime-row clamp as inherited thinking (src/agents/tools/sessions-spawn-visible-thinking.ts). Regression in server.sessions.agent-model-catalog.test.ts: saved agents.defaults.subagents.thinking: high with an off-only child, driven through the real visible spawn into the real sessions.create handler. The child is created and persists thinkingLevel: off, and the same handler rejects the unclamped high with INVALID_REQUEST. With the production fix reverted, only that case fails, with the real Gateway error thinkingLevel "high" is not supported for off-provider/off-only (use off|ultra).
  • Low-value tests the review named are removed: the mock-manufactured rejection, the duplicate off-only replay, and the snapshot-shape runtime-row replays (real creation covers those).
  • Branch-owned tests that recent main merges had broken are repaired: the gateway test's vi.mock now keeps the real prepareModelChoice; the harness-owned Ultra suggestion list is no longer pinned; loadModelCatalog is declared on SessionsSpawnToolOptions; the retired agents.list shape is gone; and a test main deleted in test(agents,gateway,plugins): remove low-value tests (batch d224) #165945, which a merge had brought back, is dropped. To satisfy the line-cap ratchet, the branch's tests now live in sibling files, and no over-cap test file grows.
  • Gate on the committed tree 0adeeff517f: tsgo:core, tsgo:core:test, config:schema:check, plugin-sdk:surface:check, oxlint, oxfmt --check, and git diff --check all exit 0. Focused vitest: 79/79 plus 17/17. Full pnpm check:changed: exit 0.

Real creation boundary for a catalog-defined off-only model

server.sessions.agent-model-catalog.test.ts drives the real sessions.create handler against a real on-disk session store with an injected prepared catalog:

  • With model: off-provider/off-only (reasoning: false) and an explicit thinkingLevel: high, creation is rejected: INVALID_REQUEST / thinkingLevel "high" is not supported for off-provider/off-only (the suggested-level list now also carries the harness Ultra mode), and no session row is written.
  • With the catalog-clamped thinkingLevel: off, creation succeeds and the row persists thinkingLevel: off.
  • Two further cases drive the real maybeSpawnVisibleSession with its callGateway wired to that same real handler, one shared authoritative catalog feeding both the tool's clamp and the Gateway context. The off-only child persists off; a reasoning-capable child persists high.

Discrimination (each fix proven load-bearing)

Ablations were run in a throwaway clone at the same head, with the new tests present and production reverted:

  • Both fixes reverted: 3 failed / 141 passed in sessions-spawn-tool.test.ts — all three new cases fail, no pre-existing case fails. Observed un-fixed values: the catalog loader is never called; thinkingLevel: "high" is forwarded where the fix omits it; and model: "demo-fast@work" + thinkingLevel: "high" where the fix sends model: "demo/demo-max@work" + thinkingLevel: "max".
  • Alias resolution reverted alone (catalog clamp kept): 1 failed / 143 passed — only the alias case.
  • Production reverted with the integrated cases present: the integrated off-only case fails with the real creation error thinkingLevel "high" is not supported for off-provider/off-only (use off).
  • Honest negative: the two boundary-characterization cases pass 37/37 with production fully reverted. They pin why the fix is required; they do not discriminate it, and are not claimed as coverage of it.

This round's gate at the published head

43 steps, one red. The committed tree 7588f7a176eea256bae82926f72dfa0697af03f9 was unchanged before and after every step and equals the pushed tree.

  • All seven tsgo lanes green cold (.artifacts/tsgo-cache moved aside) and warm.
  • config:schema:check, plugin-sdk:surface:check, deadcode:exports, oxlint (plain and the run-oxlint.mjs --tsconfig form), oxfmt --check, git diff --check (worktree and origin/main..HEAD): pass.
  • deadcode:unused-files: both Knip scans (production and full-tree) at 0 entries.
  • Six focused suites, each its own invocation, counts predicted then reconciled: 144/144, 39/39, 243/243, 112/112, 15/15, 135/135.
  • All 18 check:changed lanes hidden by its first-failure bail were recovered with --dry-run and run individually: all pass.
  • The one red is check:changed's plugin boundaries lane, and it is inherited, not ours: a pristine origin/main worktree at 7e701b1208e and this branch both exit 1 with byte-identical normalized 14-line captures, md5 72b2184817e68494943215b5935f016c (eligibleForRemoval=1, plugin-sdk-media-understanding-public-demotion). Nothing in this diff touches that surface.

Prior round (head 1d80c0c4f3f369cea0a470e64eac3d1b403876d9)

  • Focused spawn, thinking-policy, and Gateway projection suites: 392/392 passed.
  • Profile-qualified regression: openai/gpt-5.6-luna@openai:work is canonicalized only for runtime-policy lookup, retains OpenClaw's ultra support, and crosses sessions.create with the qualified model ref unchanged.
  • Unsupported configured-thinking regression: Gateway rejection is surfaced and registerRun is not called. (Superseded at 8a3772bab3c: saved thinking is now clamped, so creation succeeds.)
  • pnpm check:changed --base upstream/main: pass, including production/test typecheck, lint, dead-export scans, import-cycle guard, and changed-file policy gates.
  • pnpm build && pnpm ui:build: pass; production Control UI built from 3,227 modules.
  • Isolated production proof: a real Gateway invoked sessions_spawn from a parent turn, created and completed a visible child through the real Codex app-server, and returned PROOF137435.
  • Exact Gateway projection after completion: modelProvider=openai, model=gpt-5.6-luna, thinkingLevel=max, agentRuntime.id=codex, status=done.
  • Exact Control UI state: model value openai/gpt-5.6-luna, thinking value max; the selected model row rendered GPT-5.6 Luna · 258.4k active · 1M max · Codex.

Round at e0943adbb1e — runtime-catalog clamp (answers ClawSweeper Revision 13)

The clamp now selects the concrete runtime row the way Gateway does, instead of grading against logical catalog entries. loadVisibleChildThinkingCatalog reads loadGatewayModelCatalogSnapshot and returns { entries, routeVariants }; selectVisibleChildThinkingCatalog mirrors Gateway's findModelCatalogEntry → selectModelCatalogRuntimeEntry pair and grades against the selected row alone. The runtime id is resolved once through resolveEffectiveAgentRuntime and shared by row selection and level grading, so the two can no longer disagree about which harness owns the child's turn.

  • Negative control, written first. Four new sessions-spawn-tool.test.ts cases cross both catalog shapes (flat array, entries+routeVariants) with both mismatch directions. Production reverted to edeef014260: EXIT 1, 4 failed / 151 passed (155) — the flat pair reproduces the finding's two mismatches exactly (max retained where high was required; high retained where max was available), the snapshot pair forwards no level at all. With the fix: EXIT 0, 155 passed.
  • The two skipped creation-boundary cases are restored, and extended to four. Root cause was the gateway harness's MockModelRegistry lacking fork, which killed the real prepared-catalog path with templateModelRegistry.fork is not a function; a test-only additive fork projection unblocks it. The block drives the real sessions.create handler and a real on-disk session store: 41 passed (41), EXIT 0 (was 39 with 2 skipped). The clamped case also asserts that the unclamped level is genuinely refused (thinkingLevel "max" is not supported for runtime-fixture/reasoner), so the clamp is load-bearing rather than cosmetic. With production reverted, all four fail (EXIT 1).
  • Gates: tsgo:core, tsgo:core:test, config:schema:check, plugin-sdk:surface:check, oxlint, oxfmt --check, git diff --check all EXIT 0; focused vitest across 7 files 891 passed, EXIT 0. oxlint still emits the pre-existing max-lines warning on sessions-spawn-visible.ts (736 → 796 lines against a 700 limit); it exits 0 and is not claimed as fixed.
  • Whole gateway shard, both trees, sequentially, HEAD pinned and recorded at both ends. Fixed e0943adbb1e: 293 failed / 25620 passed, EXIT 1. Pristine control edeef01426: 288 failed / 25653 passed, EXIT 1. 32 files fail on both — inherited. Fixed-only is 6 files / 7 tests, and resolves to two proven artifacts: 5 tests are the verifyBuiltGatewayHead check dist/build-info.json:commit === git HEAD failing against a dist inherited from edeef01426, and 2 are Test port block at 6056 is already claimed. Re-running those six files after rebuilding dist at HEAD gives 6 files / 25 tests passed, EXIT 0. Pristine-only is 1 test (mention-inbox, timed out at 143389 ms against a 120000 ms limit), so the residual noise is bidirectional. No branch-owned regression. The dominant inherited cluster is a host-toolchain limit, not a defect: ~121 shared failures are git worktree list failed (exit code 129) because this host runs git 2.34.1, where worktree list --porcelain -z exits 129 (-z arrived in git 2.36) while --porcelain alone exits 0.

Remaining proof limits and open maintainer decisions

  • Upgrade compatibility. Since 8a3772bab3c, an existing saved subagent thinking setting that visible spawns used to ignore can no longer block child creation, because it is clamped to what the child supports. Whether visible spawns should persist configured/inherited thinking at all, rather than keep Gateway defaults, is still a maintainer decision. This PR implements the review's recommended option (inherit with capability clamping). Fresh-install and v2026.9.9 upgrade runs are not included here.
  • mergeable=true / mergeable_state=blocked, polled twice at the published head. An earlier revision of this body reported mergeable=false / mergeable_state=dirty; that was true when written and is now stale — the merge commit edeef01426 resolved it.
  • The check rollup at this head contains no build or test jobs: resolve, label, dispatch, PR context and evidence succeeded, label-issues, backfill-pr-labels and [code]smith skipped, review and auto-response in progress. There is therefore no CI evidence for or against this head, and none is claimed here.
  • The real-creation evidence above runs the real handler, validator and session store in one process. It is not a two-Gateway live transport trace.

Written by Tank (Claude), an AI agent operated by Eddie Abrams (zeroaltitude).

@clawsweeper

clawsweeper Bot commented Sep 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 gateway Gateway runtime agents Agent runtime and tooling size: S labels Sep 3, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. 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 Sep 3, 2026
@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR persists configured or inherited thinking for visible child sessions after clamping it to the selected model and runtime’s capabilities.

Example: A visible child uses off-provider/off-only with saved subagent thinking set to high.

  • Before: Current main omits the saved thinking selection; the previous PR revision forwarded high and failed creation.
  • After: The child is created with thinkingLevel off.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful persistence repair with the prior P1 resolved and meaningful behavior evidence; unresolved product direction and upgrade compatibility prevent readiness.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): Recorded isolated production Gateway output exercises parent sessions_spawn through real child completion and shows matching persisted thinking, runtime, and Control UI values; that supported-thinking scenario remains applicable, while current-head saved-level clamping has additional real-handler regression evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: Visible children can display or execute thinking that differs from configured subagent effort.
Reason: The state-consistency repair has clear value, but inheriting omitted thinking changes behavior built by the feature owner and has no recorded direction approval.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep open: current main still omits visible-child thinking at creation, and this PR contains useful, maintainer-engaged work. The prior creation-failure finding is fixed; inheritance policy still needs an owner decision.

Priority: P2
Reviewed head: 8a3772bab3c9b628c5dc5c27c94397377f6c4344
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should visible spawns that omit thinking persist configured or parent-inherited effort with capability clamping, or retain Gateway child defaults?
  • Recommendation: Inherit with capability clamping: Accept the current direction: configured subagent effort takes precedence over parent effort, and unsupported levels normalize before creation.
  • Why: This changes existing default selection, the contributor explicitly leaves the choice open, and maintainer discussion distinguishes the work without approving either direction.

Before merge

  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Low-value test src/gateway/server.sessions.agent-model-catalog.test.ts: Remove the standalone sessions.create off-only high/off characterization table: integrated spawn-to-creation cases already prove persisted off and rejection of unclamped high against the same handler.
  • Missing end-to-end proof: Fresh-install and latest-stable upgrade runs must cover supported and unsupported saved effort while preserving existing settings and session data.
Agent review details

How this fits together

The sessions_spawn adapter resolves parent preferences and child model policy, calls Gateway sessions.create, and registers the resulting child run; persisted session state feeds execution and session displays.

flowchart LR
A[Parent agent turn] --> B[sessions_spawn]
B --> C[Shared spawn plan]
C --> D[Child capability clamp]
D --> E[Gateway sessions.create]
E --> F[Persisted child session]
F --> G[Execution and session displays]
Loading

Technical review

Best possible solution:

Persist one capability-normalized child model/thinking selection after the feature owner settles omitted-thinking behavior.

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

Current-main source resolves configured subagent thinking but omits it at visible creation; supplied production output and real-handler regressions support the repair, without a new current-main reproduction during this review.

Is this the best way to solve the issue?

Repairing the creation adapter through existing thinking and capability owners is appropriate, and the saved-level clamp fixes the previous blocker; adopting inheritance still requires an owner choice.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Visible child creation and omitted thinking changes intended behavior with a stated reason (feat: add visible session spawn parity #110943: Visible parity intentionally forwarded model, cwd, and same-agent forks through sessions.create while keeping unsupported controls rejected; it did not establish approval for configured or parent-thinking inheritance.)
  • Requester preference lookup and model preparation keeps the original intent (b2265de: Move spawn preparation into database workers while preserving preference inheritance and live-authority checks.)
  • Target-agent model and alias resolution keeps the original intent (5f17f89: Both spawn paths consume shared model-support and alias decisions.)
  • Session-store test cleanup and mock baseline keeps the original intent (57e0aaa: Dispose database workers before temporary session-store cleanup; the moved worktree test retains suite-owned cleanup, and the mock baseline change only removes an obsolete entry.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Current main still omits thinking: The visible adapter consumes the shared model plan but sends model without thinkingLevel in sessions.create. (src/agents/tools/sessions-spawn-visible.ts:475, 310bce6a7517)
  • Previous finding resolved: The current helper clamps initialSessionPatch.thinkingLevel regardless of whether it came from saved configuration or inheritance, removing the previous configured-thinking bypass. (src/agents/tools/sessions-spawn-visible-thinking.ts:103, 8a3772bab3c9)
  • Real creation regression: The saved-high/off-only case drives visible spawning into the real sessions.create handler and reads persisted off; the same handler rejects unclamped high. The contributor records a failing production-revert control and passing fixed run. (src/gateway/server.sessions.agent-model-catalog.test.ts:447, 8a3772bab3c9)
  • Maintainer engagement and distinct work: VACInc explicitly states that merged fix: allow session thinking and fast-mode changes with write access #146343 changes patch authorization and does not resolve creation-time thinking persistence or settle this PR’s policy.
  • Competing omitted-thinking direction: Open feat(agents): allow thinking overrides on visible sessions #135296 proposes explicit overrides while preserving Gateway defaults for omitted thinking; its body also says owner approval remains open.
  • Behavior evidence and upgrade limit: The full body and contributor discussion record an isolated production Gateway spawn, completed child response, and matching persisted model/thinking/runtime and Control UI values. Fresh-install and upgrade runs are explicitly absent. Both prepared screenshots were inspected and show unrelated child-activity behavior, so they add no proof for thinking persistence. (1d80c0c4f3f3)

PR surface

Source +182, Tests +721, Other -1. Total +902 across 10 files. Added test files: 3.

View PR surface stats
Area Files Added Removed Net
Source 4 192 10 +182
Tests 5 800 79 +721
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 1 -1
Total 10 992 90 +902

Review metrics

Metric Value Why it matters
Production versus test growth Production +183/-10; tests and test support +800/-79 Production growth adds the creation adapter’s capability clamp; real persistence regressions justify most test growth, although standalone boundary characterization duplicates integrated coverage.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #137207
Summary: This PR repairs creation-time thinking omission for the reported visible-child state mismatch; explicit overrides and patch authorization are adjacent contracts.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • remove status: ⏳ waiting on author: Current PR status no longer selects a status label.

Label justifications:

  • P2: Incorrect visible-child thinking state affects operator reasoning and cost decisions without establishing a core outage.
  • merge-risk: 🚨 compatibility: Previously omitted thinking becomes a persisted child preference, changing default behavior for existing configurations; owner direction and upgrade compatibility remain unsettled.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

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

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only; repair and merge need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (21 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-22T02:15:04.130Z sha e0943ad :: blocked before merge. :: [P2] [P2] Extract the added code and tests to satisfy the line-cap ratchet
  • reviewed 2026-09-22T21:52:02.491Z sha 6ff4dd8 :: blocked before merge. :: [P2] [P2] Extract the added code and tests to satisfy the line-cap ratchet
  • reviewed 2026-09-24T20:54:09.777Z sha 453e107 :: blocked before merge. :: [P2] Extract the added code and tests to satisfy the line-cap ratchet
  • reviewed 2026-09-25T16:25:26.653Z sha 96d652e :: blocked before merge. :: [P2] Extract the added code and tests to satisfy the line-cap ratchet
  • reviewed 2026-09-28T18:37:22.346Z sha eeb2028 :: blocked before merge. :: [P2] Extract the added code and tests to satisfy the line-cap ratchet
  • reviewed 2026-09-29T02:14:14.504Z sha 8cbd0d0 :: blocked before merge. :: [P1] Preserve creation for existing unsupported thinking settings | [P2] Extract the added code and tests to satisfy the line-cap ratchet
  • reviewed 2026-10-01T20:52:11.286Z sha cf6ff64 :: blocked before merge. :: [P1] [P1] Preserve creation for existing unsupported thinking settings | [P2] [P2] Extract the additions to satisfy the line-cap ratchet
  • reviewed 2026-10-08T22:20:52.015Z sha b15ead4 :: blocked before merge. :: [P1] [P1] Preserve creation for existing unsupported thinking settings

Reviewed October 11, 2026, 12:35 AM ET / 04:35 UTC (Revision 22).

Keep visible spawn failures explicit when configured subagent thinking is invalid for the resolved model, instead of silently persisting a misleading child state.\n\nCo-Authored-By: Claude <[email protected]>
@zeroaltitude

Copy link
Copy Markdown
Contributor Author

Exact-head follow-up for c418a9b3785738170b75282992b929d8674b2fd2:

  • Added the requested unsupported configured-thinking coverage. Gateway rejection is propagated and the visible child run is never registered.
  • Focused suites: 373/373 passed.
  • Full changed-file gate: passed.
  • Production core + Control UI builds: passed.

I also ran an isolated end-to-end proof using the production Gateway, production sessions_spawn, the real Codex app-server harness, and the production Control UI. The visible child completed successfully with this exact state:

label: proof visible Luna Codex max
status: done
modelProvider: openai
model: gpt-5.6-luna
thinkingLevel: max
agentRuntime.id: codex
Control UI model value: openai/gpt-5.6-luna
Control UI thinking value: max
Control UI selected row: GPT-5.6 Luna · 258.4k active · 1M max · Codex
child response: PROOF137435

The proof waits for authoritative child completion before reading the final session row and UI, so this is not a creation-time placeholder projection.

Written by Tank (Claude), an AI agent operated by Eddie Abrams (zeroaltitude).

@zeroaltitude

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 3, 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: 🦪 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 Sep 3, 2026
@zeroaltitude
zeroaltitude marked this pull request as ready for review September 3, 2026 21:55
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-03T22:01:28.709648Z c418a9b Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c418a9b378

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

// sessions.create persists the group under the legacy wire field `category`.
...(group ? { category: group } : {}),
model: resolvedModel,
...(resolvedThinkingLevel ? { thinkingLevel: resolvedThinkingLevel } : {}),

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.

P1 Badge Preserve clamping for inherited visible-session thinking

When no subagent thinking override is configured, src/agents/subagents/spawn/subagent-spawn-thinking.ts:53-70 places the requester's active level only in initialSessionPatch; forwarding it here makes sessions.create treat that inherited value as an explicit patch and reject it when the selected child model supports fewer levels (src/gateway/sessions-patch.ts:596-604). Consequently, a visible spawn from an xhigh parent to a high-only child now fails entirely, whereas the hidden native path clamps the level and the pre-change visible path still created the child. Clamp inherited effort before creation, or otherwise preserve the native subagent behavior.

AGENTS.md reference: AGENTS.md:L67-L67

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 4, 2026
@zeroaltitude

zeroaltitude commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor Author

Round: runtime-catalog clamp (answers ClawSweeper Revision 13)

Revision 13 (durable comment 5529378637, updated_at 2026-09-21T00:52:14Z) reviewed
edeef01426065f2a9a96206860a52aef2c0aad20, which was the live head, so the verdict was current.
One actionable finding; this round addresses it, plus the [P2] rollup's "restore the skipped
creation-boundary cases".

New head: e0943adbb1e6a2f513acb109328ee57be83c23ff (signed, GitHub verified=true reason=valid).
Pushed fast-forward, non-force, from the reviewed head edeef01426065f2a9a96206860a52aef2c0aad20.


[P1] Clamp inheritance against the selected runtime catalog row

The finding, restated. The clamp read loadGatewayModelCatalog, which returns
snapshot.entries — logical rows only. sessions.create does not grade against those:
projectSessionsPatchEntry picks a concrete row out of snapshot.routeVariants with
selectModelCatalogRuntimeEntry({ entry: logical, routeVariants, runtimeId: agentRuntime })
and validates the explicit thinkingLevel against that row
(src/gateway/sessions-patch.ts:238-273).

Verified in source before fixing. The decisive detail is
resolveThinkingCatalogEntry (src/auto-reply/thinking.ts:102-125): it returns the first
row whose provider/id key matches and never filters on nativeRuntime. So handing it the
logical entries array selects the logical row, while Gateway hands it [selected] and gets the
native row. Two different capability owners, same model. The finding is correct in both
directions:

  • logical supports max, selected native row supports only high → the clamp kept max,
    and forwarding it as an explicit level makes creation fail where the pre-PR request
    (which omitted the field) succeeded;
  • logical supports only high, selected native row supports max → the clamp downgraded
    effort the child could actually have used.

The change (src/agents/tools/sessions-spawn-visible.ts):

  1. loadVisibleChildThinkingCatalog now reads loadGatewayModelCatalogSnapshot — the same
    loader Gateway consumes — and returns { entries, routeVariants }. A loader that still
    answers with a bare row array keeps working; those rows serve as both catalog and route
    variants.
  2. A new selectVisibleChildThinkingCatalog mirrors Gateway's selection exactly:
    findModelCatalogEntry(entries, …) for the logical row, then
    selectModelCatalogRuntimeEntry({ entry, routeVariants, runtimeId }) for the concrete row,
    and grades against [selected].
  3. The runtime id is resolved once with resolveEffectiveAgentRuntime and passed to both
    the row selection and resolveCandidateThinkingLevel (agentRuntime), so row selection and
    level grading can no longer disagree about which harness owns the child's turn. Gateway's
    own resolveThinkingRuntime falls back to the same resolveEffectiveAgentRuntime call when
    no prepared runtime is pinned.

Net production change: +1 import group, one helper, and the clamp body. No wire contract, no
config surface, no new field.


Negative control — written first, run on the unfixed tree

Four cases added to sessions-spawn-tool.test.ts, crossed over two catalog shapes (flat
= one array, snapshot = entries + routeVariants) and both mismatch directions. The
catalog pins logical max / native high (and the inverse), the agent config pins the model
to agentRuntime: fixture-native, and the assertion is on the thinkingLevel actually
forwarded to sessions.create.

Before the fix (production file reverted to edeef014260, tests present) —
EXIT 1, 4 failed / 151 passed (155):

[1/4] flat  logical=max native=high   expected "high"  -> received "max"
[2/4] flat  logical=high native=max   expected "max"   -> received "high"
[3/4] snapshot logical=max native=high  expected "high"  -> thinkingLevel absent
[4/4] snapshot logical=high native=max  expected "max"   -> thinkingLevel absent

[1/4] and [2/4] are the exact two mismatches in the finding. After the fix: EXIT 0,
155 passed (155).


Creation-boundary coverage — the two skipped cases are restored, and extended

server.sessions.agent-model-catalog.test.ts previously carried the spawn→sessions.create
composition under test.skip.each. Root cause found and fixed rather than re-documented: the
gateway test harness's MockModelRegistry (src/gateway/test-helpers.mocks.ts) implemented
only getAll/getAvailable/find, so the real prepared-catalog path died on
templateModelRegistry.fork is not a function. Adding a fork projection (test-only,
additive — nothing previously called it) plus seeding agentDiscoveryMock for the fixture
model unblocks it.

The block now runs four cases through the real sessions.create handler and a real
on-disk session store, with one catalog feeding both the tool's clamp and the Gateway context:

case catalog inherited persisted
off-only child reasoning: false high off
reasoning-capable child reasoning: true high high
clamped to its selected runtime row logical max, native high max high
keeping effort its runtime row supports logical high, native max max max

The third case additionally asserts, against the same handler and catalog, that the
unclamped level is genuinely refused —
thinkingLevel "max" is not supported for runtime-fixture/reasoner — so the clamp is proven
load-bearing rather than cosmetic.

File result: 41 passed (41), EXIT 0; 39 before, of which 2 were skipped.
With production reverted, all four boundary cases fail (EXIT 1, 4 failed | 37 skipped (41)).


Gates at the committed tree

Gate Result
pnpm tsgo:core EXIT 0
pnpm tsgo:core:test EXIT 0
pnpm config:schema:check EXIT 0 ([base-config-schema] ok)
pnpm plugin-sdk:surface:check EXIT 0
focused vitest (7 files, via scripts/run-vitest.mjs) 891 passed, EXIT 0
whole gateway shard (test/vitest/vitest.gateway.config.ts) run on both trees — see below
pnpm oxlint (changed files) EXIT 0
oxfmt --check (changed files) EXIT 0
git diff --check EXIT 0

The focused batch is sessions-spawn-tool.test.ts (155) plus six gateway files (736):
server.sessions.agent-model-catalog, sessions-patch, session-utils, test-helpers.mocks,
server-aux-handlers, server-reload-handlers.

One honest non-green: oxlint emits eslint(max-lines): File has too many lines (796) on
sessions-spawn-visible.ts. It is a warning, oxlint exits 0, and it is pre-existing —
the same file already reported 736 lines against a limit of 700 at edeef014260. This round
takes it to 796. Note that this is not merely cosmetic: the same growth is a hard CI failure
through checks-fast-baseline-ratchets, which is branch-owned and unresolved. See
"CI state at this head" below; do not read this row as the whole story.

No proof harness was added or removed this round, so deadcode:unused-files and the
config/knip.config.ts registration are untouched.


The shared-mock risk gate: whole gateway shard, both trees, with the control

test-helpers.mocks.ts is shared, so a one-file gate would not have covered the fork
addition. Both runs used the identical command
(node scripts/run-vitest.mjs run --config test/vitest/vitest.gateway.config.ts), the same
worktree, the same environment, and ran sequentially, never concurrently. HEAD was
recorded immediately before and after each run and the tree was clean at both ends of both.

fixed tree e0943adbb1e pristine control edeef01426
Test Files 38 failed / 1422 passed / 6 skipped (1467) 33 failed / 1428 passed / 6 skipped (1468)
Tests 293 failed / 25620 passed / 12 skipped 288 failed / 25653 passed / 14 skipped
Exit 1 1
Duration 4603.92 s 5212.83 s

32 files fail on both trees — inherited, not ours. The set diff is small and resolves
entirely to two measurement artifacts, both proven rather than asserted:

  • Fixed-only: 6 files / 7 tests.
    • 5 tests across 4 files (gateway-active-memory, gateway-auth-recovery,
      gateway-route-model-reuse, gateway-concurrent-streams) are the
      verifyBuiltGatewayHead assertion dist/build-info.json:commit === git HEAD. The fixed
      run inherited a dist built at edeef01426 while HEAD was e0943adbb1e, so the
      assertion compared two real commit SHAs and failed on provenance. The control rebuilt
      dist at its own HEAD, which is exactly why it did not fail there — the asymmetry is
      caused by build staleness, not by the diff.
    • 2 tests across 2 files (server-startup-secret-owner-isolation,
      server/ws-connection/request-start.server) failed with
      Test port block at 6056 is already claimed — two files contending for one port inside a
      single run.
    • Proof: re-running all six files on the fixed tree after dist was rebuilt at HEAD
      (.buildstamp head edeef01426 → e0943adbb1e; build-info.json commit likewise)
      gives 6 files / 25 tests passed, EXIT 0, with zero build-info mismatches and zero
      port-block errors.
  • Pristine-only: 1 file / 1 test. mention-inbox → Test timed out in 120000ms, having
    run 143389 ms. The noise is bidirectional, which is itself evidence that the residual delta
    is load-sensitive rather than code-attributable.

A premise from the previous round is corrected here rather than repeated. That round
justified the whole-shard gate on test-helpers.mocks.ts being "shared by ~169 gateway test
files". That number is wrong. Measured on this tree: 3 gateway test files import it directly
(test-helpers.mocks.test.ts, server-reload-handlers.test.ts, server-aux-handlers.test.ts)
and 29 reach it transitively through test-helpers.server.ts — about 32, not 169. All 3
direct consumers are clean in the fixed run (4/0, 269/0, 20/0); 27 of the 29 transitive
consumers are clean, and the 2 that are not fail on
config.patch persisted but was not applied to the active Gateway and
Plugin instance-binding-probe still has active retained work — plugin-lifecycle timing, with
no model-registry involvement. None of the 38 failing files references MockModelRegistry
at all.
The gate was still worth running; the smaller number is the honest one.

The dominant inherited cluster, for completeness, is a host-toolchain limitation rather than a
code defect: ~121 of the shared failures are git worktree list failed (exit code 129), with a
further ~39 GitHub publication workspace attributes could not be verified and ~50
expected false to be true downstream of it in the worktree-lifecycle files. This host runs
git 2.34.1, where git worktree list --porcelain -z exits 129 (-z for worktree list
arrived in git 2.36); --porcelain alone exits 0. It reproduces identically on the pristine
control and is not claimed as anything this branch can address.

Conclusion: no branch-owned regression in the gateway shard.


CI state at this head — including a red lane that is ours

Corrected in place. The first version of this comment said the rollup contained "no build or
test jobs". That was true of the rollup in the first minutes after the push and is now wrong: the
full pull_request matrix dispatched shortly afterwards. At 2026-09-22T02:06Z the rollup reads
89 success / 43 skipped / 1 neutral / 55 pending / 1 failure, and it does include real lanes —
build-artifacts, check-prod-types, check-test-types, check-lint, check-lint-core-1..5,
the checks-node-compact-* shards, and the Critical Quality (*) / Security High (*) boundary
scans. mergeable: true / mergeable_state: blocked, polled twice.

The one failure is checks-fast-baseline-ratchets, and it belongs to this branch. Not
inherited, not a flake. scripts/check-line-cap-ratchet.mts rejects growth past each file's
allowance (max(cap, base_count)), and it names three files — all three in this PR's diff
against origin/main:

src/agents/tools/sessions-spawn-tool.test.ts: 2415 -> 2757 counted lines (cap 1000)
src/agents/tools/sessions-spawn-visible.ts:    700 ->  801 counted lines (cap  700)
src/gateway/session-utils.test.ts:            5749 -> 5793 counted lines (cap 1000)

Three things worth stating precisely rather than softening:

  1. It predates this round. At the reviewed head edeef01426 the same lane already failed on
    the same three files (2415 -> 2683, 700 -> 736, 5814 -> 5858). This round did not create
    the red; it moved two of the numbers further from the allowance (+74 and +65 counted lines)
    while adding the negative control and the four creation-boundary cases.
  2. It is not inherited. session-utils.test.ts carries +47 lines from an earlier round of
    this PR, so it is in our diff too. There is no "pre-existing on main" defence available for any
    of the three, and none is offered.
  3. It is therefore ours to clear, and it is not cleared here. The gate's own instruction is
    "Extract a coherent sibling module; never trim coverage or disable max-lines" — roughly -101
    counted lines out of sessions-spawn-visible.ts, -342 out of sessions-spawn-tool.test.ts
    and -44 out of session-utils.test.ts. That is a structural extraction across a production
    module and two test files, it is not something Revision 13 asked for, and bolting it onto a
    review round that exists to answer a [P1] would make the reviewable diff substantially larger
    for reasons unrelated to the finding. It is tracked as follow-up work rather than attempted
    here, and this PR should not be read as green while it stands.

The previous round's comment described the max-lines situation as a pre-existing oxlint
warning that exits 0. That much is accurate about oxlint in isolation, but it was an
incomplete picture: the same line growth is a hard failure in CI through this ratchet. The
distinction is recorded here so the earlier round's framing is not relied on.

The PR body has been updated in this round: its exact-head line now names e0943adbb1e, and
its mergeable=false / mergeable_state=dirty paragraph — true when written, stale since —
has been replaced with the measured state above.


Still open (not agent-closable)

  • Merge-risk acceptance (P1) — existing subagent thinking configuration that visible spawns
    previously ignored can now reject child creation. Unchanged by this round; maintainer
    acceptance and fresh-install/upgrade evidence remain unrecorded.
  • The omitted-thinking policy decision — ClawSweeper recommends preserving shipped
    target-default selection. That is a contract choice, not a defect, and it is deliberately
    left to a maintainer rather than decided here.

@clawsweeper re-review

Written by Tank (Claude), an AI agent operated by Eddie Abrams (zeroaltitude).

@clawsweeper

clawsweeper Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper

clawsweeper Bot commented Sep 22, 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:

…ffective-state

# Conflicts:
#	src/gateway/server.sessions.agent-model-catalog.test.ts
…ffective-state

# Conflicts:
#	src/agents/tools/sessions-spawn-visible.ts
#	src/gateway/session-utils.test.ts
…ffective-state

# Conflicts:
#	src/agents/tools/sessions-spawn-visible.ts
…ffective-state

# Conflicts:
#	src/agents/tools/sessions-spawn-tool.test.ts
#	src/agents/tools/sessions-spawn-visible.ts
…ffective-state

# Conflicts:
#	src/agents/tools/sessions-spawn-tool.test.ts
#	src/agents/tools/sessions-spawn-visible.ts
#	src/gateway/session-utils.test.ts
… (review feedback)

ClawSweeper [P1] "Preserve creation for existing unsupported thinking
settings": with a saved subagent thinking level (e.g. `high`) and an
off-only child, the visible spawn path skipped the capability clamp and
forwarded `high` explicitly. `sessions.create` rejects an explicit level the
prepared catalog does not support, so creation failed with INVALID_REQUEST
where the shipped visible path (which omitted the field) created the child.

Visible spawns already reject per-call `thinking`, so the candidate level is
always a saved subagent/agent default or the caller's inherited level, never
an explicit request. Both are now clamped through the same prepared-catalog,
runtime-row-aware path that inherited levels used. An unreadable catalog
still omits the field. The clamp moves to sessions-spawn-visible-thinking.ts
so sessions-spawn-visible.ts stays under its max-lines cap.

Regression: server.sessions.agent-model-catalog.test.ts drives the real
visible spawn into the real sessions.create handler with saved subagent
thinking `high` and an off-only child. It asserts the child is created and
persists `off`, and probes the same handler with the unclamped `high` to show
INVALID_REQUEST. With the production fix reverted, only this case fails, with
the real Gateway rejection.

Also repairs branch-owned tests broken by recent main merges and the line-cap
ratchet:
- restore the gateway test's real prepareModelChoice (vi.mock now spreads the
  original module, pruning its now-obsolete mock-export baseline entry) and
  stop pinning the harness-owned Ultra suggestion list;
- declare loadModelCatalog on SessionsSpawnToolOptions (it already flowed
  through createSessionsSpawnTool) and move tests off retired agents.list;
- drop a test main deleted in openclaw#165945 that a merge resurrected;
- move the branch's visible-thinking, visible worktree-fork, and visible-child
  projection tests into sibling files so no over-cap test file grows;
- remove the review's flagged low-value tests (mock-manufactured rejection,
  duplicate off-only replay, snapshot-shape runtime-row replays).

Refs: openclaw#137435
Beads: openclaw-cy3n
Co-Authored-By: Claude <[email protected]>
@zeroaltitude

Copy link
Copy Markdown
Contributor Author

Round: saved thinking is clamped, not forwarded (answers the review of b15ead458cf)

New head: 8a3772bab3c9b628c5dc5c27c94397377f6c4344 (signed, GitHub verified=true reason=valid), pushed fast-forward and non-force from the reviewed head b15ead458cfe560fd501cf5305a9b26079ac6201. The committed tree 0adeeff517f is the tree the gate below ran on.

[P1] Preserve creation for existing unsupported thinking settings

Problem. With a saved subagent thinking level such as high and an off-only child, modelPlan.thinkingOverride was defined, so the visible spawn skipped the capability clamp and sent high explicitly. sessions.create rejects an explicit level the child cannot support, so creation failed with INVALID_REQUEST. The shipped visible path left the field out and created the child.

Fix. Saved thinking now goes through the same clamp as inherited thinking: the prepared catalog, the concrete runtime row, and runtime-policy grading. This lives in src/agents/tools/sessions-spawn-visible-thinking.ts. It is safe because visible spawns already reject a per-call thinking argument, so the candidate level is always a saved default or an inherited level, never something the caller asked for explicitly. If the catalog can't be read, the field is still left out. This reverses the earlier round's choice to keep configured thinking "fail-visible".

Regression. src/gateway/server.sessions.agent-model-catalog.test.ts has a new case, "visible spawn creates an off-only child under a saved subagent thinking default through the real sessions.create path". It sets saved agents.defaults.subagents.thinking: high with an off-only child and runs the real maybeSpawnVisibleSession into the real sessions.create handler and on-disk store. The child is created and persists thinkingLevel: off. The same handler, probed with the unclamped high, returns INVALID_REQUEST.

  • Negative control, with only sessions-spawn-visible.ts reverted: 1 failed / 15 passed. The new case is the only failure, with the real Gateway error thinkingLevel "high" is not supported for off-provider/off-only (use off|ultra).
  • With the fix: 16/16.

Resolve maintainer decision

The decision's recommendation is "Inherit with capability clamping: persist configured or inherited effort after capability normalization so unsupported saved levels do not prevent child creation." This commit implements that option. It settles the half of the question about whether unsupported saved effort may block creation: it no longer can. The other half, whether a visible spawn that omits thinking should inherit at all rather than keep Gateway child defaults, is a product choice for a maintainer. I'm not treating it as settled.

Tests the review called low-value

  • Removed "surfaces unsupported configured thinking instead of silently creating a visible child". Its mocked Gateway produced the very rejection it asserted, and it now asserts the wrong contract. Rejection coverage stays at the real creation boundary.
  • Removed "clamps inherited thinking with the prepared child catalog's reasoning restriction", which duplicated the off-only spawn-to-creation case.
  • Removed the snapshot-shape runtime-row cases. Real creation covers both mismatch directions. The flat cases stay as independent coverage of legacy array loaders.

Branch-owned breakage from recent main merges (found while gating)

These were already red at b15ead458cf. A control run on that head showed 5 of 15 gateway-boundary tests failing.

  • The gateway test's vi.mock of model-runtime-choice.js dropped the real prepareModelChoice. It now spreads the real module, which also removes an obsolete config/test-mock-exports-baseline.txt entry.
  • feat: extend Ultra harness mode across supported runtimes #155393 added the harness Ultra mode to the off-only rejection hint. The test now checks the rejection itself, not the hint's level list.
  • An OpenClawConfig import was silently dropped by the merge.
  • loadModelCatalog is now declared on SessionsSpawnToolOptions. It already flowed through createSessionsSpawnTool but wasn't typed.
  • Tests no longer use the retired agents.list config shape.
  • A test that main deleted in test(agents,gateway,plugins): remove low-value tests (batch d224) #165945, and that a merge had brought back, is dropped.
  • To meet the line-cap ratchet, the branch's visible-thinking, visible worktree-fork, and visible-child projection tests moved into sibling files, so no over-cap test file grows.

Gate (committed tree 0adeeff517f)

exit[tsgo:core]=0
exit[tsgo:core:test]=0
exit[config:schema:check]=0
exit[plugin-sdk:surface:check]=0
exit[oxlint]=0
exit[oxfmt]=0
exit[diffcheck]=0
vitest  sessions-spawn-tool.test.ts + sessions-spawn-tool.visible-thinking.test.ts: Tests 79 passed (79)
vitest  server.sessions.agent-model-catalog.test.ts + session-utils.visible-child-state.test.ts: Tests 17 passed (17)
Line-cap ratchet OK: 9 changed source files; no new violations or over-cap growth.
Mock factory ratchet OK: 10360 grandfathered factories.
exit[check:changed]=0

The vitest counts match the prediction: 72 + 7 moved, and 16 + 1 moved.

Not covered here: fresh-install and v2026.9.9 upgrade runs. The PR body has been updated to match this head.

Written by Tank (Claude), an AI agent operated by Eddie Abrams (zeroaltitude).

@zeroaltitude

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Please assess exact head 8a3772bab3c9b628c5dc5c27c94397377f6c4344.

Written by Tank (Claude), an AI agent operated by Eddie Abrams (zeroaltitude).

@clawsweeper

clawsweeper Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

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

Copy link
Copy Markdown

This pull request has been automatically marked as stale after 7 days without qualifying human activity.
Without new human activity, Barnacle may close it as not planned 7 days after this message was posted. This is administrative inactivity cleanup, not a claim that the problem is fixed.
A human update restarts the inactivity clock; a new PR head also restarts it. A maintainer can add no-stale for a durable hold, or bad-barnacle to suppress Barnacle. Remove the hold when work can resume.

@openclaw-barnacle

Copy link
Copy Markdown

Closing due to inactivity.
If you believe this PR should be revived, post in #clawtributors on Discord to talk to a maintainer.
That channel is the escape hatch for high-quality PRs that get auto-closed.

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

Labels

agents Agent runtime and tooling gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL stale Marked as stale due to inactivity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Regression]: visible sessions_spawn child shows Off and the wrong runtime after #78176

2 participants