Skip to content

fix: schema-version refusal blames a downgrade that never happened and cannot identify the stale install - #115232

Merged
steipete merged 5 commits into
mainfrom
steipete/schema-error-build-identity-q4m8
Jul 28, 2026
Merged

steipete merged 5 commits into
mainfrom
steipete/schema-error-build-identity-q4m8

Conversation

@steipete

@steipete steipete commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Related: #115008

What Problem This Solves

Fixes an issue where operators hitting a newer-schema database refusal were sent down a path that makes their install worse. The error asserted a downgrade that never happened ("Do not downgrade OpenClaw") and prescribed an action the operator could not carry out ("Upgrade OpenClaw before opening this database"), while giving them nothing to identify which install was stale.

On the reporting host, three state-schema levels (4, 5, and 6) were all produced by builds that call themselves 2026.7.2. 2026.7.2 is not a published stable release — npm latest is 2026.7.1-2, which is older than what was installed — so an operator following "Upgrade OpenClaw" via Homebrew or npm i -g openclaw@latest performs a silent downgrade, moving further from the schema the database requires while the error keeps telling them not to downgrade.

A second, smaller misdirection sits on the same machine. ExecApprovalsMigrationRequiredError tells the operator to run openclaw doctor --fix without naming the state directory. A bare invocation repairs the default ~/.openclaw root, so a node scoped to OPENCLAW_STATE_DIR=~/.openclaw-clawmac-node stays blocked by the very file the command was supposed to import, with the command reporting success.

Why This Change Was Made

The fail-closed schema gate is correct and is unchanged; only its diagnostics change. The refusal now names the install root it was refused by, states both schema versions, and directs the operator at that install rather than at an abstract "newer version".

Choosing the install root as the primary identifier is deliberate. Investigating the reported host showed the stale build was not a second install at all: /opt/homebrew/bin/openclaw is a pnpm global link to a single source checkout whose src/ declares schema 5 while its dist/ (built nine days earlier) compiles schema 4. resolveCommitHash prefers the checkout's git HEAD over dist/build-info.json, so --version reports the commit of code that is not executing — printing the commit alone would have swapped one misleading identifier for another. The path is the part that is always actionable, so the message leads with it and explicitly calls out the stale-dist case.

The exec-approvals gate and its Swift sibling now name the blocked directory whenever the store is scoped to a non-default state root, leaving the common default-root case unchanged. The directory is stated in prose ("with OPENCLAW_STATE_DIR set to …") rather than as a VAR=value cmd one-liner: no Windows shell accepts that form, and the macOS app's own state root lives under Application Support, so a pasted one-liner would word-split on the space and repair the wrong directory.

User Impact

Operators who hit a schema refusal can act on it. The message names the install that refused, what it supports, what it found, and that a linked checkout may need rebuilding rather than reinstalling — instead of telling them to undo a downgrade they never performed. Anyone blocked by a legacy exec-approvals.json under a scoped OPENCLAW_STATE_DIR now gets a command that targets the directory that is actually blocked.

Behavior is otherwise unchanged: the same databases are refused under the same conditions, and no schema version moves.

Evidence

Live reproduction of the misleading error, on the reported host, against the Mac node's state directory:

$ OPENCLAW_STATE_DIR=~/.openclaw-clawmac-node openclaw nodes list
Config health-state write failed: OpenClaw state database
/Users/steipete/.openclaw-clawmac-node/state/openclaw.sqlite uses newer schema version 5;
this OpenClaw build supports 4. Upgrade OpenClaw before opening this database.
Do not downgrade OpenClaw or modify the database. ...

Root cause of that host's "stale build" — one install, source and dist/ disagreeing:

$ readlink /opt/homebrew/global/v11/60d9-19f59c296b4/node_modules/openclaw
../../../../../../Users/steipete/Projects/openclaw-main

$ grep -o 'OPENCLAW_STATE_SCHEMA_VERSION = [0-9]*' ~/Projects/openclaw-main/src/state/openclaw-state-db-contract.ts
OPENCLAW_STATE_SCHEMA_VERSION = 5
$ grep -o 'OPENCLAW_STATE_SCHEMA_VERSION = [0-9]*' ~/Projects/openclaw-main/dist/openclaw-state-db-*.js
OPENCLAW_STATE_SCHEMA_VERSION = 4

$ openclaw --version
OpenClaw 2026.7.2 (6b80b01)      # commit of src/, not of the dist/ being executed

After the fix, on a scoped install

Both changed messages captured from real CLI invocations against a scoped OPENCLAW_STATE_DIR, running this branch. Paths abbreviated as <state-dir> / <install-root>; nothing else edited.

Schema refusal — a state database one version ahead of what this build supports:

$ OPENCLAW_STATE_DIR=<state-dir> openclaw nodes list
SqliteSchemaVersionError: OpenClaw state database <state-dir>/state/openclaw.sqlite
uses newer schema version 7; this build supports 6.
Refused by OpenClaw 2026.7.2 (e64a3ce) installed at <install-root>.
Identify installs by that path: one version string spans many builds, and a linked
source checkout reports its git HEAD even when its built output is older.
Run a build that supports schema 7 or newer against this state directory — rebuild
or update the install above — or point this build at a different OPENCLAW_STATE_DIR.
See https://docs.openclaw.ai/reference/database-schemas.

The refusal now names the install root, both schema numbers, and the stale-dist case. It no longer claims a downgrade happened or tells the operator to upgrade.

Exec-approvals gate, end to end — staged from the reporting host's actual backed-up node state (its real exec-approvals.json plus its real schema-5 state/openclaw.sqlite, which had no exec_approvals_config row):

$ OPENCLAW_STATE_DIR=<state-dir> openclaw approvals get
Legacy exec approvals exist at <state-dir>/exec-approvals.json.
Run `openclaw doctor --fix` with OPENCLAW_STATE_DIR set to <state-dir>
before using exec approvals.

$ OPENCLAW_STATE_DIR=<state-dir> openclaw doctor --fix --yes --non-interactive
  - Exec approvals: legacy JSON → shared SQLite state
  Imported legacy exec approvals into shared SQLite state.
  Removed retired exec approvals JSON after recording its migration decision.
exit 0

$ OPENCLAW_STATE_DIR=<state-dir> openclaw approvals get
Approvals
  Target     local
  Path       <state-dir>/state/openclaw.sqlite#exec_approvals_config
  State      stored
  Defaults   security=allowlist, ask=on-miss, askFallback=deny, autoAllowSkills=off
  Agents     1
  Allowlist  5

$ sqlite3 <state-dir>/state/openclaw.sqlite 'select count(*) from exec_approvals_config'
1

The gate fires naming the blocked directory, doctor --fix scoped to that directory imports the file and removes it, and the gate stops firing — the real policy (1 agent, 5 allowlist entries) is now served from SQLite.

That last sequence is also why this PR deliberately does not touch the importer. migrateLegacyExecApprovals (src/infra/state-migrations.exec-approvals.ts) already exists and works; it is reached from the mode: "doctor" step list in src/infra/state-migrations.doctor.ts via src/flows/doctor-health-contributions.ts. It never ran on the reporting host only because doctor --fix aborts on the schema gate first — which is the misdirection this PR fixes.

Focused tests: src/infra/sqlite-user-version.test.ts (build identity, both schema versions, and explicit assertions that the message no longer says "Do not downgrade" or "Upgrade OpenClaw") and src/infra/exec-approvals-store.test.ts (the instruction names the blocked state directory). The Swift gate test asserts the same for the app store.

Checks: pnpm check:changed green on Blacksmith Testbox (tbx_01kymhg675k5z4pkmad9bdfzra, exit 0 — typecheck, oxlint, import cycles, plugin-boundary, database-first legacy-store guard); CI on the PR head.

Review: fresh Codex autoreview (gpt-5.6-sol, xhigh) over the branch diff. It caught two real defects in earlier revisions of this PR that are now fixed: an unquoted OPENCLAW_STATE_DIR=<path> one-liner that word-splits on the macOS app's Application Support root, and the fact that no Windows shell accepts VAR=value cmd at all. Both are resolved by stating the directory in prose. The final run reports no accepted or actionable findings.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: S maintainer Maintainer-authored PR labels Jul 28, 2026
@steipete steipete changed the title fix: schema refusal names the install that refused instead of blaming a downgrade fix: schema-version refusal blames a downgrade that never happened and cannot identify the stale install Jul 28, 2026
@steipete
steipete marked this pull request as ready for review July 28, 2026 14:13
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. labels Jul 28, 2026
@clawsweeper

clawsweeper Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 28, 2026, 11:58 AM ET / 15:58 UTC.

ClawSweeper review

What this changes

This PR changes SQLite schema-refusal, gateway-startup, and legacy exec-approval messages so operators can identify the refusing installation and the state directory that Doctor must repair.

Merge readiness

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

This PR appears to be a focused, correct diagnostic repair for the reported stale-build and scoped-state-root confusion, but it remains protected for maintainer handling and lacks direct after-fix runtime proof from the current head. The existing live before-state and importer evidence are useful; a redacted terminal transcript showing the revised schema refusal and scoped Doctor instruction would close the remaining proof gap.

Likely related people: steipete is the reporter and current proposed-patch author for this diagnostic path (low-confidence routing signal; main-history attribution could not be independently established from the supplied review material).

Priority: P2
Reviewed head: e64a3ce7ca020b8317c7212d1ff14513655a3703

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The patch is focused and covered by targeted assertions, but the missing current-head live output remains a merge-gating proof gap.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: The PR body provides a real pre-fix terminal reproduction and a Doctor-import outcome, but it does not show redacted after-fix output from this head for the changed refusal text. Add a terminal transcript for the current branch, redacting private paths, endpoints, keys, and other sensitive details; updating the PR body should trigger a fresh review, or a maintainer can request one with @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: The PR body provides a real pre-fix terminal reproduction and a Doctor-import outcome, but it does not show redacted after-fix output from this head for the changed refusal text. Add a terminal transcript for the current branch, redacting private paths, endpoints, keys, and other sensitive details; updating the PR body should trigger a fresh review, or a maintainer can request one with @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 6 items Schema diagnostic change: The proposed schema refusal now reports the found and supported schema versions plus the refusing OpenClaw build and install root, replacing unconditional upgrade/downgrade wording.
Gateway path uses the same build identity: The gateway database-preflight error incorporates the shared running-build description, so startup failures and direct SQLite refusal messages do not diverge.
Scoped Doctor guidance: The TypeScript migration gate names the blocked state directory when OPENCLAW_STATE_DIR is set, avoiding a shell-specific assignment command that could fail on Windows or paths with spaces.
Findings None None.
Security None None.

How this fits together

SQLite preflight blocks OpenClaw from opening databases created with newer schema versions, and the exec-approvals migration gate blocks use until Doctor imports retired state. Both paths surface recovery instructions to CLI, gateway, and native-app operators.

flowchart LR
  A[State database or legacy approval file] --> B[CLI, gateway, or app startup]
  B --> C[Schema preflight or migration gate]
  C --> D[Refusal diagnostic]
  D --> E[Install root and state directory guidance]
  E --> F[Compatible runtime or scoped Doctor repair]
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: The PR body provides a real pre-fix terminal reproduction and a Doctor-import outcome, but it does not show redacted after-fix output from this head for the changed refusal text. Add a terminal transcript for the current branch, redacting private paths, endpoints, keys, and other sensitive details; updating the PR body should trigger a fresh review, or a maintainer can request one with @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P1) - The PR body contains a live before-state and an importer result, but no redacted after-fix runtime output from the current head that visibly demonstrates the revised schema-refusal and scoped-state-root diagnostics.
  • Resolve merge risk (P1) - The branch is behind current main; refresh the merge/review state after the requested proof is posted.
  • Complete next step (P2) - The remaining blocker is contributor-supplied real behavior proof and protected maintainer handling, not a concrete automated repair.
Agent review details

Security

None.

PR surface

Source +41, Tests +47, Docs +6, Other +10. Total +104 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 3 45 4 +41
Tests 2 47 0 +47
Docs 1 7 1 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 2 12 2 +10
Total 8 111 7 +104

Review metrics

None.

Stored data model

Persistent data-model change detected: database schema: src/infra/sqlite-user-version.ts, migration/backfill/repair: apps/shared/OpenClawKit/Sources/OpenClawKit/ExecApprovalsLegacyMigrationGate.swift, migration/backfill/repair: apps/shared/OpenClawKit/Tests/OpenClawKitTests/ExecApprovalsSQLiteStoreTests.swift, migration/backfill/repair: src/infra/exec-approvals-migration-gate.ts, migration/backfill/repair: src/infra/exec-approvals-store.test.ts, migration/backfill/repair: src/infra/sqlite-user-version.test.ts, and 2 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the fail-closed schema and migration gates unchanged, land the shared diagnostic wording only after a redacted current-head terminal proof shows both the refusing-install message and the scoped Doctor guidance in a real setup.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the fail-closed schema and migration gates unchanged, land the shared diagnostic wording only after a redacted current-head terminal proof shows both the refusing-install message and the scoped Doctor guidance in a real setup.

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

No high-confidence current-head reproduction is included. The supplied live before-state and the patched source/tests make the failure mechanism source-reproducible, but an after-fix run against the current PR head is still missing.

Is this the best way to solve the issue?

Yes, conditionally: keeping the schema gate fail-closed while making its install identity and scoped Doctor target actionable is narrower and safer than changing schema compatibility behavior. The shared helper also keeps direct SQLite and gateway-startup diagnostics aligned.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 924f91ce475a.

Labels

Label justifications:

  • P2: This is a bounded but meaningful operator-recovery diagnostic fix for schema and state-migration refusals, without evidence of data loss or a runtime outage.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The PR body provides a real pre-fix terminal reproduction and a Doctor-import outcome, but it does not show redacted after-fix output from this head for the changed refusal text. Add a terminal transcript for the current branch, redacting private paths, endpoints, keys, and other sensitive details; updating the PR body should trigger a fresh review, or a maintainer can request one with @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

  • Schema diagnostic change: The proposed schema refusal now reports the found and supported schema versions plus the refusing OpenClaw build and install root, replacing unconditional upgrade/downgrade wording. (src/infra/sqlite-user-version.ts:15, e64a3ce7ca02)
  • Gateway path uses the same build identity: The gateway database-preflight error incorporates the shared running-build description, so startup failures and direct SQLite refusal messages do not diverge. (src/state/openclaw-database-preflight.ts:47, e64a3ce7ca02)
  • Scoped Doctor guidance: The TypeScript migration gate names the blocked state directory when OPENCLAW_STATE_DIR is set, avoiding a shell-specific assignment command that could fail on Windows or paths with spaces. (src/infra/exec-approvals-migration-gate.ts:12, e64a3ce7ca02)
  • Regression coverage: The branch adds assertions for both schema versions, the install description, removal of misleading downgrade wording, and the scoped Doctor instruction. (src/infra/sqlite-user-version.test.ts:59, e64a3ce7ca02)
  • Related canonical report: The PR explicitly addresses the diagnostic failures reported by the open canonical issue, including the linked-checkout and scoped-state-root cases. (e64a3ce7ca02)
  • Current review state: The supplied PR context reports a clean merge result but a branch behind main; this requires a review refresh before landing, not a correctness finding because no three-way merge regression is shown. (e64a3ce7ca02)

Likely related people:

  • steipete: The supplied issue and all five commits identify the reported live environment, the diagnostic boundary, and the current implementation direction; no independent current-main feature-history owner was established from the available read-only evidence. (role: reporter and current proposed-patch author; confidence: low; commits: dbd713fabaa3, 6c409b461de1, e64a3ce7ca02; files: src/infra/sqlite-user-version.ts, src/infra/exec-approvals-migration-gate.ts, src/state/openclaw-database-preflight.ts)

Rank-up moves

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

  • Add a redacted terminal transcript from the current head showing the schema refusal includes the install root and both schema versions.
  • Add a redacted scoped-state-root transcript showing the legacy exec-approvals refusal names the directory Doctor must target.
  • Refresh the branch against main after the proof is added so the final merge result is reviewed.

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-07-28T14:56:34.448Z sha a79113ab635478648faa41f8d81b150168ba54fe :: needs real behavior proof before merge. :: [P2] Quote the state directory in the suggested command
  • reviewed 2026-07-28T15:37:00.486Z sha 8a27ee08aa7e79e098f9f3d5ef22eab4b6b3ed25 :: needs real behavior proof before merge. :: none

steipete added 5 commits July 28, 2026 08:54
…usals

The newer-schema refusal told operators not to downgrade and to upgrade
OpenClaw, neither of which is actionable when two builds share one release
version string. It now names the install root that refused, both schema
versions, and warns that a linked source checkout reports its git HEAD even
when its built dist is older.

The exec-approvals gate told operators to run `openclaw doctor --fix` without
naming the state directory, so a bare invocation repaired the default root
while the scoped install stayed blocked. Both the TypeScript gate and its
Swift sibling now scope the command to the blocked state directory.

Refs #115008
@steipete
steipete force-pushed the steipete/schema-error-build-identity-q4m8 branch from 8a27ee0 to e64a3ce Compare July 28, 2026 15:54
@steipete
steipete merged commit 40fb1ca into main Jul 28, 2026
203 of 206 checks passed
@steipete
steipete deleted the steipete/schema-error-build-identity-q4m8 branch July 28, 2026 16:21
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 28, 2026
…etwork-none

* origin/main:
  fix: schema-version refusal blames a downgrade that never happened and cannot identify the stale install (#115232)
  fix: restore Fish completion after global CLI options (#115222)
  refactor(agents): collapse the client-tool catalog branch (#115212)
vincentkoc added a commit that referenced this pull request Jul 28, 2026
…-20260728

* origin/main:
  fix(slack): cap chat.update edit text at the 4000-char limit, not the 8000 send limit (#115027)
  [AI-assisted] docs: recommend Node 26 in quickstart, landing, and platform install docs (#115064)
  refactor(workboard): tidy Control UI card execution helpers (#115195)
  perf(agents): amortize history-limit eviction with hysteresis (#115273) (#115281)
  fix: schema-version refusal blames a downgrade that never happened and cannot identify the stale install (#115232)
  fix: restore Fish completion after global CLI options (#115222)
  refactor(agents): collapse the client-tool catalog branch (#115212)
vincentkoc added a commit to LZY3538/openclaw that referenced this pull request Jul 28, 2026
* origin/main: (199 commits)
  refactor(workboard): tidy Control UI card execution helpers (openclaw#115195)
  perf(agents): amortize history-limit eviction with hysteresis (openclaw#115273) (openclaw#115281)
  fix: schema-version refusal blames a downgrade that never happened and cannot identify the stale install (openclaw#115232)
  fix: restore Fish completion after global CLI options (openclaw#115222)
  refactor(agents): collapse the client-tool catalog branch (openclaw#115212)
  fix(macos): signed rebuild no longer stalls on app shutdown (openclaw#103957)
  fix(agents): prevent repeated Code Mode output across waits (openclaw#115213)
  refactor(ui): split Profile (identity) from Usage (statistics) (openclaw#115245)
  fix(channels): report a channel that cannot receive as unhealthy instead of connected (openclaw#115229)
  fix(cli): reject malformed infer model refs (openclaw#115225)
  feat(ui): finish the Lobsterdex at 42 with wild variants, squish fix, and blink variance (openclaw#115264)
  test(migrations): avoid mtime precision in checkpoint fixture (openclaw#115269)
  test(signal): verify archive limits without malformed tar (openclaw#115270)
  refactor(sessions): isolate legacy transcript fixtures (openclaw#115231)
  fix(discord): clear pending launch watchdog (openclaw#115100)
  fix(agents): stop quadratic subagent prompt rendering (openclaw#115263)
  fix(memory-core): recover dreaming cron reconciliation (openclaw#115174)
  fix(qa-lab): filter incompatible channel scenarios (openclaw#115087)
  fix(android): respect locale in compact labels
  test(i18n): prove iOS discovery catalog ownership
  ...
vincentkoc added a commit to christian-lallo/openclaw that referenced this pull request Jul 28, 2026
* origin/main: (62 commits)
  feat(macos): enable Computer Control by default and diagnose stale Accessibility grants (openclaw#115280)
  fix(qa): restore full-stack scenarios and truthful suite exits (openclaw#115290)
  feat(memory): backfill past sessions from Control UI (openclaw#115266)
  docs: link macOS onboarding pages to app download (openclaw#111361)
  feat(skills): shared authoring standards make learned skills routable (openclaw#115103)
  fix(matrix): suppress previews for modifying hooks
  fix: prevent node gateway hangs and runaway local inference (openclaw#115248)
  refactor(ui): adopt @lit/task across remaining page surfaces (openclaw#115274)
  fix(slack): cap chat.update edit text at the 4000-char limit, not the 8000 send limit (openclaw#115027)
  [AI-assisted] docs: recommend Node 26 in quickstart, landing, and platform install docs (openclaw#115064)
  refactor(workboard): tidy Control UI card execution helpers (openclaw#115195)
  perf(agents): amortize history-limit eviction with hysteresis (openclaw#115273) (openclaw#115281)
  fix: schema-version refusal blames a downgrade that never happened and cannot identify the stale install (openclaw#115232)
  fix: restore Fish completion after global CLI options (openclaw#115222)
  refactor(agents): collapse the client-tool catalog branch (openclaw#115212)
  fix(macos): signed rebuild no longer stalls on app shutdown (openclaw#103957)
  fix(agents): prevent repeated Code Mode output across waits (openclaw#115213)
  refactor(ui): split Profile (identity) from Usage (statistics) (openclaw#115245)
  fix(channels): report a channel that cannot receive as unhealthy instead of connected (openclaw#115229)
  fix(cli): reject malformed infer model refs (openclaw#115225)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 29, 2026
…d cannot identify the stale install (openclaw#115232)

* fix(state): name the refusing install in schema and exec-approval refusals

The newer-schema refusal told operators not to downgrade and to upgrade
OpenClaw, neither of which is actionable when two builds share one release
version string. It now names the install root that refused, both schema
versions, and warns that a linked source checkout reports its git HEAD even
when its built dist is older.

The exec-approvals gate told operators to run `openclaw doctor --fix` without
naming the state directory, so a bare invocation repaired the default root
while the scoped install stayed blocked. Both the TypeScript gate and its
Swift sibling now scope the command to the blocked state directory.

Refs openclaw#115008

* fix(gateway): name the refusing install in the startup schema refusal

* fix(mac): keep the exec-approvals gate message buildable on iOS

* fix(exec-approvals): shell-quote the state directory in the repair command

* fix(exec-approvals): state the repair directory in prose so every shell can follow it
dpriscal added a commit to dpriscal/openclaw that referenced this pull request Aug 2, 2026
The docstring quoted the pre-openclaw#115232 refusal text, which no longer matches
what the build emits. Also records why the snapshot matters now that the
refusal no longer mentions restoring a backup: openclaw#115232 dropped that advice
as unactionable, and part of why it was unactionable is that nothing
created the backup it pointed at.

Co-Authored-By: Claude Opus 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: S status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant