fix: preserve gateway watch trace overrides · openclaw/openclaw@d6917ed
steipete
·
2026-05-05
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -21,6 +21,7 @@ const TMUX_CHILD_ENV_KEYS = [
|
21 | 21 | RUN_NODE_CPU_PROF_DIR_ENV, |
22 | 22 | "OPENCLAW_SKIP_CHANNELS", |
23 | 23 | "OPENCLAW_STATE_DIR", |
| 24 | +"OPENCLAW_TRACE_SYNC_IO", |
24 | 25 | ]; |
25 | 26 | |
26 | 27 | const sanitizeSessionPart = (value) => { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -159,7 +159,7 @@ function createGatewayCliStartupTrace() {
|
159 | 159 | async measure<T>(name: string, run: () => Awaitable<T>): Promise<T> { |
160 | 160 | const before = performance.now(); |
161 | 161 | try { |
162 | | -return await withDiagnosticPhase(`cli.${name}`, run); |
| 162 | +return await withDiagnosticPhase(name, run); |
163 | 163 | } finally { |
164 | 164 | const now = performance.now(); |
165 | 165 | emit(name, now - before, now - started); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -43,6 +43,7 @@ describe("gateway-watch tmux wrapper", () => {
|
43 | 43 | env: { |
44 | 44 | OPENCLAW_GATEWAY_PORT: "19001", |
45 | 45 | OPENCLAW_PROFILE: "Dev Profile", |
| 46 | +OPENCLAW_TRACE_SYNC_IO: "0", |
46 | 47 | SHELL: "/bin/zsh", |
47 | 48 | }, |
48 | 49 | nodePath: "/opt/node", |
@@ -57,6 +58,7 @@ describe("gateway-watch tmux wrapper", () => {
|
57 | 58 | expect(command).toContain("'FORCE_COLOR=1'"); |
58 | 59 | expect(command).toContain("'OPENCLAW_GATEWAY_PORT=19001'"); |
59 | 60 | expect(command).toContain("'OPENCLAW_PROFILE=Dev Profile'"); |
| 61 | +expect(command).toContain("'OPENCLAW_TRACE_SYNC_IO=0'"); |
60 | 62 | expect(command).toContain("/opt/node"); |
61 | 63 | expect(command).toContain("scripts/watch-node.mjs"); |
62 | 64 | expect(command).toContain("gateway"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。