fix(gateway): remove watch-mode build/start race (#18782)

This commit is contained in:
Josh Avant
2026-02-16 18:24:08 -08:00
committed by GitHub
parent 4b8f53979e
commit 81741c37fd
4 changed files with 169 additions and 65 deletions

View File

@@ -34,13 +34,13 @@ Examples:
For fast iteration, run the gateway under the file watcher:
```bash
pnpm gateway:watch --force
pnpm gateway:watch
```
This maps to:
```bash
tsx watch src/entry.ts gateway --force
node --watch-path src --watch-path tsconfig.json --watch-path package.json --watch-preserve-output scripts/run-node.mjs gateway --force
```
Add any gateway CLI flags after `gateway:watch` and they will be passed through
@@ -113,13 +113,13 @@ This is the best way to see whether reasoning is arriving as plain text deltas
Enable it via CLI:
```bash
pnpm gateway:watch --force --raw-stream
pnpm gateway:watch --raw-stream
```
Optional path override:
```bash
pnpm gateway:watch --force --raw-stream --raw-stream-path ~/.openclaw/logs/raw-stream.jsonl
pnpm gateway:watch --raw-stream --raw-stream-path ~/.openclaw/logs/raw-stream.jsonl
```
Equivalent env vars: