Repository navigation
fix(agents): preserve empty CLI subagent completions - #126379
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 19, 2026 17:37
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 20, 2026
* fix(agents): preserve empty CLI subagent completions * chore(qa): remove retired Matrix coverage leaf * refactor: consolidate shared runtime ownership * fix(scripts): keep runtime build coercion dependency-light * chore: remove release-owned changelog entry
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Fixes an issue where a spawned CLI-backed subagent that completed successfully without assistant text was misclassified as an
empty_response, even though the embedded runtime already treats the same subagent-lane outcome as an intentional silent completion.This PR also removes the retired Matrix ACP/subagent taxonomy leaf whose scenario moved to
channels.native-threads, and folds in small same-invariant ownership cleanup around SQLite busy timeouts, record coercion, filesystem containment imports, and A2UI request/response types.Why This Change Was Made
Spawn launch already records
lane: subagent; attempt execution now computes that fact once and gives both CLI and embedded runtimes the same optional-terminal-reply policy. Ordinary CLI turns still receive no permit and retain the generic runner'sempty_responserejection.The cleanup keeps one owner per primitive: temporary SQLite timeout/restoration policy stays in
sqlite-busy-timeout, generic record coercion uses the canonical or dependency-light seam, path containment imports usefile-access-runtime, and the A2UI route owns its HTTP boundary types. Connection-local timeout restoration and lease lock-failure reporting remain unchanged.User Impact
CLI-backed child agents can finish successfully with no final text without triggering a false failover. Normal CLI conversations still reject empty responses, and the remaining changes are behavior-preserving maintenance and QA inventory cleanup.
Evidence
attempt-execution.cli.test.tsfailed only the subagent case (expected true, received false); the ordinary case already receivedfalse.qa coverage --jsonconfirms nomatrix.acp-subagent-spawn-hooksvalidation issue and preserves inventoriedchannels.native-threadscoverage.node scripts/check-changed.mjs: passed all lanes, including core/UI/extension/script/test typechecks, lint, dead exports, deprecated API usage, database-first guards, andImport cycle check: 0 runtime value cycle(s).plugin-npm-runtime-build.mtsalso executes from isolated script copies without workspace package resolution. The fold-in now uses the dependency-lightrecord-shared.mjsowner; the four directly affected tooling files pass 349/349.--mode local): clean, no accepted/actionable findings (0.99 confidence).pnpm maturity:renderwas not usable as local proof because it requires an all/release-profileqa-evidence.jsonartifact with a scorecard field. Source schema and actual coverage-report validation passed instead.test:changedresolver was not counted as proof: its all-tooling shard twice passed the visible CI/package/database tests, then hit the repository wrapper's 15-minute no-output watchdog. Exact-head PR CI remains the broad test authority.Production LOC: +21/-54 (net -33; 12 pure import ownership moves discounted, raw +54/-83) | Tests: +35/-1 (net +34) | Tooling: +13/-17 (net -4) | Metadata: +3/-9 (net -6).
Per-item deltas: