Skip to content

fix: retain 2026.8.1 release fixes on main - #134045

Merged
steipete merged 28 commits into
mainfrom
codex/release81-forward-main
Aug 31, 2026
Merged

steipete merged 28 commits into
mainfrom
codex/release81-forward-main

Conversation

@steipete

@steipete steipete commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Main was missing several fixes shipped in 2026.8.1: public plugin SDK callbacks and exports, Windows short-path skill watching, paired-worker deadline outcomes, and session usage freshness. Release verification also exposed a restart-cleanup race, eager provider loading, and CI checkout prerequisites that needed repairs at their owning boundaries.

Why This Change Was Made

The SDK adapter preserves the released callback contract while internal callers use the current owner. Session accounting retains main's newer completion architecture. Restart cleanup revalidates lifecycle ownership after asynchronous preparation, immediately before the existing synchronous database commit, so an old cleanup cannot retire a successor's recovery claim. No schema or public configuration changes are introduced.

Anthropic registration keeps descriptors synchronous and defers authentication and live catalog loading to the existing awaited hooks. CI checkout keeps repository-scoped authentication inside its Git owner, including lazy blob fetches, and prepares the selected shard's immutable historical reader before credentials leave scope. Test workers receive no checkout credentials.

Release tooling can verify newly published npm artifacts without changing dependency-install cooldown policy. Changelog attribution includes merged side ancestry. Release-owned reconciliation removes 265 already-shipped Unreleased bullets while preserving every numbered release section and its contributor credits. Fixtures use their actual build, connection-readiness, model-identity, and popup lifecycle owners. Fixes already landed on main are not duplicated.

The public plugin tutorial retains its provider-auth import; the lightweight provider-entry factory export is private to bundled plugins.

User Impact

Upgrades retain the fixes shipped in 2026.8.1, and delayed restart cleanup cannot erase newer recovery work. This PR does not change versions or publish packages, tags, or release assets.

Evidence

  • Reproductions cover the missing SDK contracts, Windows path expansion, deadline precedence, zero-usage freshness, queued cleanup, and two commit-boundary races. SDK/consumer tests: 170 passed; runtime tests: 196 passed; final restart-owner tests: 15 passed; watcher tests: 43 passed; changelog tests: 75 passed.
  • Real Linux catalog integration and the complete paired-node lifecycle sequence pass. Both admission/fallback E2E files pass all 28 cases after integration with main; provider seams are mocked, while admission and SQLite are real.
  • Checkout authentication/history tests pass all 18 cases, including real HTTP isolation, redirect rejection, credential non-persistence, and historical-reader use after checkout. Generated workflow checks and full Knip pass. The added historical fixture is covered by the existing routing expectations.
  • Ten native Windows checks pass with real NTFS 8.3 aliases, existing/missing path resolution, preserved junction/symlink boundaries, and existing skill-file events. These are bounded resolver/watch-path checks; the separate missing-root lifecycle repair and its full-owner Windows proof belong to fix(skills): detect skill roots created after startup #134136.
  • The unchanged macOS fresh-source provider case improved from 92.160s to 37.794s without changing its assertions or deadline. Provider sibling/catalog tests, source/compiled hook tests, build, and the owning changed gate pass. Windows CI passes main's current compiled-preparation case; its timing is not an unchanged cold-source comparison.
  • The six agent-menu browser cases pass with actual focus and popup-retirement readiness, retaining production behavior and deadlines. Each repair passed its owner checks and independent review. The prior runtime revision passed full CI, both artifact-build workflows, workflow validation, and actionlint.

Current head 0447044d8439d6a1e7cfd01d04cfed8540e6f6e5 passed full CI: 189 jobs succeeded, 13 skipped, and no retries. Final composition review passed, all 54 changelog checks passed, and numbered release history is unchanged. Concurrent main changelog additions are preserved, with the restart note beside the related lifecycle note.

An earlier revision hit intermittent pressure in the transcript-import test's unchanged 256 MiB child heap. The exact candidate passed all three cases in their original order on Linux Node 24.19; unchanged main also reproduced a failure in a different case. One targeted retry on that earlier revision passed without changing source, limits, or assertions. The failure remains recorded, with heap headroom as a named follow-up; no test was waived.

Review disposition

The latest ClawSweeper review found no concrete code or security defect; the current exact head satisfies its CI rank-up. Maintainer disposition accepts the scoped checkout authentication, lifecycle commit checks, and release-owned changelog reconciliation. Direct Codex source inspection confirms the optional realtime model field and usage notification contract; it does not establish live backend availability. The public provider catalog remains consistent with the shipped release and the maintainer's naming requirement. No storage schema or persistent-store design change is introduced. The worker deadline object is process-local; recovery uses the existing synchronous storage guard. Production changes are +123/-41 (net +82), tests/support +677/-105, tooling net +3, and docs/changelog net -244. The production growth implements the shipped SDK adapter, Windows prefix resolver, and commit-boundary lifecycle checks; removing them would remove the repaired contracts. Deadline handling absorbs the old per-caller checks.

The lead personally inspected Codex commit 63d213884daea50e4f74efc192cdc44f549b67d5: codex-rs/protocol/src/protocol.rs:214 and :2190, plus codex-rs/app-server/src/bespoke_event_handling.rs:1640. These confirm the optional realtime model override and separate last/total token usage notification contracts, not live service availability.

Additional instructions

Keep maintainer branch access enabled. This is a same-repository maintainer branch.

Preserve the stable envelope, provider catalog, and thinking callback names while retaining current main runtime owners. Carry forward the verified realtime catalog cleanup and its consumer fixtures.

Clarify the required-terminal result contract shipped in 2026.8.1 and the supported legacy producer migration path. Correct the unavailable FileAuthStorageBackend import promise without changing storage or authority.
Remove 89 stale Unreleased bullets whose 109 primary PR references already shipped in 2026.8.1. Preserve every other line and all numbered release sections byte-for-byte, including contributor credit and the canonical 2026.8.1 record.

The removed mixed references are existing issue context or unmerged candidate PR citations already corrected in the published notes. New post-release followups remain untouched.
Forward the missing release runtime fixes while retaining main native accounting ownership. Validate restart cleanup in the synchronous commit after queued patch preparation, preserve parent deadline precedence, and mark empty-session token totals stale when a turn supplies no usage.
Seed canonical durable sessions, retain one admission across fallback candidates, and close the actual prepared context after each run. Preserve result assertions and drain preparation failures before restoring shared filesystem spies.
@clawsweeper

clawsweeper Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: telegram Channel integration: telegram app: web-ui App: web-ui gateway Gateway runtime scripts Repository scripts agents Agent runtime and tooling extensions: openai size: XL maintainer Maintainer-authored PR labels Aug 31, 2026
@steipete
steipete marked this pull request as ready for review August 31, 2026 10:45
@clawsweeper clawsweeper Bot added 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. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 31, 2026
@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 1:24 PM ET / 17:24 UTC.

ClawSweeper review

What this changes

The PR forwards selected v2026.8.1 fixes into main across plugin SDK compatibility, restart recovery, provider catalog handling, skill watching, worker deadlines, release tooling, documentation, and tests.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep this same-repository release forward-port open for maintainer handling. The reviewed SDK and GPT-Live changes restore the v2026.8.1 contract while current main still differs; no concrete introduced correctness or security defect was found, but exact-head CI is still running.

Priority: P1
Reviewed head: 0447044d8439d6a1e7cfd01d04cfed8540e6f6e5
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is coherent and owner-aligned, with exact-head CI and maintainer release inclusion as the remaining gates.
Proof confidence 🌊 off-meta tidepool Not applicable: This same-repository MEMBER PR is exempt from the external-contributor proof gate; supplied owner-boundary evidence is supplemental and exact-head CI remains the merge gate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This same-repository MEMBER PR is exempt from the external-contributor proof gate; supplied owner-boundary evidence is supplemental and exact-head CI remains the merge gate.
Evidence reviewed 5 items Current main still lacks the SDK compatibility wrapper: The fetched-main version re-exports the internal thinking helper, while this PR restores the released public callback shape that accepts loadModelCatalog.
Shipped GPT-Live contract: v2026.8.1 exposes only gpt-live-1-codex, matching this PR; fetched main still advertises the additional boulder-alpha identifier.
Recovery commit uses the storage owner’s synchronous commit guard: The recovery cleanup calls patchSessionEntryCore and revalidates lifecycle generation inside assertCommitAllowed immediately before the transaction writes state; the adjacent test exercises queued cleanup losing ownership.
Findings None None.
Security None None.

How this fits together

OpenClaw’s provider plugin supplies realtime model choices to Talk and the Gateway relay, which use the selected model to create a live session. Agent execution also passes lifecycle state through recovery and session-storage owners so restarted deliveries cannot overwrite a newer run.

flowchart LR
  A[Talk configuration] --> B[OpenAI provider catalog]
  B --> C[Gateway relay]
  C --> D[Realtime session]
  E[Agent run] --> F[Restart recovery]
  F --> G[Session storage]
  H[Plugin callers] --> I[Public SDK boundary]
Loading

Decision needed

Question Recommendation
Should main take this v2026.8.1 forward-port once the current exact-head CI run is green? Merge after exact-head CI: Retain the verified release-compatible forward-port once the running checks complete successfully.

Why: This is a maintainer-authored, protected release reconciliation spanning compatibility-sensitive SDK, provider, and session-recovery surfaces.

Before merge

  • Resolve merge risk (P1) - Exact-head CI is still in progress, so this branch is not yet merge-ready.
  • Resolve merge risk (P1) - Production code changes are +128/-42; the added SDK compatibility wrapper, lifecycle commit guard, deadline handling, and Windows resolver appear owner-bound, but no net-neutral absorption was demonstrated.
  • Resolve merge risk (P1) - The independent upstream Codex contract check required by repository policy is unavailable in this restricted review environment.
Agent review details

Security

None.

PR surface

Source +87, Tests +567, Docs -244, Other +3. Total +413 across 39 files.

View PR surface stats
Area Files Added Removed Net
Source 16 130 43 +87
Tests 15 670 103 +567
Docs 5 41 285 -244
Config 0 0 0 0
Generated 0 0 0 0
Other 3 5 2 +3
Total 39 846 433 +413

Review metrics

Metric Value Why it matters
Production versus test delta production +128/-42; tests/support +677/-106; docs/instructions +41/-285 The positive production delta is concentrated in compatibility and lifecycle-owner repairs, while the unusually broad surface makes exact-head validation material before merge.

Stored data model

Persistent data-model change detected: durable storage schema: src/gateway/worker-environments/node-launch-adapter.ts, serialized state: src/auto-reply/reply/restart-recovery-claim.ts, unknown-data-model-change: src/auto-reply/reply/restart-recovery-claim.ts, unknown-data-model-change: src/gateway/worker-environments/node-launch-adapter.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Finish exact-head validation (recommended)
    Merge only after the current head has a green required CI result covering the restored compatibility and runtime paths.
  2. Pause for a narrower repair
    Pause the forward-port if CI finds a concrete provider, SDK, or recovery mismatch that cannot be resolved without widening scope.

Technical review

Best possible solution:

Retain the released SDK, recovery, and GPT-Live contracts on main, then merge after exact-head checks pass and the release owner accepts the remaining forward-port scope.

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

Yes, at source level: fetched main differs from the v2026.8.1 SDK and GPT-Live contracts, and the affected owner-boundary tests are present on this branch. This read-only review did not execute the tests.

Is this the best way to solve the issue?

Yes, provisionally: compatibility is restored at the public SDK boundary, and recovery ownership is revalidated inside the storage owner’s synchronous commit. Exact-head CI and the unavailable upstream Codex inspection remain the review limits.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P1: This restores release fixes across provider, agent, and recovery behavior that can affect active installations.
  • merge-risk: 🚨 compatibility: The PR changes a public plugin SDK callback contract and the curated realtime model list.
  • merge-risk: 🚨 auth-provider: The OpenAI GPT-Live catalog controls the model offered to authenticated realtime sessions.
  • merge-risk: 🚨 session-state: Restart cleanup now revalidates lifecycle ownership before committing recovery-session state.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This same-repository MEMBER PR is exempt from the external-contributor proof gate; supplied owner-boundary evidence is supplemental and exact-head CI remains the merge gate.

Evidence

What I checked:

  • Current main still lacks the SDK compatibility wrapper: The fetched-main version re-exports the internal thinking helper, while this PR restores the released public callback shape that accepts loadModelCatalog. (src/plugin-sdk/agent-runtime.ts:73, 0447044d8439)
  • Shipped GPT-Live contract: v2026.8.1 exposes only gpt-live-1-codex, matching this PR; fetched main still advertises the additional boulder-alpha identifier. (extensions/openai/realtime-quicksilver.ts:6, ea806575e645)
  • Recovery commit uses the storage owner’s synchronous commit guard: The recovery cleanup calls patchSessionEntryCore and revalidates lifecycle generation inside assertCommitAllowed immediately before the transaction writes state; the adjacent test exercises queued cleanup losing ownership. (src/auto-reply/reply/restart-recovery-claim.ts:507, 14694c16b8f3)
  • Forward-port provenance: The plugin-SDK and runtime forward-port commits are present on this branch and recorded as distinct release-repair commits. (src/plugin-sdk/agent-runtime.ts:75, 14694c16b8f3)
  • Codex dependency inspection limitation: The GPT-Live docs and tests identify the Codex backend as the runtime contract, but no sibling ../codex checkout exists and the restricted environment could not fetch it. This prevents an independent upstream-contract confirmation, not a local source review.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • weiqinl: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Wait for the current-head CI run to finish green before merging.

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 (7 earlier review cycles)
  • reviewed 2026-08-31T10:54:51.642Z sha 119877c :: needs maintainer review before merge. :: none
  • reviewed 2026-08-31T12:21:29.501Z sha aa034f9 :: found issues before merge. :: [P1] Migrate existing removed GPT-Live settings | [P3] Leave Unreleased cleanup to release-owned work
  • reviewed 2026-08-31T13:08:00.057Z sha b8de099 :: found issues before merge. :: [P3] Move Unreleased reconciliation to release generation
  • reviewed 2026-08-31T13:47:44.592Z sha ff6ca50 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-31T14:03:47.507Z sha 8c4128c :: needs maintainer review before merge. :: none
  • reviewed 2026-08-31T14:57:38.197Z sha 47b7536 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-31T16:56:18.902Z sha 49c24cf :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 31, 2026
Keep provider descriptors synchronous without importing credential stores, external auth discovery, or live catalog transport during registration. Load those implementations only when the existing asynchronous setup, doctor, usage, and catalog hooks need them.

Expose the existing lightweight API-key descriptor factory through provider-entry while preserving the shipped auth SDK helpers and their synchronous contracts. The unchanged fresh-process registry proof retains its original timeout and verifies scoped failover without global activation.
@clawsweeper clawsweeper Bot added merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. and removed proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. labels Aug 31, 2026
Wait for opening focus initialization and visible popup retirement before exercising selection and typing ownership. Preserve the existing focus, selected-agent, and composer assertions without changing product behavior or timeouts.
steipete and others added 3 commits August 31, 2026 08:01
Preserve the recovery coverage added in #134165 while using the actual WebSocket dependency and authored SecretRef fixture boundary.

Co-authored-by: Shakker <[email protected]>
@steipete
steipete merged commit 3c150ea into main Aug 31, 2026
265 checks passed
@steipete
steipete deleted the codex/release81-forward-main branch August 31, 2026 17:38
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 1, 2026
* fix(skills): retain Windows short-path watcher repair on main

* fix(release): verify freshly published npm plugin artifacts

* fix(plugin-sdk): forward release caller contracts to main

Preserve the stable envelope, provider catalog, and thinking callback names while retaining current main runtime owners. Carry forward the verified realtime catalog cleanup and its consumer fixtures.

Clarify the required-terminal result contract shipped in 2026.8.1 and the supported legacy producer migration path. Correct the unavailable FileAuthStorageBackend import promise without changing storage or authority.

* fix(changelog): include merged side ancestry in release inventory

* test: align catalog and node lifecycle readiness

* docs(changelog): remove already shipped unreleased notes

Remove 89 stale Unreleased bullets whose 109 primary PR references already shipped in 2026.8.1. Preserve every other line and all numbered release sections byte-for-byte, including contributor credit and the canonical 2026.8.1 record.

The removed mixed references are existing issue context or unmerged candidate PR citations already corrected in the published notes. New post-release followups remain untouched.

* fix(runtime): preserve restart claims and deadline outcomes

Forward the missing release runtime fixes while retaining main native accounting ownership. Validate restart cleanup in the synchronous commit after queued patch preparation, preserve parent deadline precedence, and mark empty-session token totals stale when a turn supplies no usage.

* test(agents): prepare real admission for runner regressions

Seed canonical durable sessions, retain one admission across fallback candidates, and close the actual prepared context after each run. Preserve result assertions and drain preparation failures before restoring shared filesystem spies.

* docs(changelog): note restart cleanup ownership repair

* test: capture lifecycle operator before polling

* docs(changelog): retire published notes from Unreleased

* fix: authenticate CI checkout and lazy blob fetches

* test(ui): isolate workspace icon retries from asset fetches

* test(agents): prepare the model identity in prompt fixture

* fix: prepare immutable reader history during CI checkout

* fix(ci): declare historical reader selector entry point

* perf(anthropic): defer auth and catalog runtime imports

Keep provider descriptors synchronous without importing credential stores, external auth discovery, or live catalog transport during registration. Load those implementations only when the existing asynchronous setup, doctor, usage, and catalog hooks need them.

Expose the existing lightweight API-key descriptor factory through provider-entry while preserving the shipped auth SDK helpers and their synchronous contracts. The unchanged fresh-process registry proof retains its original timeout and verifies scoped failover without global activation.

* docs: note deferred Anthropic runtime loading

* test: include historical prerequisite in routing expectations

* test(ui): await agent menu lifecycle before keyboard navigation

Wait for opening focus initialization and visible popup retirement before exercising selection and typing ownership. Preserve the existing focus, selected-agent, and composer assertions without changing product behavior or timeouts.

* docs(plugins): use public provider auth import in tutorial

* fix: restore gateway recovery fixture lint and types

Preserve the recovery coverage added in openclaw#134165 while using the actual WebSocket dependency and authored SecretRef fixture boundary.

Co-authored-by: Shakker <[email protected]>

---------

Co-authored-by: Shakker <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui channel: telegram Channel integration: telegram docs Improvements or additions to documentation extensions: openai gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. 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. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant