Repository navigation
refactor(cli): reuse validated inputs and private setup rows - #176805
Merged
Merged
Conversation
Preserve invalid and blank input refusal, explicit TTS fallback selection, and setup snapshot ownership while removing duplicate checks and a deep roster copy.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 19, 2026
…w#176805) Use resolved TTS overrides and the existing prompt/thinking parsers instead of repeating their checks. Update setup workspaces through the canonical roster converter’s private rows, avoiding a whole-roster deep clone while preserving caller-owned data. Keep explicit blank-thinking refusal, unsupported TTS selection errors, include provenance, migrations, and final config-write authority. No public CLI or persisted-data behavior change is intended. Validation: focused owner CI, type-aware lint, contracts, Madge and ratchets; two scoped-clean Codex reviews. SQL/request/MAIN change is estimated zero and unmeasured.
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
Command handlers repeat parser decisions, and setup deep-clones an entire agent roster to update one workspace field.
User Impact
No intended change to CLI options, invalid-input refusal, TTS fallback selection, or persisted setup data.
Why This Change Was Made
Use the resolved TTS provider to decide whether fallback is disabled: every accepted explicit provider/model/voice selection already produces that provider, and unsupported selections throw. Let the existing string normalizer validate the prompt and normalize the Commander thinking string once, keeping explicit blank/invalid rejection.
Setup now changes the selected workspace on the canonical roster converter’s private output. The converter already copies every top-level row, preserving caller-owned input and nested values without a whole-roster deep clone or a second projection; no nested field is mutated. Include provenance, stale-write protection, and migration calls stay unchanged.
Evidence
Production: 11 additions / 23 deletions, net -12 lines; tests: 22 additions / 14 deletions, net +8 lines. Changed-file formatting, type-aware lint, line-cap ratchet, and diff checks pass. Two isolated Codex P0/P1 reviews are scoped-clean, including the final test-fixture extraction and full source verification.
Final head
46f881a919b2aa288bab11757b0b805852a4975e: ordinary CI 39189640804 finished with 31 successful jobs and 28 skips. Owner tests, production types, core test types, lint, source contracts, Madge, and T1/dialect/worker ratchets pass. The only failing check is extension test types (plus the aggregate gate): job 117859986930 reports TS2353 forcompletionDeliveryRetryDelaysMsin the untouchednative-subagent-monitor.parent-retention.test.ts:37. Current main8401410da6b46153386d9100d970c98659749e9eindependently reproduces the exact diagnostic in run 39190189076 / job 117861351867.Final-head Knip job 117859681913 adds zero findings: the unused
TaglineModeexport matches main job 117857507393, and the unusedspawn-diagnostics.test-support.tsfile matches main job 117850679944. The first main job emitted its diagnostic before later cancellation; it is diagnostic evidence, not a completed baseline pass. Optional supplemental UI translation/performance checks also failed; neither is claimed passing or inherited. The supplemental run was canceled after required evidence was collected.CI caught literal-type widening in the proposed file-provider mode simplification; that deletion was dropped by restoring the exact base code. The final production diff is a subset of the reviewed diff. Main was integrated to pick up its sidebar-build repair; all five reviewed file blobs stayed identical, and the frozen install passed. Existing capability/CLI parser and setup tests cover accepted and rejected inputs. Two blank-thinking cases extend the existing invalid-input table, which moves to the existing test harness to keep the oversized test file shrinking; every assertion remains unchanged.
No SQL, schema, transaction, worker request, or public SDK change is intended. SQL/requests/MAIN delta: estimated 0/0/0, unmeasured; no latency claim. Workload measurement is deferred under the campaign policy after the previously observed SSD rename stalls. Setup retains its existing migration calls and final config-write owner; this patch changes only local roster construction.
Candidate ledger