Skip to content

fix(config): return the saved configuration after plugin install commits - #139203

Merged
obviyus merged 2 commits into
mainfrom
codex/models-committed-config
Sep 5, 2026
Merged

obviyus merged 2 commits into
mainfrom
codex/models-committed-config

Conversation

@obviyus

@obviyus obviyus commented Sep 5, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Setup and configuration callers could receive their old draft after saving even though the returned hash described the actual committed config. Writer-added metadata was missing from the next step.

Why This Change Was Made

Both pending-plugin transaction paths now return the config from the existing writer result, matching direct mutation. Writers that intentionally return no result retain their behavior.

User Impact

Setup carries the saved config forward instead of a stale draft. This repairs an internal result contract; no separate UI failure or storage-format change is claimed.

Evidence

Both real filesystem/database regressions failed before repair. All 29 transaction tests passed afterward, and 88 setup tests passed after correcting a stale fixture. The real configure command completed on both versions; read-only debugger observations showed next-step config and the next-write baseline match disk only after the fix. The pending-record branch remains covered by the database regression.

Consumers: setup and config callers receive writer-added metadata in the committed result.

Related: #136257.

@clawsweeper

clawsweeper Bot commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@obviyus
obviyus marked this pull request as ready for review September 5, 2026 16:07
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 5, 2026
@obviyus
obviyus merged commit d013798 into main Sep 5, 2026
177 of 179 checks passed
@obviyus
obviyus deleted the codex/models-committed-config branch September 5, 2026 16:27
@obviyus

obviyus commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks @obviyus!

Proof: The real configure command now retains the saved configuration through its next step. Read-only debugger observations show both the working configuration and its merge baseline differ from disk before the fix and match afterward.

  • Bug: Plugin-install commit helpers returned the earlier draft alongside the saved write receipt.
  • Fix: Forward the writer’s committed configuration; preserve supported void writers and existing lifecycle checks.
  • Validation: 29 owner/SQLite tests and 88 setup tests pass. Exact-head CI is green; local ClawSweeper review has no findings.
Before After
Configure retains a draft missing writer-added metadata Configure retains the configuration actually saved

Production delta: +2/-2. Related: #136257; that source draft remains unmerged.

vincentkoc added a commit to aniruddhaadak80/openclaw that referenced this pull request Sep 5, 2026
* commit '3e4becea5e2ce38ede69e8ecf5302805ecbfc09c':
  refactor: simplify outbound message execution context (openclaw#139107)
  fix(models): keep ordinary chat selections session-scoped (openclaw#139232)
  docs: slim root agent instructions and clarify testing scope (openclaw#139236)
  test(agents): give the sibling-drain completion wait a tolerance on slow runners (openclaw#139176)
  refactor(workboard): use canonical queries for card-tree writes (openclaw#139106)
  fix(canvas): recognize versioned macOS nodes (openclaw#138958)
  fix: load GitHub connections without a default agent (openclaw#139222)
  fix(memory): explain unsafe legacy host-event path recovery (openclaw#139195)
  refactor(talk): centralize typed voice session queries (openclaw#139103)
  fix(cli): preserve command dispatch and structured errors (openclaw#139067)
  refactor(agents): consolidate reply failure summaries (openclaw#139175)
  fix(auth): keep an unset default model unchanged during login (openclaw#139218)
  perf(media): reuse validated attachment read handles (openclaw#139168)
  refactor(channels): simplify account configuration updates (openclaw#139096)
  refactor(android): remove unused updater export root (openclaw#139198)
  fix(gateway): stop admitting post-ready producers during close (openclaw#139092)
  fix(gateway): expose agent hook completion outcomes (openclaw#139155)
  fix(config): return the saved configuration after plugin install commits (openclaw#139203)
  fix(android): reduce repeated retries to unreachable gateways (openclaw#138732)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 6, 2026
…its (openclaw#139203)

Return the configuration reported by the actual writer after pending-plugin install commits, rather than the earlier draft.

Preserve void writers, consent checks, lifecycle ordering, and rollback. Add real persisted-configuration coverage and align setup-test receipts with the writer contract.

Related: openclaw#136257

Co-authored-by: Ayaan Zaidi <[email protected]>
necromman pushed a commit to necromman/openclaw that referenced this pull request Sep 20, 2026
…its (openclaw#139203)

Return the configuration reported by the actual writer after pending-plugin install commits, rather than the earlier draft.

Preserve void writers, consent checks, lifecycle ordering, and rollback. Add real persisted-configuration coverage and align setup-test receipts with the writer contract.

Related: openclaw#136257

Co-authored-by: Ayaan Zaidi <[email protected]>
(cherry picked from commit d013798)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant