Skip to content

Upgrade fork 2026.6.11 → 2026.6.34 (merge upstream extended-stable into boon) - #140

Closed
augusteo wants to merge 10000 commits into
boonfrom
boon-6.34-integration
Closed

augusteo wants to merge 10000 commits into
boonfrom
boon-6.34-integration

Conversation

@augusteo

@augusteo augusteo commented Aug 20, 2026 •

Copy link
Copy Markdown

What Problem This Solves

The boon fork has been pinned to upstream core 2026.6.11 since PR #31 (2026-07-01). Every
release since (-boon.4 … -boon.21) kept that core, so the fork is 304 upstream commits
behind the current extended-stable train, 2026.6.34. This advances the fork to that
train.

It also repairs a latent history defect. PR #31 was squash-merged, so v2026.6.11 was
never an ancestor of boon and the merge-base stayed at d1fa0f9 (2026-05-18). Every
upstream merge since has had to diff against a months-stale base.

Why This Change Was Made

extended-stable is the channel this fleet should track (update.channel gained
"extended-stable" as a valid value in 6.34). Staying on 6.11 means carrying 304 commits of
upstream fixes as permanent debt, and each further deferral makes the eventual jump larger.

Ancestry repair. The first commit records v2026.6.11 as a real second parent via
-s ours, which changes no files but moves the merge-base. Measured effect on this merge:

merge base conflicted files
plain boon <- v2026.6.34 d1fa0f9 (May 18) 1143
after priming e085fa1a (= v2026.6.11) 32

⚠️ Do not squash-merge or rebase this PR. Squashing discards the parent link and
recreates exactly the defect above, forcing the next sync back onto a stale base. Land by
fast-forward or a real merge commit.

User Impact

Fork behavior is intended to be unchanged; boon's patches were preserved deliberately in
every conflict. Users get 304 commits of upstream fixes (browser/network sandboxing, agent
and provider run resilience, channel recovery, SQLite checkpoint robustness).

Version: 2026.6.34-boon.1. The three fork-published plugins (@openclaw/slack,
@openclaw/msteams, @openclaw/diagnostics-prometheus) are bumped in lockstep.

This roll needs the full plugin legs, unlike recent ones. inventory.yaml notes that
boon.21 changed zero pinned-plugin source, so a gateway-only roll was safe. That is false
here
— upstream changed slack/src/monitor/message-handler.ts (+74),
message-handler/prepare.ts (+135), and msteams/src/graph-upload.ts (+29). Run
gateway → reconcile → slack → msteams; a gateway-only roll on a Teams host is how the
2026-07-06 arguijo outage happened.

Conflict resolution — 32 files

Policy: boon's patches win. Upstream's side was taken only where boon had no competing
behavior, or where upstream's version was strictly higher on a security pin.

Behavior kept for boon (would otherwise have silently reverted)

  • src/agents/embedded-agent-runner/run/payloads.ts — the merge silently deleted
    boon's ENG-16330 branch isExecLikeToolName(...) && !includeDetails → showWarning: false
    (upstream relocated its own exec branch above the mutating branch and redefined it as
    !hasUserFacingReply). Boon's branch is restored with a comment recording the
    divergence; boon's sessions_spawn (ENG-16868) and middlewareError suppressions kept.
    Branch order now matches boon's exactly.
  • payloads.errors.test.ts / payloads.test.ts — kept boon's assertions. Upstream's
    competing tests ("does not warn for timed-out exec errors…", "marks middleware
    tool-error warnings … as non-terminal") assert the opposite of boon's behavior and would
    fail against it.
  • agent-runner-execution.test.ts — kept boon's "surfaces transient-busy fallback copy" title/assertions (fix(auto-reply): auto-retry transient edge-block exhaustion + honest busy message #28 briefly-busy copy; 7 "briefly busy" assertions intact) and
    additionally kept upstream's new provider-auth-failure test.
  • src/agents/cli-runner/prepare.ts — kept boon's loadCliSkillRuntimeInputs refactor
    (fix(skills): preserve explicit skill context in workflow runs #107) and added upstream's new normalizeOptionalMcpContextValue /
    buildCliMcpGrantContext; dropped only upstream's superseded resolveCliSkillsPrompt
    opener (boon defines a richer one later in the file).
  • extensions/msteams/src/graph-upload.test.ts — adopted upstream's new
    graph upload response limits suite, dropped its buildTeamsFileInfoCard suite: that
    module (./graph-chat.js) was deliberately deleted on boon by ENG-14349 (SharePoint link
    instead of the native file-info card, fix(msteams): SharePoint file link instead of native file-info card (ENG-14349/ENG-14117) #59).

Additive on both sides — kept both

reply-run-registry.ts (boon startedAt + upstream lastActivityAtMs/recordActivity()),
get-reply-options.types.ts, anthropic-transport-stream.test.ts (two whole tests rebuilt,
not spliced), npm-publish-plan.test.ts (boon's -boon.N correction suite + upstream's
resolvePublishedNpmVersionRoute suite), formatassistanterrortext.test.ts,
agent-runner-memory.test.ts, CHANGELOG.md (both histories).

Upstream taken

  • extensions/codex/src/app-server/side-question.ts — upstream removed
    execPolicy / execReviewerAgentId / internalExecAutoReview from
    handleCodexAppServerApprovalRequest's signature in its approval-bridge rewrite
    (harness @openai/codex 0.139.0 → 0.146.0; approval-bridge.ts −285). Boon's only
    delta to this file was whitespace, so there was no boon behavior to preserve. Verified
    directly against sibling ../codex at rust-v0.146.0. The accurate framing is
    app-server approval hardening: current app-server approval requests carry no
    enforceable resolved executable, and unresolved requests deliberately route to human
    approval (extensions/codex/src/app-server/approval-bridge.ts:141). The remaining 38
    execPolicy references configure runtime policy and stay valid. (An earlier draft said
    "reviewer ownership moved into codex's elicitation layer" — MCP elicitation review does
    exist there, but it is a separate path and not the reason these params went away.)

Dependency / security pins — decided case by case

tar 7.5.21 (boon), axios 1.18.1 (boon), fast-uri 4.1.2 (upstream),
protobufjs 7.6.5 (upstream), postcss 8.5.22 (boon).

These happen to be the higher version in each case, but "higher wins" is not a safe
general rule and is not the justification — fast-uri 3.1.5 → 4.1.2 is a major bump taken
because upstream's code targets 4.x, not because it is numerically larger. tar is the one
case where the versions must match: npm rejects shrinkwrap generation with EOVERRIDE
when the override and the direct dependency disagree.

Two merge artifacts fixed, both duplicate overrides keys the merge produced because the
two sides declared them in different blocks (so neither hunk conflicted) — pnpm fails to parse
the file at all in that state: brace-expansion (same value both sides) and postcss
(upstream 8.5.21 vs boon 8.5.22 — kept boon's).

Needs maintainer sign-off (pnpm-workspace.yaml override change): overrides.tar
7.5.20 → 7.5.21. This is a pre-existing boon inconsistency, not a merge artifact —
dependabot #77 bumped dependencies.tar to 7.5.21 but left the override at 7.5.20. It was
latent until a shrinkwrap regeneration, which fails EOVERRIDE ("Override for [email protected]
conflicts with direct dependency"). Aligned upward to preserve boon's security bump.

Evidence

Local, macOS, Node 26 / pnpm 11.2.2. Merge simulated first with
git merge-tree --write-tree on detached objects, which predicted 32 conflicts; the real
merge produced exactly 32.

Commands run

git merge --no-ff -s ours v2026.6.11   # tree byte-identical (git diff --exit-code boon HEAD)
git merge --no-ff v2026.6.34           # 32 conflicts, all resolved by hand
pnpm install --no-frozen-lockfile
pnpm deps:shrinkwrap:generate          # 70 plugin shrinkwraps regenerated
pnpm tsgo:all
pnpm test <12 touched-surface files>

Results

  • pnpm tsgo:all — 0 errors across the monorepo (this is what bounds the
    compiles-but-was-not-reviewed risk on the ~1100 files the merge touched).
  • pnpm test on the 12 resolved surfaces — 769 passed, 0 failed, 6 shards:
    payloads + payloads.errors (85), cli-runner/prepare (14),
    anthropic-transport-stream (27), agent-runner-execution + reply-run-registry +
    agent-runner-memory (297), bundled-plugin-metadata + boundary-invariants +
    npm-managed-root + npm-publish-plan (311), formatassistanterrortext (35).
  • pnpm test on the touched extensions — 106 passed, 0 failed:
    extensions/msteams/src/graph-upload.test.ts (96),
    extensions/diagnostics-otel/src/service.test.ts (10).
  • Re-run after the commit-4 fix: payloads.errors + payloads + embedded-agent-error-observation — 130 passed (includes the new regression test).
  • 875+ tests green in total, 0 failures.
  • Diff shape: 1191 files, +66,316 / −7,843 — matching the predicted upstream drift
    (1192 files, +66,624 / −8,081) almost exactly, i.e. the merge added no surprise churn.

Boon-behavior canaries re-checked after the merge (these are the ones a merge would
revert silently): "briefly busy" (#28) still asserted in 2 files; boon's ENG-16330 exec
branch present; normalizeOpenClawReleaseSuffixForPluginApi intact in src/infra/clawhub.ts;
sentry-monitor (8 files) and browser-handoff (7 files) intact;
src/infra/progress-nudge-runner.ts present; extensions/msteams/src/graph-chat.ts still
deleted (not resurrected). payloads.ts now differs from boon by only an explanatory
comment — the logic is byte-identical.

Plugin ABI gate, live-executed (this is the gate that caused the 2026-07-06 arguijo
outage, where a -boon.N core was rejected by a >=<base> plugin range):

core plugin pluginApi result
2026.6.34-boon.1 >=2026.6.34 PASS ← this PR's pairing
2026.6.11-boon.21 >=2026.6.34 FAIL (correct — roll core before plugins)
2026.6.11-boon.21 >=2026.6.11 PASS (today's fleet)

parseReleaseVersion("2026.6.34-boon.1") → {channel: "stable", correctionNumber: 1}, and
all four -boon.N regexes (scripts/package-changelog.mjs, src/infra/clawhub.ts) accept
the new version while still accepting 2026.6.11-boon.21.

One integration break found and fixed — not a merge artifact, a genuine fork-only
interaction. @opentelemetry/sdk-node 0.219→0.220 introduced @opentelemetry/sdk-trace
alongside sdk-trace-base. This repo uses nodeLinker: hoisted, so one root copy wins — and
boon's @sentry/node root dep (for the bundled sentry-monitor) drags in
[email protected], which shadowed the 2.9.0 that both diagnostics-otel and
sdk-node require. 1.x/2.x Span types are nominally incompatible → 4 type errors. Neither
parent could hit this alone: boon has no sdk-trace, upstream has no @sentry/node. Fixed
with an overrides pin to 2.9.0, the same direction as boon's existing
@opentelemetry/core: 2.9.0.

Pre-existing breakage found while validating this, NOT caused by this PR.
import("@sentry/node") already fails on boon today:

SyntaxError: The requested module '@opentelemetry/core'
  does not provide an export named 'VERSION'

@sentry/[email protected] targets OTel core 1.x (SentryHttpInstrumentation imports VERSION,
removed in 2.x), while boon's existing @opentelemetry/core: 2.9.0 override forces 2.x.
Proof this predates the sync: boon's own committed pnpm-lock.yaml already resolves
@sentry/[email protected]'s @opentelemetry/core to 2.9.0, and @sentry/node is 8.49.0 on both
sides. My sdk-trace-base pin does not touch @opentelemetry/core, so it neither causes nor
worsens this — but it also does not fix it. sentry-monitor needs its own issue: either
scope the Sentry OTel overrides back to 1.x (parent-scoped, so diagnostics-otel keeps 2.9.0)
or move to a Sentry release built against OTel 2.x. Worth checking whether the fleet's
sentry-monitor is currently degraded in production.

Correctness bug found in review and fixed (commit 4, 56e59b59c0f). Restoring boon's
ENG-16330 exec suppression verbatim preserved a silent-failure gap: it suppressed every
exec-like error whenever details were disabled, without requiring that a reply was actually
delivered. A read-only exec failure (mutatingAction: false) with no assistant text skips
the mutating branch and fell into that suppression, so buildEmbeddedRunPayloads returned
zero payloads — the user saw nothing at all. Measured before/after:

before: payload count 0  []
after:  payload count 1  "⚠️ 🛠️ Exec failed" + Retry button

Fixed by adding the params.hasUserFacingReply requirement, keeping boon's quieter
placement below the mutating branch, plus a regression test for the read-only/no-reply case.
This is the gap upstream openclaw#103574 closed differently (by hoisting the branch); boon keeps its
placement and closes the hole.

Follow-up, not changed here: boon #132's Slack app_mention retry
(extensions/slack/src/monitor/message-handler.ts) looks redundant now. Upstream serializes
reply-session initialization in core (src/auto-reply/reply/session.ts:306, commits
a38c075762d and 69470b85174/openclaw#98835, plus a new session-accessor.reply-init-concurrency
test). SlackRetryableInboundError has no production producer — it is constructed only in
tests — though the guard's isReplySessionInitializationConflictError arm is still live, so
this is not simply dead code. Removing boon behavior is an owner decision, so it is flagged
rather than done; the comment at message-handler.ts:84 is stale either way.

CI note: the 30 CodeQL actions/cache-poisoning/poisonable-step alerts are inherited
upstream code
, not introduced here. All four flagged workflow files
(install-smoke.yml, openclaw-live-and-e2e-checks-reusable.yml,
qa-live-transports-convex.yml, plugin-npm-release.yml) are byte-identical to
v2026.6.34 on this branch and boon never touched them (delta 0). They are attributed to the
PR only because the merge brought upstream's versions in. Real upstream issues the fork now
inherits, but not this PR's regressions. The review check is Claude PR Review, which was
cancelled, not failed.

What was NOT run — deferred to CI/Testbox and to the rollout, per AGENTS.md:
full pnpm check, the full Vitest suite, pnpm build, cross-OS/Docker/package-acceptance,
prompt-snapshot regeneration on Linux Node 24, openclaw doctor --lint/--post-upgrade against
real 6.11-boon state, and any live channel proof.

Not safe to roll to customers on this evidence alone. A core-train jump is the class of
change that caused the 2026-07-06 arguijo Teams outage (health stayed green; only real
inbound messages failed), and the real-message smoke test that would catch it
(ENG-16307/ENG-16309) still does not exist. Before any customer wave: §3a
preflight-abi-allowlist.sh on every target, a real inbound-message round-trip per channel
on an internal host, a rehearsed rollback, and the full gateway → reconcile → slack → msteams leg sequence. gandalf needs its own change-doc — it is a Mac Mini outside
fleet-upgrade.sh, still on 2026.6.11-boon.3 as an unsigned local build, and
install --force wipes its service-env.

Codex harness note: @openai/codex moves 0.139.0 → 0.146.0 with this sync. The
AGENTS.md obligation to refresh docs/plugins/codex-harness.md's model snapshot has nothing
mechanical to apply — that doc carries no model list, only protocol floors (0.125.0,
0.132.0) which remain accurate at 0.146. Upstream shipped the same bump touching 0 lines of
it.

Post-merge review pass (cubic-dev-ai)

The upstream sync itself is described above; this section covers a separate, later pass: cubic-dev-ai's automated review left findings across the full diff (56 review threads total), which were triaged and worked through to completion. Current state: 50 resolved, 6 intentionally left open (each with a reply explaining why — see the threads themselves for full detail; this section summarizes).

Real bugs fixed

Security:

  • extensions/sms/src/inbound.ts — the control-command auth gate was wired to compute control_command_unauthorized correctly, but dispatchSmsInboundEvent never checked the result, so an unauthorized control command still reached the agent turn (4eb2ad49412 computed the decision, a39538aaa77 made it actually block).
  • src/channels/plugins/message-action-dispatch.ts — the shared trusted-sender gate rejected an operator.admin-scoped Gateway caller before it could reach iMessage's or MSTeams' own operator.admin exception inside handleAction, so that exception was unreachable (53e8ec2e02b).
  • extensions/nextcloud-talk/src/send.ts — self-hosted error responses were logged without stripping control characters, allowing terminal escape sequence injection into operator logs (866740b212d).
  • extensions/feishu/src/secret-contract.ts — an explicitly-disabled default account was still treated as having a usable implicit secret (866740b212d).

Correctness:

  • extensions/telegram/src/outbound-adapter.ts / send.ts — a reply exceeding Telegram's text limit fans out into several physical messages internally, and every chunk kept the implicit reply target instead of just the first (e34d9b18456).
  • apps/macos/Sources/OpenClaw/ShellExecutor.swift — exec-approval command output was fully buffered in memory before the byte cap ever applied, so unbounded output could exhaust memory (492008dabd0); a follow-up review then caught that the fix capped the head of output when the truncator presents the tail, dropping a command's actual trailing error/status lines (b4dbefe9095).
  • src/agents/auth-profiles/oauth-manager.ts — a same-slot refresh CAS race for identity-less (no accountId/email) OAuth profiles always discarded a valid rotation (15cd6450fe1); a follow-up review then caught that the same fix could let a stale rotation clobber a legitimate relogin to a different account, since identity-less profiles have no way to distinguish the two — narrowed to only force-persist when the racing stored value isn't independently usable, since a relogin always produces something usable immediately (ca38318a6cb).
  • src/infra/retry.ts / src/agents/compaction.ts — the backoff-delay wait had no abort-signal awareness, so a caller that aborted mid-delay still slept out the full delay and reran with an already-aborted signal (b551733675f).
  • extensions/telegram/src/bot-message-context.ts, extensions/telegram/src/peer-bot-loop.ts, extensions/discord/src/monitor/gateway-supervisor.ts, extensions/google-meet/src/oauth.ts, src/agents/anthropic-transport-stream.ts, src/commands/models/list.probe.ts, scripts/plan-release-workflow-matrix.mjs, extensions/qa-matrix/src/runners/contract/scenario-runtime-room.ts — see 5a96dec5195, 30808421b39, c44f5cadb1a, 6ae2e2fead5, 053b11ce9a0 for the individual fixes (admission-cache flag bug, bot-pair-loop-suppression duplication, late-error-listener leak, OAuth error misclassification via substring match, SSE buffer error message, malformed_api_key probe diagnosis, dropped Z.ai release-matrix entry, vacuous mention-safety test).

Test/tooling determinism:

  • scripts/proof-telegram-bound.mjs, scripts/proof/secrets-resolve-stream-errors.mts — both proof scripts asserted against a race rather than a deterministic signal (a fixed sleep racing an async socket-close event; a fixed timer racing a near-instant child process). Both now key off the actual event that makes the assertion valid (d0f13b54077).
  • scripts/test/verify-docker-attestations.test.ts — the pre-fix test actually shelled out to a real local docker binary instead of the injected mock (c44f5cadb1a).

CI failures caught along the way (8579717fa5a, 3b0bb9f3691): an oxlint no-control-regex false-positive on the nextcloud-talk fix above (rebuilt the pattern at runtime via String.fromCharCode, matching packages/terminal-core/src/ansi.ts's existing convention, instead of a literal regex with \x escapes), and two TypeScript errors in test mocks whose return/parameter types were inferred too narrowly from a single call site.

Every fix above followed read-source → apply-fix → write/extend test → verify by reverting the production change and confirming the test fails → restore.

Left open (6 threads)

  • scripts/package-changelog.mjs:160, scripts/openclaw-npm-extended-stable-release.mjs:66 — investigated and explained; both need a maintainer product decision, not a code fix (release-heading timing and dormant npm-release infra, respectively).
  • extensions/codex/src/app-server/dynamic-tool-execution.ts:464 — the suggested fix is mathematically a no-op (proved min(min(x,cap-g)+g,cap) ≡ min(x+g,cap) for all x); a real fix needs an owner call on raising the timeout ceiling.
  • extensions/slack/src/monitor/message-handler.ts:233 — read through the full concurrency section (shouldRecordDroppedHistory, CAS-conflict winner-marker logic, prior-incident comments); not confident enough to change this incident-scarred code without fully tracing the failure path first.
  • .github/actionlint.yaml:35 — re-verified live with the exact CI-pinned actionlint 1.7.11 binary invoked the same way CI does; the ignore entries are genuinely needed (concurrency.queue isn't modeled by that version).
  • scripts/e2e/mcp-client-temp-state.ts:39 — the review comment's body is empty; nothing to act on.

Current HEAD: 3b0bb9f3691.

steipete and others added 30 commits July 14, 2026 01:54
* fix: scope Synology preauth throttling by client ip

* fix: clarify Synology preauth limiter comments

(cherry picked from commit 5f709cf)
* fix: bind macOS node allowlist commands safely

* chore: leave node fix notes in PR

(cherry picked from commit 6e81c54)
…mode=none on HTTP (openclaw#102834) (openclaw#102881)

* fix(gateway): reject disallowed browser Origin before accepting auth.mode=none on HTTP (openclaw#102834)

* refactor(gateway): scope HTTP Origin checks to no-auth

* fix(gateway): preserve trusted-proxy scan boundary

---------

Co-authored-by: Peter Steinberger <[email protected]>
(cherry picked from commit 232de23)
* fix(gateway): clamp MCP loopback body timeout

* test(gateway): keep stalled request auth strict

* test(gateway): name loopback request auth

* test(gateway): scope overflow auth fixture

---------

Co-authored-by: Peter Steinberger <[email protected]>
(cherry picked from commit cf0b80b)
…penclaw#102924)

* fix(googlechat): bound webhook cert fetch during token verification

* refactor(googlechat): consolidate cert timeout proof

---------

Co-authored-by: Peter Steinberger <[email protected]>
(cherry picked from commit ce990a3)
Prevent LINE group allowlist policy from inheriting DM allowFrom entries, so open DMs do not broaden group access. Keep group-specific allowlists and per-group overrides as the only group admission sources, and document the scoped behavior.

Co-authored-by: pgondhi987 <[email protected]>
(cherry picked from commit ffff72c)
(cherry picked from commit d8ee630)
…97271)

* fix(telegram): bound Bot API response reads to prevent OOM

* fix(scripts): make proof-telegram-bound.mjs lint-clean

---------

Co-authored-by: NIO <[email protected]>
(cherry picked from commit a07d59e)
… at 16 MiB (openclaw#96762)

* fix(openai-chatgpt-responses): bound streaming success-body SSE reads at 16 MiB

Apply createSseByteGuard to src/llm/providers/openai-chatgpt-responses.ts
(parseSSE) so the ChatGPT Responses SSE parser cannot be exhausted by a
hostile or malfunctioning endpoint that streams an unbounded SSE body.
The 16 MiB cap matches the non-streaming readProviderJsonResponse cap.

What changed:
- src/llm/providers/openai-chatgpt-responses.ts: wrap body.getReader() in
  createSseByteGuard before the existing parseSSE loop. The function is
  also re-exported as parseSSEForTest for direct test access.
- Inline test added to openai-chatgpt-responses.test.ts: hostile 1 MiB
  pull stream, asserts canonical overflow message, cancel(reason) was an
  Error instance, pullCount bounded to 17-20.

Reuses the createSseByteGuard helper from src/agents/streaming-byte-guard.ts
(introduced in openclaw#96701 for the anthropic-transport-stream path; same
helper, same 16 MiB cap, same overflow-error shape). This PR is the
third of the planned per-surface rescue series for the previously closed
PR openclaw#96666, after PR #3b (openclaw#96723).

No SDK surface change. No repro script committed (proof in this body).

* fix(openai): bound ChatGPT error body reads

* fix(openai): bound chatgpt error parsing

---------

Co-authored-by: Vincent Koc <[email protected]>
(cherry picked from commit 5880e0a)
…law#97235)

* fix proxy response and SSE read bounds

* test(line): reuse surrogate regex in action tests

---------

Co-authored-by: Vincent Koc <[email protected]>
(cherry picked from commit cc75783)
…am_error / LLM request failed (openclaw#95542)

* fix(agents): fallback on upstream provider errors

* refactor(agents): clarify provider fallback classification

---------

Co-authored-by: Altay <[email protected]>
(cherry picked from commit cfd8ba8)
…onfigured (openclaw#97571)

Remove model_not_found from the shouldEscalateRetryLimit exclusion list
so that configured fallback models are attempted when the primary model
is decommissioned by the provider. Previously, model_not_found was
treated as terminal, silently defeating the fallback chain for the
decommission case.

Fixes openclaw#97564

(cherry picked from commit f6115dd)
* fix(tasks): recover terminal lost cron rows

* fix(tasks): require backing-session lost recovery signal

* fix(tasks): satisfy has-own lint rule

---------

Co-authored-by: Altay <[email protected]>
(cherry picked from commit be94853)
…remove fails (openclaw#99960)

* fix(cron): roll back live store when persist fails during add/update/remove

* fix(cron): restore catch-up deferral markers on failed persists

* fix(cron): defer rollback-sensitive notifications

---------

Co-authored-by: Vincent Koc <[email protected]>
(cherry picked from commit fe3215c)
…penclaw#85296)

* fix(codex): derive terminal-idle watchdog from effective run timeout

Fixes the early-abort half of openclaw#85242. The Codex app-server terminal-idle
watchdog used a hardcoded 30-minute default that was not derived from the
effective run timeout, so a scheduled turn configured with a longer
timeoutSeconds could be aborted early at 30 minutes even with budget left.

resolveCodexTurnTerminalIdleTimeoutMs (now in attempt-timeouts.ts after the
upstream split) accepts the effective run timeout and, with no explicit
override, follows the run budget instead of the 30-minute default:
- explicit override always wins (advanced config / tests)
- otherwise terminal-idle = max(30min floor, run budget), so a longer run is
  no longer cut short and existing protection is never shortened
- falls back to the 30min default when no run budget is known

Reuses the existing resolvePositiveIntegerTimeoutMs helper, matching the
neighbouring post-tool resolver. Adds focused unit tests for the derivation.

The diagnostic-wording half of openclaw#85242 (naming the terminal-idle watchdog in
the surfaced guidance) is left as a separate follow-up.

* fix(codex): derive terminal-idle watchdog from effective run timeout

* fix(codex): preserve default terminal idle watchdog

---------

Co-authored-by: openclaw-clownfish[bot] <280122609+openclaw-clownfish[bot]@users.noreply.github.com>
Co-authored-by: Vincent Koc <[email protected]>
(cherry picked from commit 4076ba0)
* fix(codex): ignore missing mirrored session history

* test(codex): prove missing mirrored history stays quiet

* fix(codex): narrow missing history proof

---------

Co-authored-by: Alex Tang <[email protected]>
(cherry picked from commit 17ba497)
…s is absent (openclaw#100722)

* fix(codex): honor timeoutSeconds for dynamic tool calls when timeoutMs is absent

* fix(codex): enforce integer timeoutSeconds and cover side-question path

* chore(proof): extend codex timeoutSeconds proof to side-question path and fractional rejection

* fix(codex): leave headroom when arming watchdog from timeoutSeconds

* fix(codex): preserve dynamic tool timeout budgets

* test(codex): satisfy dynamic tool response types

* test(codex): type structured timeout promise

---------

Co-authored-by: Peter Steinberger <[email protected]>
(cherry picked from commit 68487e4)
…wedged systemctl (openclaw#84698) (openclaw#94149)

* fix(status): bound systemd service probes so status cannot hang on a wedged systemctl (openclaw#84698)

* test(daemon): assert readRuntime receives the threaded status timeout opts (openclaw#84698)

---------

Co-authored-by: Cursor <[email protected]>
(cherry picked from commit b6ad306)
* fix(install): manage config-secretref env refs via OPENCLAW_SERVICE_MANAGED_ENV_KEYS
* fix(install): preserve config secret refs in launchd env
* fix(install): preserve secretref env render sources

---------

Co-authored-by: Ayaan Zaidi <[email protected]>
(cherry picked from commit e798655)
…tart, wiping Telegram bot tokens (openclaw#99124)

* Preserve LaunchAgent env-file SecretRefs

* fix gateway start repair env source preservation

* test(daemon): cover SecretRef ownership cleanup

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

* fix(daemon): preserve only active SecretRefs

Co-authored-by: 杨浩宇0668001029 <[email protected]>

* chore: defer service SecretRefs changelog

---------

Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: mushuiyu886 <[email protected]>
(cherry picked from commit 08852d2)
* fix(slack): fail closed when mention detection is unavailable

* fix(slack): coordinate app mention retry history

* fix(slack): reject user-token mention identity

* fix(slack): reject user-token mention identity

---------

Co-authored-by: OpenClaw Agent <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
(cherry picked from commit fe82346)
…pped (openclaw#100896)

* fix(discord): drain queued outbound deliveries after gateway reconnect (openclaw#56610)

Discord sends that failed while the gateway websocket was reconnecting
(close codes 1005/1006) stayed stuck in the outbound delivery queue and
were silently dropped. Classify sends that fail while the registered
gateway is disconnected as retryable, and drain pending discord queue
entries when the gateway reconnects, matching the WhatsApp/Telegram
reconnect drains.

* fix(discord): harden reconnect recovery

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

* refactor(discord): remove unsafe reconnect replay

* fix(discord): bound reconnect retry per request

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

* chore(changelog): leave reconnect fix to release flow

---------

Co-authored-by: Peter Steinberger <[email protected]>
(cherry picked from commit da0103f)
…guous errors (openclaw#103867)

* fix(discord): stop retrying non-idempotent sends on post-connect-ambiguous errors

Discord's outbound retry runner treated every transient transport error as
retryable, including ECONNRESET, ETIMEDOUT, AbortError, and the undici
headers/body/socket timeouts. Those errors can fire after Discord has already
received and created the message but before the client reads the response, so
replaying the non-idempotent createChannelMessage POST delivers the same
message twice while reporting success.

Add a pre-connect-only classifier (isRetryableDiscordPreConnectError) covering
errors that provably never reached Discord (DNS/connect refused/connect
timeout) plus rate-limit rejections, mirroring the Telegram send-path
carve-out. The retry runner now accepts a per-call nonIdempotent option; the
message-create and thread-create call sites opt in so ambiguous post-connect
errors surface to the caller instead of double-sending. Idempotent REST calls
(reactions, edits, DM-channel lookup, uploads) keep the broader transient set.

* fix(discord): retry nonce-enforced message creates

* fix(discord): scope create retries by endpoint

* fix(discord): stabilize sticker and poll create nonce across retries

* fix(discord): tighten create retry safety

* fix(discord): preserve nonce-safe retries

* fix(discord): scope nonce fields to message creates

* test(discord): cover nonce-safe direct sends

---------

Co-authored-by: Peter Steinberger <[email protected]>
(cherry picked from commit df883ab)
Behavior: a plugin before_agent_finalize hook that never resolves could previously freeze an agent run forever after a successful compaction retry, with no errors and no recovery from a gateway restart; this was the frozen-runner mechanism behind openclaw#84777. before_agent_finalize now has the same 15s default budget as sibling modifying hooks and fails open with the original final answer, converting the freeze into a bounded delay.

Surface: plugin hook runner defaults (src/plugins/hooks.ts), docs/plugins/hooks.md.

Refs openclaw#84777.

(cherry picked from commit b2baf79)
* fix(process): resolve Windows npm CLI shims directly

Co-authored-by: wendy-chsy <[email protected]>

* docs(changelog): note Windows CLI shim fix

* docs(process): explain Windows shim boundary

* chore: keep release changelog owner-only

* test(process): isolate Windows shim resolution

* fix(process): classify Windows forwarding shims safely

---------

Co-authored-by: wendy-chsy <[email protected]>
(cherry picked from commit 7b366e1)
convyusboy and others added 4 commits August 26, 2026 10:14
…nflicts)

# Conflicts:
#	extensions/diagnostics-prometheus/npm-shrinkwrap.json
#	extensions/diagnostics-prometheus/package.json
#	extensions/msteams/npm-shrinkwrap.json
#	extensions/msteams/package.json
#	extensions/slack/npm-shrinkwrap.json
#	extensions/slack/package.json
#	npm-shrinkwrap.json
#	package.json
…nflicts)

21 commits, 130 files (boon.25 through boon.31 plus their fixes). Most
conflicts were the usual package.json/npm-shrinkwrap.json version-string
pairs (kept 2026.6.34-boon.1); two required real investigation:

- extensions/browser/src/browser/cdp.helpers.ts: both sides independently
  added an identical safeDecodeURIComponent-style helper for CDP Basic-auth
  credential decoding under different names. Kept origin/boon's
  safeDecodeUriComponent (has the explanatory comment about literal "%"
  causing decodeURIComponent to throw) and removed the duplicate.

- src/agents/embedded-agent-runner/run/payloads.ts: origin/boon's ENG-18812
  commit refactored resolveToolErrorWarningPolicy's inline per-tool
  suppression branches (sessions_send, sessions_spawn/ENG-16868,
  middlewareError, mutating, ENG-16330 exec) out into a shared
  shouldSurfaceToolFailure() in tool-error-summary.ts, so the digest
  builder and the turn's single representative failure can never disagree
  about which failures are shown. Adopted that refactor -- but its
  ENG-16330 exec branch (`isExecLikeToolName && !includeDetails`) had never
  received the !hasUserFacingReply requirement this integration branch's
  own commit 56e59b5 added during the v2026.6.34 sync (boon's own
  history never went through that merge, so the refactor naturally carried
  forward the pre-fix version). Re-applied the fix inside
  shouldSurfaceToolFailure; confirmed by temporarily reverting it and
  observing payloads.errors.test.ts's read-only/no-reply regression test
  fail exactly as it did before commit 56e59b5 (buildEmbeddedRunPayloads
  returns [] instead of a visible warning), then restoring it.

- extensions/codex/src/app-server/event-projector.test.ts (auto-merged,
  not conflicted, but broken by the combination): 2 pre-existing assertions
  pinned the old explain-mode behavior of embedding raw command
  text/cwd in exec tool meta. origin/boon's ENG-18810
  (fix(nudges): stop leaking raw shell commands into customer progress
  copy) intentionally changed the generic branch to return the fixed
  "run command" string instead, and updated 2 sibling suites
  (tool-display.test.ts, agent-runner-cli-dispatch.test.ts) to match --
  this one file's tests were simply missed in that commit. Updated both
  assertions to the new intentional contract.

Regenerated docs/.generated/plugin-sdk-api-baseline.sha256 and the
plugin-sdk surface budgets (publicExports 10405, publicFunctionExports
5216) against the final merged tree rather than picking either side's
stale number.

Verified: pnpm tsgo:core:test + tsgo:extensions:test both clean; full
targeted test run across every touched surface (agents, embedded-agent-runner,
subagent-*, tool-display*, tool-error-summary, tool-failure-digest,
extensions/browser*, extensions/codex, extensions/sentry-monitor,
infra/crash-recovery-notice, infra/followup-*, infra/progress-nudge-runner*,
channels, plugin-sdk, skills/workshop, config/sessions, gateway,
sessions/input-provenance) -- 2900+ tests passing, 0 failures.
…nflicts)

5 feature/fix commits (boon.32, boon.33): confirm-before-act on ambiguous
requests (#175), unclosed content-block detection at stream finalization
(ENG-19233, #177), >384MB PDF handling (#178), macro-enabled Office document
delivery (#179), cron failure-destination recipient validation (#181).

All conflicts were the established package.json/npm-shrinkwrap.json
version-string pattern (kept 2026.6.34-boon.1), plus a new one this round:
origin/boon still pins fast-uri at 3.1.6 across pnpm-workspace.yaml,
pnpm-lock.yaml, and four npm-shrinkwrap.json files (root, acpx, lobster).
This integration branch already carries a deliberate 4.1.2 override from the
original 2026.6.34 sync (documented in the PR description's "Dependency /
security pins" section: the bump was needed because upstream's 6.34-era code
targets fast-uri's 4.x API, not because it's numerically newer) -- the same
"boon hasn't caught up to a pin this branch already needed" situation as the
`tar` override in that same section. Kept 4.1.2 everywhere.

Verified: pnpm tsgo:core:test + tsgo:extensions:test both clean. Targeted
tests across every touched surface (pdf-tool, web-media, mime, cron
delivery-target-validation + cron.validation, anthropic-transport-stream,
concise-interaction-overlay, embedded-agent-helpers, amazon-bedrock stream
runtime, anthropic prompt-overlay, document-extract) -- 303 passing, 0
failures. One unrelated pre-existing failure noted and left alone:
src/gateway/mcp-http.test.ts's "withdraws a closing runtime before drain
without fencing its successor" fails deterministically in this sandboxed
environment with a raw ECONNRESET on a real loopback TCP socket -- neither
mcp-http.ts nor its test file were touched by this merge, so this is an
environment/network-sandboxing artifact, not a regression from this change.
…onflicts)

Merges 45 commits from origin/boon (boon.34 through boon.45, tag bump
06c4eff) into the 6.34 integration branch. 213 initial conflicts,
~206 were mechanical version-string conflicts (package.json /
npm-shrinkwrap.json across root + bundled plugins, resolved to ours
since this branch's purpose is advancing past the 2026.6.11-boon.N
train). Non-trivial resolutions:

- src/agents/embedded-agent-runner/run/failover-policy.ts: kept our
  side's non-exclusion of "model_not_found" in
  shouldEscalateRetryLimit (upstream openclaw#97571, already tested on this
  branch since the original 6.34 sync) while adopting boon's new
  "edge_blocked" exclusion. Blindly taking boon's side here would have
  silently reverted the upstream fix; caught via
  failover-policy.test.ts failing 1/44 before the correction.

- src/config/sessions/session-accessor.ts: adopted boon's
  projectSessionEntryForPersistenceRevision call in
  createReplySessionInitializationRevision, replacing our own
  identity-field comparison workaround. Boon's own recent PR #205
  reintroduced real use of this projection, so the workaround is no
  longer needed.

- src/config/sessions/session-accessor.reply-init-concurrency.test.ts:
  kept our PID-suffixed temp-file naming in the child test script
  (avoids same-directory temp-path collisions across concurrent
  children); took boon's minor whitespace cleanup elsewhere.

- extensions/matrix/CHANGELOG.md: kept our 3 newest entries on top,
  followed by boon's full chain.

- scripts/plugin-sdk-surface-report.mjs: bumped publicExports budget
  10406 -> 10410 and publicFunctionExports 5216 -> 5217 to match
  actual measured surface after the merge (publicEntrypoints already
  324, unchanged).

- docs/.generated/*.sha256: regenerated via `pnpm run
  plugin-sdk:api:gen` and `pnpm run config:docs:gen` against the
  merged tree. Also had to `git rm --cached` 6 underlying .json/.jsonl
  data files that origin/boon tracks but our .gitignore (unchanged by
  this merge) explicitly excludes (docs/.generated/*.json,
  docs/.generated/*.jsonl) -- git's merge machinery adds a file from
  either parent on a clean non-conflicting add regardless of the
  other side's gitignore rules.

- pnpm-lock.yaml: merged clean with no conflict markers, but the
  auto-merge misplaced extensions/diagnostics-otel's @opentelemetry/*
  dependency block under the root "." importer instead of the
  extensions/diagnostics-otel importer. `pnpm install` (run as a
  side-effect of plugin-sdk:api:gen) correctly relocated it; confirmed
  root package.json has never declared these deps (neither current
  nor pre-merge HEAD) and extensions/diagnostics-otel/package.json
  declares exactly this set. Diff is a pure 33-line removal of the
  misplaced duplicate, kept.

Verified: tsgo:core:test and tsgo:extensions:test clean; broad
node scripts/run-vitest.mjs sweeps across all touched feature surfaces
(embedded-agent-runner, config/sessions, cron, plugin-sdk,
sentry-monitor, pdf-tool, media, subagents) all green.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@convyusboy
convyusboy requested a review from a team September 18, 2026 15:41
…ast-uri pin

CI on PR #140 caught two real regressions from the boon.34->45 merge
(a591cc5):

- checks-fast-contracts-plugins-a/b failed: the blanket `--ours` resolution
  used for ~206 pure version-string package.json/npm-shrinkwrap.json
  conflicts in that merge also silently dropped genuinely new content from
  root package.json that wasn't a version bump -- the `./plugin-sdk/
  gateway-activity-runtime` export (#202) and 11 `@opentelemetry/*` root
  dependencies plus the `!dist/extensions/diagnostics-otel/**` files
  exclusion removal (both from boon's `b78a1dd9da5`, "bundle diagnostics-otel
  by default"). Restored all three at our pinned OTel versions (0.220.0/
  2.9.0). This also means the earlier "pnpm-lock.yaml diagnostics-otel
  importer correction" documented in that merge commit was itself wrong --
  it deleted content that was actually correct; `pnpm install` restored it
  once package.json was fixed.
  extensions/diagnostics-otel/package.json now matches the bundled-by-default
  shape (private: true, no standalone install/release/clawhubSpec block,
  matching extensions/sentry-monitor's pattern) and its now-obsolete
  npm-shrinkwrap.json is removed, matching boon's own b78a1dd change.

- security-fast failed: our own deliberate fast-uri override (kept at 4.1.2
  during the boon.33 merge round, see ce336af) sits inside the
  GHSA-5jgf-p345-68v8/f65p-4m7j-42xc/fph4-wmhf-6fwf/jqff-g426-hqxp HIGH
  advisory range (>=4.0.0 <4.1.3). Bumped to 4.1.5 -- the newest 4.x release
  old enough to clear this repo's minimum-release-age install gate while
  staying on the 4.x line upstream's 6.34-era code targets. Regenerated
  root + extensions/acpx + extensions/lobster npm-shrinkwrap.json.

linux-docker and the 23 CodeQL "high" alerts on this PR are unrelated:
linux-docker smoke-tests the already-published openclaw@latest npm package's
install script against an unrelated Node/engines mismatch, and all 23 CodeQL
findings are pre-existing "cache poisoning via untrusted checkout" patterns
in 4 .github/workflows/.github/actions files this branch has never touched
(zero diff against ce336af) -- CodeQL's own note says this happens when
"the code changes were too large" for its baseline comparison.

Verified: pnpm-audit-prod (high) clean, all package/root npm-shrinkwrap.json
current, tsgo:core:test + tsgo:extensions:test clean, plugin-sdk-package-
contract-guardrails.test.ts + plugin-sdk-index.test.ts + extension-runtime-
dependencies.contract.test.ts + package-manifest.contract.test.ts +
diagnostics-otel/service.test.ts + pnpm-audit-prod.test.ts all passing.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 1212 files

Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.
Tip: instead of fixing issues one by one fix them all with cubic

Re-trigger cubic

Comment thread extensions/codex/provider-catalog.ts Resolved
Comment thread docs/reference/RELEASING.md Resolved
Comment thread docs/reference/prompt-caching.md Resolved
Comment thread docs/ci.md Resolved
- .agents/skills/release-openclaw-ci/SKILL.md: the pnpm ci:full-release
  example dispatches validation in getboon/openclaw but the companion
  release-ci-summary.mjs verifies evidence against openclaw/openclaw by
  default. Add OPENCLAW_RELEASE_REPO=getboon/openclaw to the example so
  pinned release proof checks the run this fork actually dispatched.

- extensions/openai/openai-chatgpt-provider.ts: Codex model-slug resolution
  used an exact match against OPENAI_CODEX_GPT_56_MODEL_IDS, so a supported
  suffix variant (e.g. gpt-5.6-sol-oai) returned no model at all. Switch
  resolveCodexForwardCompatModel and preferRuntimeResolvedModel to the
  existing matchesExactOrPrefix helper already used by isModernModelRef.

- extensions/codex/provider.ts: the "Codex app-server" onboarding auth choice
  ran before any live discovery could confirm GPT-5.6 access, but picked
  FALLBACK_CODEX_MODELS[0] (gpt-5.6-sol) as the default model unconditionally.
  An account without GPT-5.6 access would onboard straight into an
  unavailable default. Pin the onboarding default to gpt-5.5 (present in the
  same fallback catalog and not access-gated) instead of the newest model.

- extensions/googlechat/src/approval-card-actions.ts: approvalCardBindings
  (keyed by token) and manualApprovalFollowupSuppressions (keyed by
  approvalId) are independent maps with independent size caps. A plain
  pruneMapToMaxSize on the bindings map could evict a token whose suppression
  entry survived, leaving that approval unreachable via both the card (token
  now unknown) and manual /approve text (silently suppressed by the orphaned
  entry). Evict bindings one at a time and only drop the matching suppression
  when no other live binding still covers that approvalId.

Scope note: extensions/codex/media-understanding-provider.ts has the same
"pick FALLBACK_CODEX_MODELS[0] unconditionally" shape for its image-model
default, but wasn't part of this review's findings; left as a follow-up
rather than expanding scope here.

Verified: tsgo:core:test + tsgo:extensions:test clean; targeted vitest runs
for all 4 touched surfaces plus the full extensions/googlechat suite (181
tests) all green.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 existing issue remains and no new issues found across 7 files (changes from recent commits).

Requires human review: Auto-approval blocked because this review re-detected 1 unresolved issue already reported by Cubic.
Tip: Review your code locally with the cubic CLI to iterate faster.

Fix all with cubic | Re-trigger cubic

…arker

Follow-up to 0cc820c's approval-card eviction fix. That change made
pruneApprovalCardBindingsAndOrphanedSuppressions() also clear
approvalCardResolvingTokens for the evicted token, mirroring what the
existing expiry-pruning path does. That mirror was wrong: expiry is
time-based and long enough that a genuinely in-flight claim should never
still be resolving when a binding expires, but LRU eviction has no such
timing guarantee and can fire while claimGoogleChatApprovalCardBinding's
async gateway resolution for that exact token is still running.

If the same token later gets re-registered (the card resent) while the
original resolution is still in flight, clearing its resolving marker on
eviction let a second claim succeed concurrently with the first instead of
correctly reporting "in-flight" -- a double-claim race on the same approval.

Removed the extraneous clear; the resolving marker for an evicted-but-live
claim now only clears through its normal lifecycle (complete/release), which
is unaffected by binding eviction.

Verified: reverted the fix locally, confirmed the new regression test fails
exactly as described, restored it. extensions/googlechat suite (182 tests)
and tsgo:extensions:test both clean.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 2 files (changes from recent commits).

Tip: Review your code locally with the cubic CLI to iterate faster.

Fix all with cubic | Re-trigger cubic

convyusboy and others added 8 commits September 19, 2026 11:38
Follow-up nit on 042b624: condense the resolving-marker-preservation
comment to the repo's 1-3 line convention, keeping the invariant and its
race-prevention consequence.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
…c scope

extensions/sms/src/webhook.ts: the AccountSid check only fired when
msg.accountSid was truthy, so a signed payload that omits AccountSid
entirely skipped the mismatch check and got dispatched instead of
rejected with 403 -- the docs already promised this was enforced.
Require a non-empty matching AccountSid instead.

docs/channels/sms.md: the replay-cache-saturation 429+Retry-After
guarantee is scoped to requests that reach replay handling. Another
already-exhausted limit (invalid-request budget or dispatch rate
limit) can 429 a request first, before it ever reaches the replay
check, without a Retry-After header -- reworded to not overstate the
guarantee for that case.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
…s it

The 'Run Kova' step generated a Clawgrit report URL for the summary
whenever the token was configured, regardless of whether publish
actually runs. On a manual workflow_dispatch with publish_reports:
false, checkout and publication are correctly skipped, but the
summary link was still generated -- pointing at a report that will
never exist. Added a CLAWGRIT_PUBLISH_ENABLED env var mirroring the
publish steps' own condition and gated URL generation on it too.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
ShellExecutor.readCapped trimmed to the trailing maxBytes by raw byte
count, which can land mid multi-byte UTF-8 sequence. String(decoding:
as: UTF8.self) then turns the orphaned continuation byte(s) into
U+FFFD, corrupting the first retained character. Strip leading
continuation bytes (top two bits == 0b10) after each trim so decoding
always starts on a clean character boundary.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
client-fetch.ts's success-body cap (32 MiB) was originally sized for
the response/body endpoint's own 5M-character contract, but it applied
unconditionally to every fetchBrowserJson call -- including snapshot,
whose maxChars: 0 is documented to mean no character cap at the
producer. An otherwise-uncapped snapshot larger than 32 MiB still hard
failed at the transport, contradicting the contract callers were
promised. Threaded an optional maxResponseBytes override through
fetchBrowserJson/fetchHttpJson and have browserSnapshot pass Infinity
for it specifically when maxChars: 0 was requested, leaving the
default cap unchanged for every other call site.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
…scovery

Two layers were silently swallowing these into a generic error/null:

- chrome.ts's fetchChromeVersion caught every discovery failure
  (rate limit, policy block, or benign 'no version data') into null
  alike. Rethrow BrowserCdpEndpointBlockedError and rate-limit errors
  specifically instead of absorbing them.
- pw-session.ts's connectWithRetry then further replaced whatever
  getChromeWebSocketUrl threw with a generic 'no usable WebSocket URL'
  error, so even a rethrown rate-limit/policy-block error lost its
  identity. Rethrow those two cases directly, stop retrying on them
  (a policy block won't clear on retry, and retrying a rate limit
  worsens the 429), and rethrow the 400-status
  BrowserCdpEndpointBlockedError at the end instead of collapsing it
  into a redacted generic Error (safe here -- it's OpenClaw's own
  static-message error, not a raw dependency error that could leak a
  connection URL).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
…race

gateway-supervisor.ts had two related leaks/races around its
after-dispose late-error guard:

- seenMessages (per-emitter dedup set inside the guard) grew without
  bound if a disposed emitter kept emitting distinct late errors.
  Added a generic pruneSetToMaxSize helper (mirroring the existing
  pruneMapToMaxSize) to src/infra/map-size.ts, exported it via
  openclaw/plugin-sdk/collection-runtime, and capped the set at 200
  entries. Bumped the plugin-sdk surface budget numbers to match the
  new export.
- When a newer supervisor takes over an emitter before an older
  overlapping one disposes, the older one's delayed dispose() could
  still install the late-error guard, shadowing the newer supervisor's
  still-active handler and double-logging live errors as 'suppressed
  after dispose'. Added a per-emitter owner-token WeakMap so dispose()
  only installs the guard when it's still the current owner.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
…widen dynamic-tool grace

event-projector.ts: readMirroredSessionMessages() fed the before/
after-compaction hooks with the mirrored session read, which returns
[] on ENOENT -- correct for a brand-new session (no prior read yet),
but for an active run that has already mirrored real history, a
transient unreadable mirror mid-compaction silently presented as 'no
history' to the compaction hooks instead of a read failure. Cache the
last non-empty successful read on the projector instance and fall back
to it when a read comes back empty/failed, instead of regressing to []
for an active run.

dynamic-tool-execution.ts: the 30s outer-watchdog grace added on top
of a requested timeoutSeconds assumed setup latency was always well
under 30s. Traced through sessions_send's own setup path
(sessions-send-tool.ts) and confirmed it can chain multiple sequential
10s-timeout gateway RPCs (e.g. sessions.resolve -> sessions.create
fallback) before its timeoutSeconds wait even starts -- a worst case
of roughly 20s of setup alone. For a small requested timeoutSeconds,
that left too little margin before the outer watchdog fires ahead of
the tool's own structured timeout result. Widened the grace to 60s.
(Also checked sibling ../codex's own wait_agent handler -- Codex's
native multi-agent wait tool is a separate mechanism from OpenClaw's
sessions_send dynamic tool and isn't the source of this setup latency.)

Co-Authored-By: Claude Sonnet 5 <[email protected]>

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 23 files (changes from recent commits).

Tip: Review your code locally with the cubic CLI to iterate faster.

Fix all with cubic | Re-trigger cubic

Comment thread src/infra/map-size.test.ts Resolved
Comment thread src/plugin-sdk/collection-runtime.ts Resolved
convyusboy and others added 4 commits September 21, 2026 13:31
…able

Follow-up on bc3cde8: pruneSetToMaxSize is part of the
plugin-sdk/collection-runtime public subpath now, and the migration
table only listed pruneMapToMaxSize. Also updated the test file's
header comment to mention set pruning. Confirmed
docs/.generated/plugin-sdk-api-baseline.sha256 is already current
(pnpm plugin-sdk:api:check passes).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
- faq-first-run.md: qualified 'keep the model ref as openai/gpt-5.5'
  guidance as applying to existing/legacy configs -- fresh setups use
  openai/gpt-5.6-sol per the adjacent accordion, so the unqualified
  wording read as contradictory.
- RELEASING.md: the helper's actual default is reuse_evidence=true
  (scripts/full-release-validation-at-sha.mjs), not the false the doc
  claimed; reworded to state reuse stays enabled by default.
- prompt-caching.md: scoped the GPT-5.6 cacheWrite note to currently
  live-tested OpenAI models so it doesn't read as contradicting the
  nearby OpenAI live-expectations section.
- release-openclaw-plugin-testing/SKILL.md: fixed a ghx typo (undefined
  command) to gh, matching every other command in the file.
- testing-updates-plugins.md: added openclaw@alpha to the source=npm
  list to match the resolver script's actual accepted selectors and
  docs/ci.md's own list.
- feishu/secret-contract.ts: condensed a 7-line comment to 3 lines per
  this repo's comment-shape convention, keeping the invariant and its
  consequence.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
…clamped away

The 600s hard cap on Codex dynamic tool timeouts sat exactly at the
value timeoutSeconds + grace could reach, so a request near/at that
ceiling had its entire 60s grace window silently discarded by the same
clamp that's supposed to protect it -- the outer watchdog could fire
before the tool's own structured timeout result, right when a
max-length request needs the grace most. Raised
CODEX_DYNAMIC_TOOL_MAX_TIMEOUT_MS from 600s to 660s (600s + the grace)
so timeoutSeconds requests up to the old ceiling always keep their
full grace.

Added a regression test for timeoutSeconds: 600 confirming it resolves
to 660_000 instead of clamping back to 600_000; verified it fails
without the fix.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
…tch fails

appMentionDispatchedKeys is set optimistically right after an
app_mention's prepare succeeds, before its dispatch actually runs. A
same-ts "message" copy trusts that marker and suppresses its own
dropped-history record via shouldRecordDroppedHistory, deferring
entirely to the app_mention. If that app_mention's dispatch then fails
for good (immediately non-retryable, or after retries are exhausted),
nothing ever recorded the message: it silently vanishes from channel
history.

Traced prepareSlackMessage's PreparedSlackMessage return value and
found it already carries the resolved history target (turn.history:
{historyMap, historyKey, limit}) from the app_mention's own successful
prepare, so no routing logic needs duplicating. Added
recordDroppedHistoryForFailedAppMentionDispatch, called from the
outermost flush catch once retryEntries confirms no further retry is
coming, using an outer-scoped preparedForFailedDispatchFallback
(assigned inside the flush's own attempt scope, so it never leaks
across separate retry invocations of the debounced flush).

Verified this doesn't touch the CAS-conflict/marker-clearing logic a
prior incident was about: it only adds a new recording path on
definitive dispatch failure, never clears or reads those markers.

Added tests for both failure shapes (immediate non-retryable, and
retries-exhausted) confirming the compensating record lands; verified
both fail without the fix. Full extensions/slack suite (1399 tests)
and tsgo:extensions:test clean.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 4 files (changes from recent commits).

Tip: Review your code locally with the cubic CLI to iterate faster.

Fix all with cubic | Re-trigger cubic

convyusboy and others added 2 commits September 21, 2026 15:11
message-turn-guardrails.test.ts fails CI's build-artifacts job because
the fallback recorder imported the deprecated recordPendingHistoryEntryWithMedia
map helper directly instead of going through createChannelHistoryWindow.
Switch to the facade, and export RETRYABLE_FLUSH_RETRY_DELAY_MS so its
tests drive fake timers off the real production delay instead of a
hardcoded duplicate (cubic P3).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
…bump conflict)

Merges 3 commits from origin/boon (#233, #212, #229) into the 6.34
integration branch. Only pnpm-lock.yaml conflicted; package.json,
ui/package.json, and pnpm-workspace.yaml auto-merged clean and already
reflect boon's vitest 4.1.10 -> 4.1.11 bump. Resolved each lockfile
conflict hunk to boon's side (the newer vitest/@vitest/* version
strings and one transitive es-module-lexer bump); `pnpm install`
afterward made no further changes, confirming the resolution is
consistent.

Verified: tsgo:core clean; targeted vitest runs across the merged
surfaces (src/plugins/registry-lifecycle, plugin-registry, runtime,
host-hook-cleanup*, host-hook-scheduled-turns-diagnostics,
scheduled-turns.contract, extensions/browser-handoff/tool) all green.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@convyusboy

Copy link
Copy Markdown
Collaborator

Superseded by #250.

This branch fell behind boon (13 commits, plus the version target itself moved — extended-stable superseded 2026.6.34 before this landed). Rather than resolve this branch's own merge conflicts, #250 is a from-scratch redo starting from current boon, with the same "boon's patches win" policy and the same 29 real conflicts, each independently re-derived and re-verified against current code — not copied from here.

Your work here wasn't wasted: the ancestry-priming approach, the conflict-by-conflict reasoning documented in this PR's body, and the ABI-gate/rollout evidence all carried over directly into #250's resolution. Three additional bugs were also found and fixed during #250's validation pass that this PR didn't catch (a silent revert in diagnostics-otel/service.ts, a stale test assertion in failover-policy.test.ts, and the tar-override coupling this PR already flagged staying correctly resolved).

Closing this one in favor of #250.

@convyusboy convyusboy closed this Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.