fix: auto-repair gateway watch startup

This commit is contained in:
Peter Steinberger
2026-05-03 17:11:07 +01:00
parent 0636442cde
commit e7f1b10ff8
5 changed files with 120 additions and 2 deletions

View File

@@ -152,6 +152,10 @@ The tmux wrapper carries common non-secret runtime selectors such as
`OPENCLAW_GATEWAY_PORT`, and `OPENCLAW_SKIP_CHANNELS` into the pane. Put
provider credentials in your normal profile/config, or use raw foreground mode
for one-off ephemeral secrets.
If the watched Gateway exits during startup, the watcher runs
`openclaw doctor --fix --non-interactive` once and restarts the Gateway child.
Use `OPENCLAW_GATEWAY_WATCH_AUTO_DOCTOR=0` when you want the original startup
failure without the dev-only repair pass.
The managed tmux pane also defaults to colored Gateway logs for readability;
set `FORCE_COLOR=0` when starting `pnpm gateway:watch` to disable ANSI output.