mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:30:42 +00:00
fix: preserve gateway watch trace overrides
This commit is contained in:
@@ -21,6 +21,7 @@ const TMUX_CHILD_ENV_KEYS = [
|
||||
RUN_NODE_CPU_PROF_DIR_ENV,
|
||||
"OPENCLAW_SKIP_CHANNELS",
|
||||
"OPENCLAW_STATE_DIR",
|
||||
"OPENCLAW_TRACE_SYNC_IO",
|
||||
];
|
||||
|
||||
const sanitizeSessionPart = (value) => {
|
||||
|
||||
@@ -159,7 +159,7 @@ function createGatewayCliStartupTrace() {
|
||||
async measure<T>(name: string, run: () => Awaitable<T>): Promise<T> {
|
||||
const before = performance.now();
|
||||
try {
|
||||
return await withDiagnosticPhase(`cli.${name}`, run);
|
||||
return await withDiagnosticPhase(name, run);
|
||||
} finally {
|
||||
const now = performance.now();
|
||||
emit(name, now - before, now - started);
|
||||
|
||||
@@ -43,6 +43,7 @@ describe("gateway-watch tmux wrapper", () => {
|
||||
env: {
|
||||
OPENCLAW_GATEWAY_PORT: "19001",
|
||||
OPENCLAW_PROFILE: "Dev Profile",
|
||||
OPENCLAW_TRACE_SYNC_IO: "0",
|
||||
SHELL: "/bin/zsh",
|
||||
},
|
||||
nodePath: "/opt/node",
|
||||
@@ -57,6 +58,7 @@ describe("gateway-watch tmux wrapper", () => {
|
||||
expect(command).toContain("'FORCE_COLOR=1'");
|
||||
expect(command).toContain("'OPENCLAW_GATEWAY_PORT=19001'");
|
||||
expect(command).toContain("'OPENCLAW_PROFILE=Dev Profile'");
|
||||
expect(command).toContain("'OPENCLAW_TRACE_SYNC_IO=0'");
|
||||
expect(command).toContain("/opt/node");
|
||||
expect(command).toContain("scripts/watch-node.mjs");
|
||||
expect(command).toContain("gateway");
|
||||
|
||||
Reference in New Issue
Block a user