fix: enable sync io tracing in gateway watch

This commit is contained in:
Peter Steinberger
2026-05-04 22:44:19 +01:00
parent e84d4b27f4
commit 35e48a049b
3 changed files with 37 additions and 0 deletions

View File

@@ -277,6 +277,9 @@ export async function runWatchMain(params = {}) {
// The watcher owns process restarts; keep SIGUSR1/config reloads in-process
// so inherited launchd/systemd markers do not make the child exit and stall.
childEnv.OPENCLAW_NO_RESPAWN = "1";
if (isGatewayWatchCommand(deps.args) && childEnv.OPENCLAW_TRACE_SYNC_IO === undefined) {
childEnv.OPENCLAW_TRACE_SYNC_IO = "1";
}
if (deps.args.length > 0) {
childEnv.OPENCLAW_WATCH_COMMAND = deps.args.join(" ");
}