Commit Graph

13685 Commits (09faed6bd87b6f2f13ffd59290e6d02f2dac32f2)

Author SHA1 Message Date
Peter Steinberger 09faed6bd8
fix(gateway): gate internal command persistence mutations 8 months ago
Peter Steinberger 81445a9010
fix(media): bound remote error-body snippet reads 8 months ago
Vincent Koc fd5555d5be fix(runtime): make dist-runtime staging idempotent 8 months ago
Peter Steinberger a55f371cc5 fix(ci): skip docs-only preflight pnpm audit 8 months ago
Vincent Koc be3a2e2eb6 fix(plugin-sdk): fall back to src root alias files 8 months ago
Peter Steinberger 39409b6a6d
fix(security): unwrap time dispatch wrappers 8 months ago
Peter Steinberger af9de86286 perf: trim vitest hot imports and refresh manifests 8 months ago
Peter Steinberger 7fcbf383d8
fix(ci): write dist build stamp after builds 8 months ago
Peter Steinberger ea579ef858
fix(gateway): preserve async hook ingress provenance 8 months ago
Peter Steinberger c5a941a506
refactor!: remove moltbot state-dir migration fallback 8 months ago
Peter Steinberger 6b9915a106
refactor!: drop legacy CLAWDBOT env compatibility 8 months ago
oliviareid-svg 5ff60cc39f
fix(build): add stable memory-cli dist entry (#51759)
Co-authored-by: oliviareid-svg <269669958+oliviareid-svg@users.noreply.github.com>
Co-authored-by: Frank <vibespecs@gmail.com>
8 months ago
Rick_Xu 2fe1ff8ea8
Usage: include reset and deleted session archives (#43215)
Merged via squash.

Prepared head SHA: 49ed6c2fa30ff512b55f680a049a9a316175f373
Co-authored-by: rcrick <23069968+rcrick@users.noreply.github.com>
Co-authored-by: frankekn <4488090+frankekn@users.noreply.github.com>
Reviewed-by: @frankekn
8 months ago
Peter Steinberger 30ed4342b3
fix(agents): deny local MEDIA paths for MCP results 8 months ago
Vincent Koc d43e26e399 fix(web-search): mark DuckDuckGo experimental 8 months ago
Peter Steinberger 8791aaae2b
refactor: extract gateway install token helpers 8 months ago
Peter Steinberger c15282062f
refactor: split durable service env helpers 8 months ago
Vincent Koc c6ca11e5a5
feat(web-search): add DuckDuckGo bundled plugin (#52629)
* feat(web-search): add DuckDuckGo bundled plugin

* chore(changelog): restore main changelog

* fix(web-search): harden DuckDuckGo challenge detection
8 months ago
Peter Steinberger dc6c22b812 fix: narrow exec exit failure kind typing 8 months ago
Kevin ONeill dd860e76aa fix: normalize env var keys and isolate tests from real .env
- Apply normalizeEnvVarKey({ portable: true }) before security
  filtering, matching the established pattern in env-vars.ts.
  Rejects non-portable key names (spaces, special chars) that
  would produce invalid plist/systemd syntax.

- Isolate existing tests from the developer's real ~/.openclaw/.env
  by providing a temp HOME directory, preventing flaky failures
  when the test machine has a populated .env file.
8 months ago
Kevin ONeill 77ec7b4adf fix: include .env file vars in gateway service environment on install
When building the gateway install plan, read and parse
~/.openclaw/.env (or $OPENCLAW_STATE_DIR/.env) and merge those
key-value pairs into the service environment at the lowest
priority — below config env vars, auth-profile refs, and the
core service environment (HOME, PATH, OPENCLAW_*).

This ensures that user-defined secrets stored in .env (e.g.
BRAVE_API_KEY, OPENROUTER_API_KEY, DISCORD_BOT_TOKEN) are
embedded in the LaunchAgent plist (macOS), systemd unit (Linux),
and Scheduled Task (Windows) at install time, rather than
relying solely on the gateway process loading them via
dotenv.config() at startup.

Previously, on macOS the LaunchAgent plist never included .env
vars, which meant:
- launchctl print did not show user secrets (hard to debug)
- Child processes spawned before dotenv loaded had no access
- If the same key existed in both .env and the plist, the stale
  plist value won via dotenv override:false semantics

Dangerous host env vars (NODE_OPTIONS, LD_PRELOAD, etc.) are
filtered using the same security policy applied to config env
vars.

Fixes #37101
Relates to #22663
8 months ago
Vincent Koc 3afb6a2b95 fix(exec): accept runtime failure kind in formatter 8 months ago
Peter Steinberger 97e4f37171 fix: keep status --json stdout clean (#52449) (thanks @cgdusek) 8 months ago
Charles Dusek 03c4bacbfb fix(cli): route deferred plugin logs to stderr in status --json 8 months ago
Charles Dusek 0e1da034c2 fix(cli): route plugin logs to stderr during --json output 8 months ago
Peter Steinberger e001e8f2f8 test: isolate exec foreground failure coverage 8 months ago
Peter Steinberger 8e568142f6 refactor: extract exec outcome and tool result helpers 8 months ago
Vincent Koc 5f746422aa fix(plugin-sdk): fast-path root diagnostic subscriptions 8 months ago
Vincent Koc faae3e155d fix(whatsapp): remove outbound runtime cycle 8 months ago
Vincent Koc 1042b59471
feat(web-search): add bundled Exa plugin (#52617) 8 months ago
Vincent Koc f69062c16e fix(plugin-sdk): export line runtime subpath 8 months ago
Vincent Koc 8b667cbe44 fix(build): repair stale plugin sdk surfaces 8 months ago
Vincent Koc 1354f37c88
fix(plugins): route keyed queue imports through core (#52608) 8 months ago
Vincent Koc 04cd389ef8 fix(ci): repair voice-call typing and provider contracts 8 months ago
Vincent Koc d949dffc6e fix(ci): repair tts and matrix refactor fallout 8 months ago
Vincent Koc 59105fd614 fix(ci): restore plugin manifests and boundary tests 8 months ago
Vincent Koc ac0fd26e16 fix(ci): resync generated baselines and line runtime seam 8 months ago
Vincent Koc 32fdd21c80 fix(acp): preserve hidden thought replay on session load 8 months ago
Vincent Koc 742c005ac8 fix(acp): preserve hidden thought chunks from gateway chat 8 months ago
Vincent Koc a83b7bca15 refactor(plugin-sdk): route core provider and telegram seams through sdk barrels 8 months ago
Vincent Koc 02f8a86e5c refactor(kilocode): route shared model constants through core seam 8 months ago
Vincent Koc 3ad652fa9e fix(build): restore plugin-sdk and line compat after refactor 8 months ago
Vincent Koc c0933e2fc8 perf(reply): lazy-load session store writes 8 months ago
Peter Steinberger f8731b3d9d fix: finish exec tool failure landing (#52508) (thanks @martingarramon) 8 months ago
Martin Garramon 22c75a55b0 fix(exec): return plain-text tool result on failure instead of raw JSON
When an exec command fails (e.g. timeout), the tool previously rejected
with an Error, which the tool adapter caught and wrapped in a JSON object
({ status, tool, error }). The model then received this raw JSON as the
tool result and could parrot it verbatim to the user.

Now exec failures resolve with a proper tool result containing the error
as human-readable text in content[], matching the success path structure.
The model sees plain text it can naturally incorporate into its reply.

Also fixes a pre-existing format issue in update-cli.test.ts.

Fixes #52484

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
8 months ago
Peter Steinberger 24f77d7457 fix: finish gateway probe auth landing (#52513) (thanks @CodeForgeNet) 8 months ago
Peter Steinberger a02499b335 fix: finish gateway probe auth landing (#52513) (thanks @CodeForgeNet) 8 months ago
CodeForgeNet b2107d3503 fix(status): await resolveGatewayProbeAuthResolution in scan.shared
Function is now async after switching to resolveGatewayProbeAuthSafeWithSecretInputs.
Missing await caused TS error: Property 'auth' does not exist on type 'Promise<...>'.
8 months ago
CodeForgeNet 52acc57a61 fix(status): resolve only selected probe-auth branch and fix plain status path
Address two Codex P1/P2 issues:

1. (P1) Plain 'openclaw status' and 'openclaw status --json' still went
   through the sync resolveGatewayProbeAuthSafe path in
   status.gateway-probe.ts, which cannot expand SecretRef objects.
   Switched to async resolveGatewayProbeAuthSafeWithSecretInputs.

2. (P2) status-all.ts was eagerly resolving both local and remote probe
   auth before deciding which to use. A stale SecretRef in the unused
   branch could abort the command. Collapsed to a single resolution
   call using the correct mode upfront.

Updated status.scan.test.ts to use mockResolvedValue since
resolveGatewayProbeAuthResolution is now async.
8 months ago
CodeForgeNet 3595ecba45 fix(gateway): pass process.env in status command probe auth to resolve SecretRef
Fixes #52360

resolveGatewayProbeAuthSafe was called from status-all.ts without an
env argument, causing the credential resolution chain to fall back to
an empty object instead of process.env. This made env-backed SecretRef
tokens (gateway.auth.token, Telegram botToken, etc.) appear unresolved
in the status command path even when the runtime was healthy.

Added process.env as default fallback in buildGatewayProbeCredentialPolicy
and passed env explicitly from status-all.ts callers.

Related: #33070, #38973, #39415, #46014, #49730
8 months ago