Commit Graph

64401 Commits

Author SHA1 Message Date
sunlit-deng
ae53570ea8 fix(browser): notify agent when click triggers download (#93307)
* fix(browser): drain download saves and use monotonic cursor for act response

- Add drainPendingDownloadSaves() to wait for in-flight saveAs before sampling
- Use monotonic downloadSeq cursor instead of bounded-list length
- Propagate downloads info in POST /act response for click/batch/evaluate

Fixes #93250

* fix(lint): add braces around single-line if returns

Fixes eslint(curly) failures in drainPendingDownloadSaves and
pickNewDownloads. PR #93307 required CI gate.

Ref: ClawSweeper P1 review finding

* fix(browser): scope act download metadata to action

* fix(browser): broadcast downloads to all active captures to prevent misattribution

When concurrent /act calls overlap on the same page, using
state.actionDownloadCaptures.at(-1) assigned downloads to the wrong
action's capture. Push managed save promises to all active captures
so the triggering action always receives its download metadata.

Also adds regression tests: broadcast-to-all-captures, sequential
capture isolation, and strengthen the dispose test to assert no
re-capture after disposal.

* fix(browser): prevent unhandled rejection when download capture action throws before drain

Move managedSave.catch() before the captures-branch check so the
rejection handler always runs, preventing an unhandled promise
rejection when the action throws before drain() is called. Simplify
the handler by removing the now-dead return + catch at the bottom.

* fix(browser): type downloads in BrowserActResponse, fix lint unused var

- Add optional downloads field to BrowserActResponse type contract so
  typed callers of browserAct() can consume the new payload without casts.
- Remove unused afterDispose variable in pw-session tests (lint fix).

* fix(test): correct post-dispose download assertion

capture.promises is not cleared by dispose(), so re-draining a disposed
capture still returns pre-dispose results. This is benign — callers
should drain before disposing. Update the test to assert the actual
behavior (still shows old results, new download not captured).

* test(browser): cover /act download metadata response

* refactor(browser): report action-owned downloads safely

* fix(browser): close action download ownership races

* test(browser): type action download capture mock

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-06 04:07:16 +01:00
Vincent Koc
0bd2a0b879 ci(sdk): refresh plugin api baseline hash 2026-07-06 05:02:28 +02:00
Gorkem Erdogan
39916560e4 improve(auto-reply): render chat history since last reply as per-message prose (#100366)
* fix(auto-reply): render chat history since last reply as per-message prose

The inbound chat-history block dumped batched history as a raw JSON array, which models read poorly compared to the chat-window block's per-message prose. Reuse the existing formatChatWindowMessage renderer for history entries so both blocks share one shape, keep the untrusted framing label, and keep media rendered as a bare content-type tag so local paths and URLs stay redacted. Teach the metadata stripper to consume the new prose block form.

* fix(auto-reply): preserve every media content type in chat-history prose

The prose chat-history renderer only forwarded the first attachment's
content type per history message, dropping the rest for entries with
multiple media items. Join all bounded content types instead, and
regenerate the prompt snapshot fixture this changes.

* test(qa-lab): accept prose pending history

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-06 03:59:29 +01:00
Peter Steinberger
2b48e98148 fix(android): preserve chat sends across reconnect recovery (#100551)
* fix(android): preserve chat recovery ownership

* fix(android): retry reconnect recovery on ticks

* chore(android): refresh native i18n inventory
2026-07-06 03:50:09 +01:00
Vincent Koc
75c8753a2c fix(ios): bound location permission wait 2026-07-06 04:36:10 +02:00
Peter Steinberger
fdc9aa82d7 feat(cron): declarative jobs with owner attribution and richer status (#100480)
Adds scope-local declaration-key convergence, immutable owner attribution, richer status projection, and delivery validation to canonical cron jobs.

Supersedes the #98727 routines registry approach; no parallel registry, RPC namespace, or CLI noun.
2026-07-06 03:35:26 +01:00
Peter Steinberger
7b9df9e187 docs(changelog): credit recent contributor fixes (#100562) 2026-07-06 03:34:06 +01:00
WhatsSkiLL
58bbf5a117 fix(android): polish gateway settings layout (#100363) 2026-07-05 22:31:21 -04:00
Peter Steinberger
d507ba0b0b docs(changelog): note Apple chat run recovery (#100561) 2026-07-06 03:28:33 +01:00
Peter Steinberger
443c582949 fix(ios): restore in-flight runs after reconnect (#100277)
* fix(ios): restore in-flight chat runs from gateway history

Restore active Apple chat ownership across reconnect, foreground, and sequence-gap recovery using the existing chat.history snapshot. Preserve agent/session scoping and Gateway user-turn identity across Codex and Copilot mirrors, including current offline-cache integration.

* fix(ios): restore in-flight chat runs from gateway history
2026-07-06 03:23:38 +01:00
NIO
19f5a4a0bb fix(tlon): bound urbit scry JSON response reads (#100376)
* fix(tlon): bound urbit scry JSON response reads

* fix(tlon): preserve bounded scry diagnostics

* refactor(tlon): tighten scry boundary proof

* docs(changelog): stabilize Tlon response entry

* docs(changelog): close out maintainer batch

* chore(changelog): defer batch closeout

---------

Co-authored-by: NIO <nocodet@mail.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-06 03:22:59 +01:00
Peter Steinberger
d704094b22 docs(changelog): add GitHub preview entry (#100555) 2026-07-06 03:22:11 +01:00
Andy Ye
9d9661e473 fix(ollama): fall back when native streams end early (#100482)
* Classify Ollama incomplete stream errors for fallback

* fix(ollama): own incomplete-stream failover classification

* test(ollama): pin incomplete-stream error contract

* docs(changelog): note Ollama fallback routing

Co-authored-by: Andy Ye <35905412+TurboTheTurtle@users.noreply.github.com>

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-06 03:12:49 +01:00
Peter Steinberger
ce2c0d1b92 perf(test): isolate gateway startup model imports 2026-07-05 22:12:16 -04:00
clawSean
d84aabf642 feat: add channel pairing request hook (#97733)
* feat: add channel pairing request hook

* fix(plugin-sdk): keep pairing hook types internal

* docs: regenerate docs map

* docs: regenerate docs map

* docs: regenerate docs map

* fix(plugin-sdk): keep pairing hook types internal

* fix(plugin-sdk): keep pairing hook types internal

* docs: refresh plugin hook docs

* docs: refresh plugin hook docs

* docs: refresh plugin hook docs

---------

Co-authored-by: clawSean <260045960+clawSean@users.noreply.github.com>
Co-authored-by: Omar Shahine <omarshahine@users.noreply.github.com>
2026-07-05 19:11:58 -07:00
Peter Steinberger
c064cae040 feat(ui): preview GitHub issues and pull requests on hover (#100434)
* feat(ui): add GitHub link hover cards

* chore(ui): sync GitHub hover card copy baseline

* docs(changelog): defer GitHub preview entry
2026-07-06 03:11:46 +01:00
Peter Steinberger
d2d5911c32 fix(ios): keep While Using selected after approval (#100512)
* fix(ios): preserve initial location permission selection

* chore: keep iOS location fix independent
2026-07-06 03:05:25 +01:00
Peter Steinberger
fccb8888f0 fix(gateway): advertise exec approval node commands (#100505)
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-07-06 03:04:44 +01:00
Peter Steinberger
d095f47553 docs(changelog): credit landed reliability fixes (#100545) 2026-07-06 02:58:14 +01:00
Peter Steinberger
55776c55fc fix(agents): skip tool prep for toolless models (#100536)
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-07-06 02:56:47 +01:00
mikasa
b6127ef0d8 fix(agents): prevent malformed HTML entities from breaking tool calls (#99564)
* Reject surrogate HTML entities in tool args

Co-Authored-By: Claude <noreply@anthropic.com>

* docs(changelog): note tool argument entity fix

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-06 02:56:11 +01:00
brokemac79
49ae7ec065 [codex] Fail closed pair slash command routing (#98262)
* fix: keep pair qr from widening gateway bind

* fix: honor plugin activation for slash reservations

* fix: authorize spaced slash commands

* fix: keep reserved commands out of manifest reservations

* fix: avoid manifest fail-closed for declined commands

* fix: gate manifest command fallback by auth

* fix: keep runtime command probe internal

* fix: scope spaced slash authorization

* fix: route spaced plugin slash commands

* docs: note spaced plugin command routing

* docs: note spaced plugin command routing

* docs: split command routing changelog follow-up

---------

Co-authored-by: brokemac79 <255583030+brokemac79@users.noreply.github.com>
Co-authored-by: Peter Steinberger <58493+steipete@users.noreply.github.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-06 02:55:58 +01:00
Peter Steinberger
e596e2850d fix(control-ui): keep the dashboard mounted with a reconnect banner on gateway drops (#100479)
* fix(control-ui): keep the dashboard mounted with a reconnect banner on gateway drops

Once a session is established, a dropped gateway WebSocket no longer
unmounts the dashboard into the login gate. The client's close handler
now reports willRetry (the same fact that drives its reconnect
scheduling), the gateway store derives a `reconnecting` snapshot state
from it (everConnected && willRetry), and the app shell stays mounted
with an amber "Gateway connection lost - reconnecting" banner plus a
Retry now action while the client retries with backoff. The login gate
is reserved for first connects, credential rejections, and manual gate
submissions; event-gap recovery also no longer flashes the gate.

createApplicationGateway moved from bootstrap.ts to gateway-store.ts
with an injectable client factory for direct behavior tests. Adds the
previously unstyled `.callout.warn` variant and a "Connection loss and
reconnect" docs section.

Fixes #100475

* chore(i18n): regenerate control-ui locale bundles for connection banner strings

* chore(control-ui): unbreak CI - add reconnecting to overlays snapshot fixture, regenerate docs map

* chore(i18n): re-sync locale metadata after rebase onto refreshed main locales

* chore(i18n): refresh raw-copy baseline after rebase
2026-07-06 02:55:07 +01:00
Peter Steinberger
4a5bdc6ae3 fix(macos): orphaned SSH tunnels from crashed app instances keep running and squat the preferred local port (#100489)
* fix(macos): reap orphaned SSH tunnels that survive app crashes and squat the preferred local port

* chore(i18n): sync native app string inventory for PortGuardian changes
2026-07-06 02:53:33 +01:00
Peter Lee
2b773a65f6 fix(anthropic): keep OAuth callback on loopback (#96917)
* fix(anthropic): restrict OAuth callback host to loopback addresses and derive redirect URI

* fix(anthropic): restore localhost as default OAuth callback host to match shipped behavior

* fix(anthropic): defer OAuth callback host validation to login path

* refactor(anthropic): bind callback host independently

Co-authored-by: xialonglee <li.xialong@xydigit.com>

* docs(changelog): note Anthropic callback fix

Co-authored-by: xialonglee <li.xialong@xydigit.com>

* fix(oauth): satisfy Anthropic callback lint

Co-authored-by: xialonglee <li.xialong@xydigit.com>

* chore: defer Anthropic OAuth changelog

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-06 02:52:15 +01:00
Tyler Nishida
2db5bd3394 feat(ios): refresh onboarding setup flow (#98868) 2026-07-05 21:38:54 -04:00
Peter Steinberger
a1f4aa4a3b fix(agents): preserve media side merges during prompt release (#100490)
* fix(agents): preserve active leaf during side merges

Co-authored-by: scotthuang <scotthuang@tencent.com>

* fix(agents): validate explicit side-branch cursors

Co-authored-by: scotthuang <scotthuang@tencent.com>

* chore: defer prompt-release media changelog

---------

Co-authored-by: scotthuang <scotthuang@tencent.com>
2026-07-06 02:37:54 +01:00
Peter Steinberger
9099f421d4 docs(changelog): credit control UI fixes (#100533) 2026-07-06 02:36:56 +01:00
Moeed Ahmed
0e0f0b16cd fix(telegram): show typing for accepted topic messages (#99965)
Co-authored-by: Moeed Ahmed <5780040+moeedahmed@users.noreply.github.com>
2026-07-05 18:36:49 -07:00
Peter Lee
7cabd19268 fix(voice-call): deliver early TTS via onEarlyText before compaction wait (#94015)
* fix(voice-call): speak before post-turn compaction

Co-authored-by: xialonglee <li.xialong@xydigit.com>

* fix(voice-call): satisfy flush callback contracts

* test(agents): assert block reply message context

* fix(voice-call): preserve deferred answer boundaries

* fix(voice-call): type tool boundary message index

* test(voice-call): initialize tool boundary index

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-06 02:34:22 +01:00
Peter Steinberger
4f8eeeaca9 fix(ui): bind stale run state to run identity (#100527)
Co-authored-by: Tiffany Chum <tiffanychum@users.noreply.github.com>
2026-07-06 02:33:40 +01:00
Peter Steinberger
c0e57db8f4 docs(changelog): note browser attachment downloads (#100532) 2026-07-06 02:29:26 +01:00
xingzhou
7a49b160a4 fix(browser): downloads complete over CDP connections (#89416)
* fix(browser): surface navigate downloads in CDP mode

* Validate navigation downloads before saving

* fix(browser): observe navigation download capture timeouts

* refactor(browser): unify managed download capture

* test(browser): satisfy download fixture lint

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-06 02:26:20 +01:00
Peter Steinberger
797bca251e fix(ui): remove redundant file-preview Escape hint (#100528)
Co-authored-by: 咸士山 0668001391 <xian.shishan@xydigit.com>
2026-07-06 02:25:17 +01:00
mushuiyu886
08852d2bf7 fix #98107: Gateway regenerates service-env file on every restart, wiping Telegram bot tokens (#99124)
* Preserve LaunchAgent env-file SecretRefs

* fix gateway start repair env source preservation

* test(daemon): cover SecretRef ownership cleanup

Co-authored-by: mushuiyu886 <mushuiyu886@users.noreply.github.com>

* fix(daemon): preserve only active SecretRefs

Co-authored-by: 杨浩宇0668001029 <yang.haoyu@xydigit.com>

* chore: defer service SecretRefs changelog

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
Co-authored-by: mushuiyu886 <mushuiyu886@users.noreply.github.com>
2026-07-06 02:24:39 +01:00
Peter Steinberger
f12312d69b fix(ui): align Skills filters (#100526)
Co-authored-by: 杨爱文 <yang.aiwen@xydigit.com>
2026-07-06 02:24:11 +01:00
Peter Steinberger
286c020748 fix(ui): preserve autonomous tool failures (#100514)
* fix(ui): preserve autonomous tool failures

Co-authored-by: qingminlong <qing.minlong@xydigit.com>

* chore: defer release note to maintainer batch

---------

Co-authored-by: qingminlong <qing.minlong@xydigit.com>
2026-07-06 02:23:03 +01:00
Peter Steinberger
d6f0747f69 fix(android): harden offline cache lifecycle (#100454)
* fix(android): harden offline cache lifecycle

* docs(changelog): harden Android offline cache lifecycle

* fix(android): drain terminal gateway work safely

* test(android): cover queued command purge

* chore(android): refresh native i18n inventory

* docs(changelog): avoid duplicate offline cache entry
2026-07-06 02:21:15 +01:00
xingzhou
a77ea59ce7 fix(bedrock): bound Mantle model discovery fetches (#99961)
* fix(bedrock): bound Mantle model discovery fetches

* fix(bedrock): release rejected Mantle responses

* docs(changelog): position Bedrock Mantle fix

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-06 02:21:00 +01:00
morluto
f1a374a73a fix(channels): normalize phone identities with stray plus signs (#100467)
* fix(channels): canonicalize phone identity digits

* test(channels): cover phone identity normalization

* test(whatsapp): use shared phone normalizer

* fix(channels): reject invalid normalized phone identities

* fix(signal): preserve strict account input validation

* fix(signal): preserve prefixed allowlist input

* docs(changelog): stabilize phone identity entry

* chore(changelog): defer phone identity entry

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-06 02:19:11 +01:00
Totó Busnello
3c2316c43c fix(agents): preserve streamed assistant text when Claude CLI result event is empty (#90450)
* fix(agents): preserve streamed Claude CLI replies

Co-authored-by: Luiz Antonio Busnello <246086438+totobusnello@users.noreply.github.com>

* fix: preserve Claude live commentary boundaries

* docs(changelog): stabilize Claude CLI entry

* chore(changelog): defer Claude CLI entry

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
Co-authored-by: Luiz Antonio Busnello <246086438+totobusnello@users.noreply.github.com>
2026-07-06 02:18:20 +01:00
Peter Steinberger
a6e19fe014 fix(slack): avoid repeated thread root media (#100516)
* fix(slack): avoid repeated thread root media

* test(slack): cover reset thread media seeding
2026-07-06 02:17:44 +01:00
Peter Steinberger
eda9b9fb18 perf(test): shorten TUI PTY cleanup 2026-07-05 21:14:38 -04:00
Peter Steinberger
76154d9275 test(macos): deflake browser proxy gate tests via injectable browser control (#100517)
MacNodeRuntime's browser proxy gate read OPENCLAW_CONFIG_PATH-resolved config
at invoke time, so parallel tests mutating process env (raw setenv outside
TestIsolationLock in LogLocatorTests/WideAreaGatewayDiscoveryTests) could make
the gate read the real host config. Inject the gate state in tests, cover the
config flag parsing in OpenClawConfigFileTests, and route remaining raw setenv
test users through TestIsolation.withEnvValues.
2026-07-06 02:13:05 +01:00
pick-cat
ca4e8a7dc8 fix(skills): apply command description limits per channel (#99593)
* fix(skills): keep command spec descriptions UTF-16 safe at the truncation cut

* chore: fix oxlint no-unnecessary-type-assertion in test

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* chore: fix Skill type completeness in test fixture

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* fix(skills): prove UTF-16-safe command truncation

* fix(skills): apply description limits per channel

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-05 18:12:51 -07:00
Peter Steinberger
60cf7eaa00 feat(ui): make the sidebar session-first and minimal (#100386)
* feat(ui): bolder sidebar minimalism — pinned/chats session groups, compact icon footer, no brand header

* test(ui): align fixtures with single default pinned route; document pinned-cap invariant

* fix(ui): preserve sidebar session groups

* fix(ui): polish minimal sidebar behavior

* fix(ui): avoid duplicate pinned chat fallback

* docs(changelog): note sidebar layout refresh

* chore(i18n): preserve sidebar locale metadata

* fix(ui): reuse localized sessions label

* test(ui): follow localized sessions label

* chore(ui): trim sidebar landing churn

* docs(ui): update minimal sidebar guidance
2026-07-06 02:08:02 +01:00
Ben.Li
b170c08e6d fix(ios): reject loopback-prefix hosts for auth retry (#99859)
* fix(ios): require parsed loopback hosts for auth retry

* fix(ios): narrow device token retry loopback trust

* test(ios): cover trusted auth retry hosts

* docs(changelog): position iOS auth retry fix

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-06 02:05:21 +01:00
Daniil Artemov
733b464e1e fix: apply thread routing to plugin actions (#80293)
* fix: apply thread routing to plugin message actions

* fix(outbound): preserve plugin action threads

---------

Co-authored-by: Cortex <cortex@cortex-mac.local>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-06 02:02:06 +01:00
cxbAsDev
5a31666a06 fix(gateway): catch lazy import rejections in runtime event subscriptions (#100401)
* fix(gateway): catch lazy import rejections in runtime event subscriptions

* fix(gateway): consolidate event dispatch failures

* docs(changelog): note gateway event dispatch fix

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-06 01:53:13 +01:00
Peter Steinberger
95f12178a7 perf(ci): shorten stalled gateway retry 2026-07-05 20:40:16 -04:00