* 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.
* 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
Restore machine choices from the canonical mapped class catalog, including Machine0, while retaining unknown resources and unmapped-provider handling. Fixes#132291.
* 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
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>
* 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>
Reverts #131909 (b0cb107c82) per operator product decision after live review — queued messages remain composer-attached; the send-dispatch fix (#131958) is unaffected.
* 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
* 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
* 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
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
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>
* 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>
Compare canonical local session roots with the selected agent workspace so macOS path aliases and internal symlinks work while outward links remain confined. Preserve remote-node and worktree policy, fail closed on unavailable paths, and cover authenticated admin/writer creation plus deferred projects.
Allow bounded media and completion calls to resolve hidden native catalog entries when a model is explicitly selected. Automatic picker selection remains unchanged.
Fixes#132187.
* docs(line): document inbound durability, retry policy, and dead-letter recovery
* docs(line): clarify non-retryable failures skip retries at any attempt
* docs(line): note the durable-acceptance marker and polish the durability section
* docs(line): correct dead-owner claim recovery timing
* docs(line): make dead-letter recovery reason-specific
* docs(line): bound lane independence by concurrency and cite LINE redelivery
The per-conversation ordering bullet claimed a retrying event never delays
other chats. Lanes are independent, but the drain stops claiming once eight
deliveries are active, so a ninth lane waits for a slot. State the cap as the
bound on cross-chat progress.
The webhook redelivery paragraph asserted the LINE Console prerequisite with
no source. Link the Messaging API documentation, name the second condition
(no 2xx from the bot server), and record that LINE does not guarantee
redelivery, does not disclose retry count or interval, and may resend out of
order or more than once.
* docs(line): describe the stall watchdog as retrying, not dead-lettering
* docs(line): scope the stall watchdog to the pre-adoption window
* docs(line): qualify duplicate suppression by the record cap, not only the TTL
* docs(line): account for deferred ingress heartbeats
* docs(line): fix handler-timeout grammar
* docs(line): match admission-owned retention semantics
* docs(line): correct webhook verification method
---------
Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>
* feat(ui): add Fast Mode to new sessions
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
Worked on by:
- @Takhoffman
* fix(ui): preserve new-session speed through recovery
Revalidate Fast Mode after reset drains admitted work, before placement retirement and hooks. Preserve explicit speed selections in remote and incognito recovery, remove the unused speed-control opt-out, and exercise cloud create and retry behavior in browser tests.
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
* test(ui): wait for shared shell before palette shortcut
---------
Co-authored-by: roboclaw-bot <309084314+roboclaw-bot@users.noreply.github.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
* fix(browser): follow session profile in the browser panel
Preserve executed host/node/profile identity through browser results, previews, and panel operations. Explain redacted tab URLs without relaxing navigation guards, and keep compound node actions on their executed browser.
Fixes#132141.
* test: keep browser proof within CI file and shard limits
Move tool-result projection coverage into its own suite without changing assertions. Split UI pages and E2E typecheck programs while retaining exact once-only coverage and the existing 720-root cap.
Required to validate #132159 against current main.
* refactor(ui): reuse chat render options and stabilize queue proof
Preserve composer adaptations and stream status ownership while removing duplicated prop forwarding. Deliver the second native queue-removal activation to the surviving row explicitly, retaining exact removal and reconnect-drain assertions across layout changes.
Clears merged-tree CI failures for #132159 without suppressions or raised limits.
* fix(ui): require browser tool origin for route previews
* fix(ui): prioritize explicit browser card selection
Gateway automation (cron) approval cards are delivered only to clients
that pass canDeliverApprovals for exec: Control UI, the
macOS/iOS/Android apps, and clients with the approvals/exec-approvals
cap. The TUI qualifies only for plugin approvals, yet the headless
denial copy, doctor exec-policy hint, the #128031 delivery comment, and
docs/tools/exec-approvals.md all told operators the TUI (or 'terminal
UI') could answer these approvals - a dead-end verified live.
The denial message now branches: gateway cron denials point at
card-capable clients and the Allow Always standing grant; other
headless runs keep the interactive-rerun advice, where the TUI's
/approve chat flow genuinely works.
* fix(plugins): keep development runs on checkout plugins
* test(node-host): contain the bundled Linux plugin fixture
* fix(dev): preserve checkout selector through tmux watch
Restore blank-first page creation through the Chrome extension relay without opening access to unrelated blanks. Keep creation provenance and guarded rollback in the tab-access owner, separate document freshness from access revocation, and retain target identity across debugger detach so MCP can close its page.
Use the canonical telemetry status to share one request projection between text and JSON. Preserve sender and consent policy, and cover automation and ordinary homes explicitly.
Refs #132211.
* feat(gateway): auto-apply safe doctor config migrations at startup
Gateway startup now runs the same deterministic, prompt-free legacy
config-key migrations as "openclaw doctor --fix" when an otherwise
invalid single-file config can be fully migrated, instead of refusing
readiness with a doctor hint. The write happens under the existing
startup migration lease, after state migrations consume retired
locators, only when the complete result validates including plugins,
and keeps the previous config in the .bak ring. Configs using
$include, Nix mode, newer-version configs, update-in-progress runs,
and configs that stay invalid keep the current fail-closed refusal.
This replaces the narrow two-key stable-upgrade repair with the full
migration set (which subsumes it), so headless service gateways just
work across upgrades instead of stopping on retired config keys.
* fix(doctor): keep startup repair preview off the shared state database
resolveStartupConfigSnapshot serves gateway pre-bootstrap selection and
backup discovery, which run before state-database admission. The full
planner resolves plugin doctor contracts through the installed-plugin
registry, which opens the shared SQLite store — a broken store (or
backup's pre-validation guarantee) must not break those callers. The
preview tier now applies only state-free migrations with raw validation;
the preflight committer and canonical-write matcher stay authoritative.
* test(doctor): avoid shadowing the path module in repair fixtures
* test(doctor): pin checkpoint build provenance for unbuilt test environments
CI unit shards and unbuilt checkouts have no dist/build-info.json, so the
checkpoint layer fails open by design and the startup-repair checkpoint
assertions could never hold there. Wrap the real module with a pinned
build identity so recording and needs-checks stay meaningful.
* fix(doctor): reach plugin-owned migrations from the startup trust check
The pre-bootstrap trust check admitted only state-free core migrations,
so a config whose sole repair belongs to a plugin doctor contract was
refused before the plugin-aware preflight could migrate it. The resolver
now runs the full planner first and falls back to the state-free preview
only when the installed-plugin registry store is unreachable, keeping
backup discovery and broken-store startups fail-closed.
* fix(browser): unblock compiled native-host bootstrap
Load canonical config and pairing only after native-host validation. Keep
pure Browser URL and port helpers out of transport and mixed runtime
barrels, register the existing private CDP SDK export, and remove obsolete
bridge exports.
Run the extracted compiled-host integration case in the existing artifact
CI job with exact report validation. Preserve the custom installation
context, native framing, private Node trampoline, and 10-second deadline.
* fix(build): map private Browser SDK declarations
Complete browser-cdp registration in the shared plugin package-boundary
paths and XAI's matching override. Keep the SDK JavaScript-only in the
published package while using package-built declarations inside the repo.
The unchanged package-boundary contract reproduced the missing mapping
before this fix. No native-host runtime, fixture, assertion, or deadline
changes are included.
* build: migrate tooling and source installs to pnpm 12
Pin the verified native toolchain without changing application dependency
versions. Preserve the existing release-age policy explicitly and separate
package-manager lock metadata from the application dependency graph.
Use exact checkout pins for bootstrap and rollback, approve only the native
pnpm installer where npm requires it, and retain global install ownership
without equating the CLI major to the storage layout. Verify the Docker
runtime toolchain offline as its non-root user.
Remove duplicate bootstrap paths and obsolete prune input, update native
CLI flags and regression fixtures, and preserve UTF-8 in macOS Bash
installer NDJSON output.
* fix(build): isolate production dependency installs for pnpm 12
Build production dependencies from the same frozen manifest inputs instead
of pruning the inherited development tree. pnpm 12's native hoisted
importer cannot rename lower-layer OverlayFS directories during pruning.
Preserve native addon outputs, workspace builds, and offline non-root
Corepack use while deleting the obsolete production-store seeder.
Exercise runtime assembly and explicitly consent to the local agent-plugin
E2E fixture under the current plugin capability contract.
Validated full Matrix image and offline non-root runtime, focused Docker
regressions, full checks with test types and architecture, docs, real
agent-plugin gateway E2E, and isolated Codex autoreview.
* test: align package smoke with pnpm 12 global installs
* test: follow native pnpm artifact approval in distribution guard
* test: modernize pnpm fixtures for v12
* test: align rebased update fixtures with pnpm 12
* test: retain sanitized upgrade restart diagnostics
* test: expose CI navigation failures and register diagnostics
* test: retain post-core outcomes and plugin artifact identity
* chore(tooling): group upgrade diagnostic entrypoints
* fix(update): support native pnpm global installs and source links
Qualify local source and archive specs, carry verified global ownership through pnpm configuration, and verify intentional checkout links with shared runtime-readiness checks. Preserve strict packaged-install verification and manager ownership safeguards.
Verified the production updater with pnpm 11.22 and 12 using default and custom roots, source links, and tarball updates.
* test: preserve survivor diagnostics after service sealing
Promote incomplete exit-zero runs before failure capture and exercise the sealed-service manager fixture without inventing successful child exits.
* fix(update): preserve legacy pnpm global ownership
Carry the verified root and bin through both pnpm and npm configuration dialects after original-environment probes. Real pnpm 10 custom-root updates and pnpm 11/12 source and tarball matrices pass without redirecting the caller or weakening ownership checks.
* test(update): verify wizard consent through checkout handoff
Use the prepared checkout and fresh-process finalization boundary introduced by the updater repair. Preserve explicit consent forwarding before and after the wizard subcommand without assuming plugin callbacks run in the old process.
* refactor(update): validate checkout build metadata records
Use the canonical record coercer instead of carrying an unchecked assertion into the shared runtime verifier. Remove the now-unused grandfathered assertion entry; no allowance is added.
* docs(sandbox): document standalone common-image inputs
* test(packaging): account for required native prebuilds
Align installer and release size budgets at 235 MiB for the required native payload added on main. Keep both loader layouts, upstream binaries, explicit overrides, and missing-data rejection intact. Exercise actual defaults and the one-byte boundary. Retain bounded stderr diagnostics for the intermittent Bun signal test without claiming a production signal fix.
* test: align refreshed installer fixtures with pnpm 12
* fix(test): share Bun smoke force-kill ownership
Record the successful force-kill once across the timer and post-close drain. Native Darwin traces reproduced both duplicate-signal orders; genuine permission failures and uncleared groups still fail without extending deadlines.
Verify zombie-only process groups through the existing checked census while keeping live signal denials and uncertain cleanup fail-closed. Preserve the original cleanup budget and missing-group fast path.\n\nDrive fixture timeouts from tree readiness, observe active POSIX process state, and cover retained zombies plus live signal denial without a production test seam.\n\nRefs: https://github.com/openclaw/openclaw/issues/132184\nRefs: https://github.com/openclaw/openclaw/issues/132194
* fix(exec): inherit configured host for per-call auto
* test(exec): cover auto host inheritance across preparation and dispatch
Clarify configured host inheritance in the exec schema and documentation. Preserve required sandbox isolation and explicit host policy in regression coverage.
Co-authored-by: Omar Shahine <10343873+omarshahine@users.noreply.github.com>
* docs(exec): keep host guidance within the schema prompt budget
---------
Co-authored-by: Omar Shahine <10343873+omarshahine@users.noreply.github.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
Carry the target agent identity through session creation, patching, title preparation, and keyed-session model comparisons. Preserve explicit-empty policy behavior, agent aliases, and the admin gate for actual model changes.
* fix: keep ACP thinking aligned after model switches
Carry published ACPX accepted control snapshots through the plugin boundary and reconcile selected thinking in the session owner. Preserve selectable pending thinking on automatic replay, persist accepted changes before later failures, and show effective thinking in command replies. Keep shipped optional-control replay and third-party void backends unchanged.
* fix: give ACP replies one completion owner
* fix: tighten ACP completion type boundaries
* fix(ui): defer native chrome and recover rendered lazy surfaces
* refactor(ui): separate native startup recovery tests
* fix: preserve explicit reply completion ownership
* test: consolidate ACP completion regression fixtures
* chore(ui): refresh boot manifest after main integration
* test: distinguish inbound ACP reply options
* test(ui): target retargeted queue clicks deterministically
* fix(ci): split UI test type graphs within the root budget
* fix(gateway): recover Apple node invocations after reconnect
Report an explicit preexecution-only readiness rejection from the shared
Apple lifecycle owner and recover it through one policy-narrowed Gateway
transport path. Preserve authority, progress, cancellation and the original
deadline across attempts without replaying plugin approval or terminal input.
Co-authored-by: TheAngryPit <16145902+TheAngryPit@users.noreply.github.com>
* fix(gateway): preserve unary progress semantics during recovery
Record authenticated progress in the registry without creating a stream
consumer. Keep ignored acknowledgments and legacy cancellation behavior,
while preventing replay after ignored, ordered, or buffered progress.
Co-authored-by: TheAngryPit <16145902+TheAngryPit@users.noreply.github.com>
---------
Co-authored-by: Peter Steinberger <steipete@gmail.com>
Co-authored-by: TheAngryPit <16145902+TheAngryPit@users.noreply.github.com>
* fix(ci): finish watcher waits after successful reruns
* fix(ci): bound queued-alias evidence requests
* fix(ci): fence reconciled checks with current PR state
Refresh the PR rollup and attached run after bounded alias verification. Keep changed aliases and unknown outcomes blocking without regressing older-attempt supersession.