neo1027144
2cf9ed782d
fix(daemon): prevent systemd restart storm on config validation failure
...
Exit gateway configuration failures with EX_CONFIG and teach generated systemd units not to restart on that exit status.\n\nCo-authored-by: neo1027144-creator <neo1027144-creator@users.noreply.github.com >
2026-04-10 16:23:46 +01:00
Peter Steinberger
a00b01f5ed
fix: harden complex qa suite scenarios
2026-04-07 20:35:39 +01:00
Peter Steinberger
978a0a720e
refactor: dedupe cli lowercase helpers
2026-04-07 13:01:23 +01:00
Peter Steinberger
b28cc98c9b
test: sync gateway and config expectations
2026-04-07 08:05:32 +01:00
Peter Steinberger
679a393f6d
refactor: dedupe metadata readers
2026-04-07 07:36:11 +01:00
Peter Steinberger
bbe9b7ba15
refactor: dedupe core error formatting call sites
2026-04-07 05:06:54 +01:00
Peter Steinberger
a03e430248
refactor: dedupe core error helpers
2026-04-07 05:06:54 +01:00
Peter Steinberger
7f6277b6e5
refactor: dedupe infra cli wizard error formatting
2026-04-07 02:03:34 +01:00
Peter Steinberger
134ff61754
test: stabilize agent auth and config suites
2026-04-06 19:52:42 +01:00
openperf
c857e93735
fix(gateway): auto-bind to 0.0.0.0 inside container environments
2026-04-06 14:02:20 +01:00
Peter Steinberger
ef923805f5
Revert "refactor(cli): remove custom cli backends"
...
This reverts commit 6243806f7b .
2026-04-06 13:40:42 +01:00
Peter Steinberger
c39f061003
Revert "refactor(cli): remove bundled cli text providers"
...
This reverts commit 05d351c430 .
2026-04-06 13:40:41 +01:00
Peter Steinberger
05d351c430
refactor(cli): remove bundled cli text providers
2026-04-05 18:46:36 +01:00
Peter Steinberger
6243806f7b
refactor(cli): remove custom cli backends
2026-04-05 18:04:48 +01:00
Peter Steinberger
a65ab607c7
fix(gateway): use launchd KeepAlive restarts
2026-04-05 07:43:37 +01:00
Vincent Koc
dd31ee1139
fix(cli): log pending control ui build
2026-04-04 10:47:38 +09:00
Peter Steinberger
6f8f2a012b
test: trim commands and cli partial mocks
2026-04-03 20:34:23 +01:00
Peter Steinberger
0a2a1ff778
fix(ci): make gateway audit path test platform-safe
2026-04-03 12:22:29 +01:00
Peter Steinberger
e2e1197fa9
refactor(gateway): clarify local mode guardrails
2026-04-03 20:02:32 +09:00
Peter Steinberger
2c7eea8f10
fix(gateway): fail closed on missing mode
2026-04-03 19:50:45 +09:00
Peter Steinberger
1c26e806ff
refactor: simplify gateway startup logs
2026-04-03 11:31:34 +01:00
Brad Groux
dda53a2ff8
test: update gateway.mode test to match default-to-local behavior ( #54801 ) ( #60094 )
...
The test previously asserted that a valid snapshot without gateway.mode
blocks startup. After defaulting gateway.mode to 'local' when unset,
the gateway should start successfully in this scenario — update the
test to verify the new expected behavior.
Co-authored-by: Brad Groux <bradgroux@users.noreply.github.com >
2026-04-03 00:59:51 -05:00
Brad Groux
9978d2276b
fix: default gateway.mode to 'local' when unset ( #54801 ) ( #60085 )
...
After v2026.3.24 introduced a gateway.mode guard, startup fails on
Windows (and other platforms) when the config file exists but doesn't
contain an explicit gateway.mode value. This happens after 'openclaw
onboard' writes a minimal config without gateway settings.
Default to 'local' when the mode is unset, restoring pre-3.24 behavior
where the gateway started without requiring an explicit mode.
Fixes #54801
Co-authored-by: Brad Groux <bradgroux@users.noreply.github.com >
2026-04-03 00:23:06 -05:00
Derek YU
5f6e3499f3
fix: detect PID recycling in gateway lock on Windows/macOS + startup progress ( #59843 )
...
Fix stale lock files from crashed gateway processes blocking new invocations on Windows/macOS. Detect PID recycling to avoid false positive lock conflicts, and add startup progress indicator.
Thanks @TonyDerek-dot
2026-04-02 22:07:35 -05:00
Peter Steinberger
3f1d6fe147
test: speed up cli and command suites
2026-03-31 02:25:02 +01:00
yuna78
0033f64e19
gateway: narrow already-running exit code ( #26718 )
...
Co-authored-by: ImLukeF <92253590+ImLukeF@users.noreply.github.com >
2026-03-30 10:59:32 +11:00
Tak Hoffman
f5643544c2
Reduce lint suppressions in core tests and runtime
2026-03-27 02:11:26 -05:00
Peter Steinberger
a4a00aa1da
feat: pluginize cli inference backends
2026-03-26 15:11:15 +00:00
Peter Steinberger
f52752889b
fix: audit clobbered config reads
2026-03-24 17:10:06 +00:00
Vincent Koc
beadd4c553
fix(gateway): harden supervised lock and browser attach readiness
2026-03-23 08:42:00 -07:00
Julia Bush
e94ebfa084
fix: harden gateway SIGTERM shutdown ( #51242 ) (thanks @juliabush)
...
* fix: increase shutdown timeout to avoid SIGTERM hang
* fix(telegram): abort polling fetch on shutdown to prevent SIGTERM hang
* fix(gateway): enforce hard exit on shutdown timeout for SIGTERM
* fix: tighten gateway shutdown watchdog
* fix: harden gateway SIGTERM shutdown (#51242 ) (thanks @juliabush)
---------
Co-authored-by: Ayaan Zaidi <hi@obviy.us >
2026-03-23 15:01:42 +05:30
Peter Steinberger
fe5819887b
refactor(gateway): centralize discovery target handling
2026-03-23 00:38:31 -07:00
Peter Steinberger
deecf68b59
fix(gateway): fail closed on unresolved discovery endpoints
2026-03-23 00:27:37 -07:00
Peter Steinberger
75835fc664
test: restore runtime-aware cli mocks
2026-03-22 18:35:37 -07:00
Peter Steinberger
4ee41cc6f3
refactor(cli): separate json payload output from logging
2026-03-22 23:19:17 +00:00
Peter Steinberger
680eff63fb
fix: land SIGUSR1 orphan recovery regressions ( #47719 ) (thanks @joeykrug)
2026-03-15 22:32:36 -07:00
Peter Steinberger
4e055d8df2
refactor: share gateway timeout parsing
2026-03-14 01:41:16 +00:00
Peter Steinberger
158a3b49a7
test: deduplicate cli option collision fixtures
2026-03-10 20:34:54 +00:00
Charles Dusek
54be30ef89
fix(agents): bound compaction retry wait and drain embedded runs on restart ( #40324 )
...
Merged via squash.
Prepared head SHA: cfd99562d6
Co-authored-by: cgdusek <38732970+cgdusek@users.noreply.github.com >
Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com >
Reviewed-by: @jalehman
2026-03-09 08:27:29 -07:00
Peter Steinberger
3caab9260c
test: narrow gateway loop signal harness
2026-03-09 07:42:15 +00:00
Peter Steinberger
cc0f30f5fb
test: fix windows runtime and restart loop harnesses
2026-03-09 07:22:23 +00:00
merlin
f84adcbe88
fix: release gateway lock on restart failure + reply to Codex reviews
...
- Release gateway lock when in-process restart fails, so daemon
restart/stop can still manage the process (Codex P2)
- P1 (env mismatch) already addressed: best-effort by design, documented
in JSDoc
2026-03-09 05:53:52 +00:00
merlin
c79a0dbdb4
fix: address bot review feedback on #35862
...
- Remove dead 'return false' in runServiceStart (Greptile)
- Include stack trace in run-loop crash guard error log (Greptile)
- Only catch startup errors on subsequent restarts, not initial start (Codex P1)
- Add JSDoc note about env var false positive edge case (Codex P1)
2026-03-09 05:53:52 +00:00
merlin
6740cdf160
fix(gateway): catch startup failure in run loop to prevent process exit ( #35862 )
...
When an in-process restart (SIGUSR1) triggers a config-triggered restart
and the new config is invalid, params.start() throws and the while loop
exits, killing the process. On macOS this loses TCC permissions.
Wrap params.start() in try/catch: on failure, set server=null, log the
error, and wait for the next SIGUSR1 instead of crashing.
2026-03-09 05:53:52 +00:00
Daniel dos Santos Reis
1d6a2d0165
fix(gateway): exit non-zero on restart shutdown timeout
...
When a config-change restart hits the force-exit timeout, exit with
code 1 instead of 0 so launchd/systemd treats it as a failure and
triggers a clean process restart. Stop-timeout stays at exit(0)
since graceful stops should not cause supervisor recovery.
Closes #36822
2026-03-09 05:38:54 +00:00
Vincent Koc
76a028a50a
Gateway CLI: allowlist password-file fixture
2026-03-07 18:28:18 -08:00
Vincent Koc
4062aa5e5d
Gateway: add safer password-file input for gateway run ( #39067 )
...
* CLI: add gateway password-file option
* Docs: document safer gateway password input
* Update src/cli/gateway-cli/run.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
* Tests: clean up gateway password temp dirs
* CLI: restore gateway password warning flow
* Security: harden secret file reads
---------
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-03-07 18:20:17 -08:00
Peter Steinberger
1b9e4800eb
test: fix gateway register option collision mock
2026-03-08 01:58:33 +00:00
Vincent Koc
2c7fb54956
Config: fail closed invalid config loads ( #39071 )
...
* Config: fail closed invalid config loads
* CLI: keep diagnostics on explicit best-effort config
* Tests: cover invalid config best-effort diagnostics
* Changelog: note invalid config fail-closed fix
* Status: pass best-effort config through status-all gateway RPCs
* CLI: pass config through gateway secret RPC
* CLI: skip plugin loading from invalid config
* Tests: align daemon token drift env precedence
2026-03-07 17:48:13 -08:00
Peter Steinberger
cc7e61612a
fix(gateway): harden service-mode stale process cleanup ( #38463 , thanks @spirittechie)
...
Co-authored-by: Jesse Paul <drzin69@gmail.com >
2026-03-07 21:36:24 +00:00