84329 Commits
Author SHA1 Message Date
540ffaa49e fix(deps): clear fast-uri HIGH advisories with 4.1.4, ports upstream #136700 (#7)
security-fast went red on main right after the upstream sync: six fast-uri
advisories (four HIGH visible to pnpm audit) published after our sync point
b6306da1a9. Upstream fixed this in 4cedaa057a ("clear fast-uri and nodemailer
release gate advisories", #136700); this ports the part that applies to our
tree:

- pnpm-workspace.yaml override fast-uri 4.1.2 -> 4.1.4 (upstream's parent was
  already on 4.1.3, ours was not)
- the same minimumReleaseAgeExclude cooldown entry, with upstream's removal
  date (2026-09-09)
- lockfile regenerated with the pinned pnpm 12.0.0; the esbuild@0.28.1 entries
  drop out because the resolution pass collapses the duplicated esbuild onto
  0.28.2, already present

Not ported: the nodemailer scoped overrides (they target mailparser@3.9.15;
our tree has 3.9.16, and pnpm audit reports no nodemailer HIGH here) and the
vercel-cli release-gate lock refresh (release workflows only; not exercised by
this fork's CI). The next upstream sync brings both verbatim.

Verified: node scripts/pre-commit/pnpm-audit-prod.mjs --audit-level=high
-> "No high or higher advisories found for production dependencies."


Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-03 02:43:27 -07:00
G bea8e784ad Merge pull request #6 from bitbaum/sync/upstream-2026-09-02
chore(sync): merge upstream main (29k commits) — repairs the fork CI baseline, includes openai 7
2026-09-03 01:24:51 -07:00
Mao NakamotoandClaude Fable 5 9cd6d1da8c chore(sync): merge upstream/main (b6306da1a9), taking upstream's tree wholesale
The fork was 2 commits ahead and 29,161 commits (3 months) behind upstream.
Both fork commits are obsoleted by upstream itself:

- #1 (engines node >=20): upstream now declares >=22.22.3 <23 || >=24.15.0 <25 || >=25.9.0 — stricter and correct.
- #2 (@types/node 26 + CI action majors): upstream is on @types/node 26.2.0 and maintains its own workflow pins.

So this merge resolves everything in upstream's favor: the resulting tree is
byte-identical to upstream b6306da1a9 — the most
recent upstream main commit with a fully green upstream CI run. This repairs the
fork's red baseline lanes (build-artifacts, check-shrinkwrap,
checks-fast-bun-launcher, security-fast, check-docs) the way upstream keeps them
green, instead of patching lanes one by one against a 3-month-old tree.

The openai 6→7 bump this fork wanted (closed PR #5) is already included:
upstream ships openai 7.5.0.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn
2026-09-02 18:01:33 +02:00
405c2336af chore(deps): currency sweep — @types/node 26, CI actions to current majors (#2)
Fleet currency arc, Wave 1 (last repo). @types/node 25.9.1 -> ^26.4.0 and
the workflow actions below their current majors bumped (checkout/setup-node
v7-era, cache v6, github-script v9) across the workflow set.

Deliberately NOT bumped: openai stays 6.x — v7's only breaking change is a
Node >= 22 floor, and this gateway runs in production on the box's Node
20.20.2 until the fleet's runtime upgrade wave lands. Bumping now would
typecheck clean and crash live. typescript stays 6.0.3 (current blessed;
TS 7 is blocked fleet-wide by typescript-eslint).


Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-31 18:59:04 +02:00
GandClaude Opus 5 8cdfe0ff5d chore: declare node >=20, the version this actually runs on (#1)
Was: >=22.19.0. openclaw-gateway.service is running on the box's Node 20.20.2 —
there is no other Node installed. It works because nothing enforces engines,
which is exactly why the declaration should describe the machine.


Claude-Session: https://claude.ai/code/session_01UvjGNAS9CMfEGNW26tUR4P

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-29 09:06:21 +02:00
Peter Steinberger b6306da1a9 fix(web-fetch): honor cancellation before caching or returning provider results (#131585)
* fix(web-fetch): honor cancellation in the provider fallback

Pass the optional AbortSignal execution context through fetch providers and the Firecrawl adapter. Reject late provider results before wrapping or caching, recheck after asynchronous payload construction, and preserve cancellation through HTML fallback recovery.

* fix(web-fetch): finalize cancellation before caching results

Reject pre-aborted cache hits and preserve cancellation when a provider or guard cleanup fails after abort. Centralize direct and provider cache publication after the complete fetch lifecycle so cancellation during release cannot leave a successful entry.

Extend all four fallback cancellation cases with late provider failures, cover direct/provider pre-aborted cache hits and guard-release races, and document the completed cancellation boundary.

* fix(web-fetch): scope the post-cancellation guard to provider failures

The cancellation guard sat in runWebFetch's catch, so a fetch that rejected
*because of* the abort had its original error replaced by signal.reason. That
discarded the transport's own failure detail and changed an existing contract:
web-tools.fetch.test.ts asserts the tool surfaces the aborted fetch's error.

fetchWebPayload already rethrows the original error when the signal aborted, so
the outer guard only ever needed to cover the provider-fallback path, where a
late failure should surface the caller's abort reason rather than an error from
work the caller had already abandoned. Move it there and drop the outer catch.

* docs(web-fetch): state cancellation forwarding and error preservation accurately

Two wording corrections from deep review. The inline comment claimed an
abort-caused fetch rejection "already carries the caller's reason", which the
regression test deliberately shows is not always true; the code preserves the
right object regardless. The docs implied cancellation stops provider work,
when core only forwards the signal and rejects late results.
2026-08-28 21:06:18 -07:00
Peter Steinberger 36b8127c54 test(onepassword): reuse immutable fixtures and compile resolver once (#132336)
* test(onepassword): reuse immutable client interpreter fixture

* test(onepassword): compile resolver fixtures once per suite
2026-08-28 21:02:54 -07:00
Peter Steinberger 20997195bc fix(ui): Desktop does not follow the chat session machine (#132255)
* fix(ui): keep session desktops connected to their execution machine

* refactor(ui): remove obsolete desktop focus wrapper

* test(ui): cover session desktop authentication in side rails

* fix(ui): preserve the global desktop picker on chat routes

* fix(ui): follow session placement changes in desktop popouts

* test(ui): wait for desktop menu transitions to finish
2026-08-28 21:01:19 -07:00
Peter Steinberger 4008690cec docs: clarify targeted tests in changed checks (#132330) 2026-08-28 20:58:50 -07:00
Leon-SK668andPatrick Erichsen b5946cfcc1 fix(auto-reply): preserve channel context in command prompts (#130958)
* fix(auto-reply): preserve channel context in command prompts

* fix(auto-reply): honor channel threading adapters

* fix(auto-reply): keep provider ids out of action targets

* refactor(agents): share runtime prompt resolution

* test(agents): preserve absent runtime action targets

* test(telegram): prove command prompt channel context

* fix(qa): preserve typed Crabline thread targets

* fix(qa): retain logical Matrix room targets

* test(qa): use Telegram native export command

* test(qa): authorize Telegram export operator

* fix(qa): preserve versioned targets through actions

* test(qa): expect versioned group thread target

* fix(qa): preserve typed Matrix targets

---------

Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>
2026-08-28 20:53:45 -07:00
openclaw-mantis[bot]andgithub-actions[bot] 270c0b3c09 chore(i18n): refresh native locales (#132302)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-29 03:51:00 +00:00
Peter Steinberger bff882d715 refactor(test): share CI checkout fixture lifecycle (#132308) 2026-08-28 20:50:28 -07:00
Peter Steinberger 56c2083fbd fix(native): keep TLS tests out of operator storage (#132119)
* fix(native): keep TLS tests out of operator storage

* fix(macos): close live native test storage escapes

Keep dashboard probes on their owning dependency, make preview Talk projections non-live, and restrict menu and WebChat test work to owned resources. Preserve normal TLS and recovery behavior; remove obsolete test mirrors and shared-connection fallbacks.
2026-08-28 20:45:51 -07:00
Vincent Koc 4e9c622eab fix(release): prove landed FRV controller commits (#132289) 2026-08-29 11:44:31 +08:00
Peter Steinberger 7761b3ebef test(imap): shorten protocol fixture reconnect backoff (#132316) 2026-08-28 20:43:19 -07:00
Peter Steinberger 7ed11a4054 fix(plugin-sdk): registration leaves private declaration aliases stale (#132311) 2026-08-28 20:40:28 -07:00
Vincent Koc 048eb11252 fix(doctor): renew compatibility review dates (#132313) 2026-08-29 11:39:18 +08:00
Peter Steinberger 133a189ffa fix(discord): close REST fixture connections before later tests (#132315) 2026-08-28 20:36:57 -07:00
Peter Steinberger ef18511a0a perf(ci): pay the gateway pretest build once, not on every stripe
`agentic-gateway-core` is striped by file, and two of its files --
`gateway-active-memory` and `gateway-concurrent-streams` -- are registered in
`runtimeConsumers`, so any stripe holding one inherits `pretestBuildMode` and
runs `pnpm build:ci-artifacts` before its tests. Striping spread them, so every
gateway-core job paid that build.

Measured on run 33215955822, `checks-node-compact-large-6` spent 275s building
to run 118.2s of tests, and the three gateway-core jobs were the three slowest
in CI at 512s, 436s and 368s against a 9:30 wall.

Pull those files into one `agentic-gateway-core-runtime` shard, derived from
`runtimeConsumers` rather than hardcoded so the two lists cannot drift. The
ordinary stripes lose their build entirely; exactly one job builds, on both the
blacksmith and hybrid profiles.

Weight that shard at 145s and mark it exclusive so the packer neither stacks
partners onto the one job paying the build nor stripes it in two above the 150s
`COMPACT_GITHUB_MAX_PREDICTED_SECONDS` threshold, which would restore the
duplicate build this change removes.

Guards move with the plan: the gateway expectation now asserts the invariant
directly -- no stripe carries a build mode, exactly one sibling shard does --
and the stripe-coverage check spans the stripes plus that shard, so a dropped
file still fails it (it caught 552 against 554 while this was being written).
2026-08-28 20:36:10 -07:00
Peter Steinberger 45a1e3c8b8 fix(test): release acquired state when wrapper setup fails (#132301) 2026-08-28 20:32:29 -07:00
Vincent Koc b41a06f220 fix(release): ignore skipped jobs in attempt evidence (#132304) 2026-08-29 11:31:36 +08:00
Peter Steinberger 826c1660d5 test(discord): initialize component suites independently of order (#132307) 2026-08-28 20:30:03 -07:00
Peter Steinberger 9b0f70a81a fix(crabbox): show mapped cloud machine choices (#132299)
Restore machine choices from the canonical mapped class catalog, including Machine0, while retaining unknown resources and unmapped-provider handling. Fixes #132291.
2026-08-28 20:27:44 -07:00
openclaw-mantis[bot]andgithub-actions[bot] 9e2168d9cf chore(ui): refresh control ui locales (#132297)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-29 03:26:11 +00:00
Peter Steinberger 30772d5061 fix(sessions): preserve context and lifecycle when forking chats (#132227)
* fix(sessions): preserve fork lifecycle ownership and context

Preserve incognito storage, revalidate message-cut authority at commit, and keep late UI fork results scoped to their presentation. Carry prepared child identity and actual context through subagent cleanup and receipts. Verify native source cuts with canonical projection and preserve supervision connection and cleanup ownership. Document the separate canonical-descendant initialization limitation.

* refactor(agents): remove unused subagent prompt task input

* test(codex): validate native fork fixture request shapes

* fix(codex): avoid inherited labels in native session forks

* fix(test): align fork prompt fixtures and session type imports

* refactor(agents): reuse subagent attachment result type
2026-08-28 20:21:57 -07:00
PollyBot13andAyaan Zaidi 7e2111e46a fix(gateway): preserve active turns across event-loop stalls (#131966)
Prevent timer-only Gateway stalls from restarting channel connections while replies or agent startup work remains active. Recovery now closes admission, defers reconnect until the canonical active-work inventory is idle, and retries only incomplete account handoffs.

Co-authored-by: PollyBot13 <pollybot13@gmail.com>
Co-authored-by: Ayaan Zaidi <hi@obviy.us>
2026-08-29 08:50:06 +05:30
Josh LehmanandPeter Steinberger 7494f22035 fix(openshell): allow managed host gateway ranges in E2E (#130465)
* test(openshell): match resolved curl policy path

* test(openshell): allow managed host gateway ranges

* test(openshell): document upstream gateway fixture ranges

* test(openshell): await durable fixture cleanup

Observe durable sandbox absence before workspace deletion, preserve primary and
cleanup failures, and always restore the local environment. Retain main's FIFO
and Unix socket coverage and close the owned socket during local teardown.

* test(openshell): preserve explicit host policy override

Retain the shipped trimmed address and single /32 replacement policy while using upstream gateway ranges by default. Keep the broken automatic Docker probe removed, and exercise the actual policy builder for default, blank, IPv4, and existing IPv6 inputs.

* test(openshell): synchronize cleanup deadline at command boundary

* test: observe readiness before polling deadlines

Keep file and PID readiness observable after a delayed worker wake. Preserve timeout budgets and add bounded compiler-startup diagnostics. The deterministic helper regression is proven; the earlier spawn-timeout cause remains unknown.

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-08-28 20:19:48 -07:00
Peter Steinberger 116425e9b3 fix(macos): allow dragging the OpenClaw panel header (#132288) 2026-08-28 20:16:02 -07:00
Vincent Koc 660b2f40dd fix(onboard): keep non-interactive setup manifest-free (#132298)
Remove the accidental workspace manifest snapshot handoff from non-interactive custom provider setup. That path accepts no alias, so it should retain the static default policy.
2026-08-29 11:14:25 +08:00
Peter Steinberger 383a293b32 revert(ui): keep queued follow-ups attached to the composer (#132294)
Reverts #131909 (b0cb107c82) per operator product decision after live review — queued messages remain composer-attached; the send-dispatch fix (#131958) is unaffected.
2026-08-28 20:05:12 -07:00
Peter Steinberger 19640ebf00 fix(codex): honor thinking off on supported Platform routes (#132276)
* fix(codex): honor thinking off on Platform routes

Keep reasoning disablement owned by the selected physical model route while
preserving native enabled effort tiers. Supported Platform turns and side
questions now send explicit none; subscription defaults and supervised native
settings remain unchanged.

Closes #132253

* test(codex): load route fixture through public plugin surface

* test(codex): register reasoning regression and synchronize turn startup
2026-08-28 20:04:52 -07:00
Vincent Koc 6bfaa051bd fix(release): preserve canonical candidate requests (#132293) 2026-08-29 11:04:22 +08:00
Peter SteinbergerandVincent Koc 31baa67f98 fix(ci): avoid unnecessary release verification delays (#132271)
* fix(ci): avoid unnecessary release verification delays

* test(ci): align release phase guard with coverage identity

* fix(ci): canonicalize minimum release coverage lock

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-08-29 11:01:15 +08:00
Peter Steinberger 1879e4ea6b chore: block restricted literals in local commits (#132223)
* chore: block restricted literals in local commits

* fix: fully redact overlapping private literals
2026-08-28 20:00:36 -07:00
Ayaan GazaliandPeter Steinberger 3b3372bd76 fix(agents): honor account-scoped history limits instead of silently ignoring them (#119326)
* fix(history): preserve routed limits and provider checkpoint continuity

Honor admitted account and peer policy, retain complete bounded provider checkpoints across short history windows, and recover unsupported replay from durable conversation history.

Co-authored-by: ayaangazali <ayaangazali.work@gmail.com>

* test(history): preserve the JSON recovery serialization assertion

* test(history): assert context-engine admission and snapshot behavior

* fix(ai): preserve SDK compaction response lifetime

Bound compaction response bytes before SDK parsing so request deadlines, body retries, and typed cancellation retain their canonical owner.

Co-authored-by: ayaangazali <ayaangazali.work@gmail.com>

* refactor(ai): simplify compaction test lifecycle and Azure URL normalization

Co-authored-by: ayaangazali <ayaangazali.work@gmail.com>

* test(ai): use the shared deferred helper for compact HTTP checks

Co-authored-by: ayaangazali <ayaangazali.work@gmail.com>

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
Co-authored-by: ayaangazali <ayaangazali.work@gmail.com>
2026-08-28 19:58:28 -07:00
Peter Steinberger 5d8ef653cd fix(daemon): explain unsafe service publication failures (#132279)
* fix(daemon): explain service publication authority failures

Replace free-form definition mutation details with typed, redacted reasons
and shared recovery guidance for install and start/restart repair. Keep all
ownership checks and stable update-recovery denial prefixes unchanged.

Cover unsafe directory failure and permission-repair recovery without
config or service publication before denial or SecretRef bypass afterward.

Fixes #132278.

* test(daemon): assert typed system ownership diagnostics
2026-08-28 19:48:23 -07:00
Josh Lehman cce893e900 fix(ui): show Codex node approvals in the controlling chat (#131829)
* fix(ui): show node approvals in controlling session

* fix(ci): align approval projection contracts

* test(ui): remove flaky dropdown event wait

* perf(ui): defer chat route rendering

* fix(ui): rebind approvals on agent switch

* fix(ui): retain projected approval errors
2026-08-28 19:46:16 -07:00
Peter Steinberger 13c11b47a4 fix(presence): keep colliding profiles and raw viewers separate (#132250)
* fix(presence): keep colliding profile and raw viewers separate

Use recorded identity namespaces for ephemeral presence grouping, viewer
exclusion, activity cards, and typing counts. Keep timing facts owned by
each connection so later profile qualification cannot leak activity across
identities, and preserve current self identity over stale hello snapshots.

Fixes #132247. This live-presence repair is separate from the merged
transcript-provenance repair in #132038; persistence and authorization
remain unchanged.

* test(presence): qualify header and activity profile fixtures
2026-08-28 19:45:11 -07:00
Vincent Koc eb113b2e50 fix(installer): pin NodeSource RPM repository (#132286)
(cherry picked from commit b90cdbddbb82b04aa1ec787089ff219bb276d4af)
2026-08-29 10:42:04 +08:00
Safzan PiraniandAyaan Zaidi 28f5f63ea4 fix(agents): preserve prompt-cache prefix under aggregate truncation (#132017)
Keep already-sent tool-result projections immutable so later aggregate pressure trims only unsent output and preserves provider cache reuse.

Co-authored-by: Safzan Pirani <safzanpirani@gmail.com>
Co-authored-by: Ayaan Zaidi <hi@obviy.us>
2026-08-29 08:11:23 +05:30
Peter Steinberger e7a7127c91 fix(maintainers): avoid redundant main fetches during PR prep (#132274)
* fix(maintainers): avoid redundant main fetches during PR prep

* test(maintainers): supply main snapshots in changelog fixtures
2026-08-28 19:38:04 -07:00
Jason (Json) be54020f1d fix(ios): refine chat actions menu (#132045) 2026-08-28 20:35:56 -06:00
Vincent KocandVyctor H. Brzezowski 9f7105d296 fix(onboard): preserve manifest-equivalent alias validation (#129590)
Keep custom alias validation on one prepared workspace-scoped manifest policy while comparing configured model identities in both directions.

Related: #129468

Co-authored-by: Vyctor H. Brzezowski <krzyszchweski@gmail.com>
2026-08-29 10:34:50 +08:00
Peter Steinberger ac0ae1c824 fix(brave): bind preflight to request cancellation (#132097)
Brave search cancellation and timeouts now include preliminary endpoint
DNS validation in both web and llm-context modes. One request deadline
covers validation, transport, body reading, and cache publication while
preserving endpoint trust policy.

Move interruptible DNS waiting into the shared resolver and remove the
duplicate guarded-fetch race. Keep late OS lookup settlements observed.

Fixes #132095
2026-08-28 19:34:15 -07:00
Jason (Json) 0f054bb3df fix(ui): show final replies after interim output (#132197)
* fix(ui): recover missing final replies after interim output

* fix(ui): keep polling past final-phase partials
2026-08-28 20:26:49 -06:00
Ayaan Zaidi cff996e413 feat(qa): add Convex-leased Telegram userbot proof (#131715)
Replace Telegram Desktop and Mantis proof plumbing with a repository-owned Telegram Test Server skill and ten Convex-leased headless user sessions. Workers keep full harness freedom while the broker owns only exclusive lease lifecycle.

Co-authored-by: Ayaan Zaidi <hi@obviy.us>
2026-08-29 07:56:30 +05:30
cde3458c84 fix: gateway kill leaves Codex tool processes running (#107721)
* fix(codex): stop native terminals on run cancellation

Codex turn interruption deliberately leaves native background terminals
running. Wait for the matching turn to stop, terminate that thread's
terminals through the app-server API, and join cleanup before releasing
the attempt. Surface cleanup failures without retiring shared peer threads.

Keep existing host process scopes and background gateway jobs unchanged.
Verified with 412 focused tests and an authenticated live Codex run with a
concurrent peer thread on the same app-server.

Co-authored-by: Ming Yoo <mingyouagi@qq.com>

* fix(codex): freeze cancellation before attempt teardown

Close cancellation admission synchronously when cleanup takes ownership,
including when finalization throws before freezing its terminal outcome.
This keeps late aborts from replacing the joined cleanup promise during
resource release or masking the original finalization error.

Move the existing terminal freeze instead of adding another lifecycle flag.
Verified the regression fails before the change; all 413 Codex tests pass.

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
Co-authored-by: Ming Yoo <mingyouagi@qq.com>
2026-08-28 19:25:39 -07:00
EdenandPatrick Erichsen 0b0a64e7e3 fix(line): a permanently refused message is replayed instead of settling (#131285)
* fix(line): report a provider rejection as a definitive non-dispatch

* fix(line): keep a retried push ambiguous unless LINE refused every attempt

* fix(line): preserve retryable and ambiguous rejection outcomes

* fix(line): retain retry ambiguity through wrappers

* fix(line): retain partial delivery evidence

* test(line): split outbound delivery outcome coverage

* test(line): align delivery recovery import order

---------

Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>
2026-08-28 19:23:02 -07:00
Peter Steinberger 59dad71c41 refactor(gateway): remove unreachable health collection state (#132272) 2026-08-28 19:19:48 -07:00
Peter Steinberger a9f802f773 fix(test): roll back failed test-home acquisition (#132257) 2026-08-28 19:16:04 -07:00