diff --git a/internal/cloud/code-agent-session-registry.test.mjs b/internal/cloud/code-agent-session-registry.test.mjs index 0d4f07a9..8b041eed 100644 --- a/internal/cloud/code-agent-session-registry.test.mjs +++ b/internal/cloud/code-agent-session-registry.test.mjs @@ -790,14 +790,16 @@ test("Code Agent PC gateway prompt reaches Codex stdio instead of internal hardw assert.equal(providerCalled, false); const turn = calls.find((call) => call.method === "turn/start"); assert.ok(turn, "Codex stdio turn/start should be called"); - assert.match(turn.args.prompt, /\/app\/tools\/hwlab-gateway-shell\.mjs/u); + assert.match(turn.args.prompt, /\/app\/tools\/hwlab-gateway-tran\.mjs/u); + assert.match(turn.args.prompt, /gws_DESKTOP-1MHOD9I:\/f\/work/u); + assert.match(turn.args.prompt, /gws_DESKTOP-1MHOD9I:f:\/work\/hwlab\/\.tmp/u); + assert.match(turn.args.prompt, /improve \/app\/tools\/hwlab-gateway-tran\.mjs first/u); assert.match(turn.args.prompt, /C:\\Users\\liang\\\.agents\\skills/u); assert.match(turn.args.prompt, /cmd \/c echo HWLAB-PC-GW && hostname/u); - assert.match(turn.args.prompt, /--powershell-stdin/u); - assert.match(turn.args.prompt, /-EncodedCommand/u); - assert.match(turn.args.prompt, /Windows filesystem inventory/u); - assert.match(turn.args.prompt, /Select-Object -First/u); - assert.match(turn.args.prompt, /ConvertTo-HwlabJson/u); + assert.match(turn.args.prompt, /cmd -- /u); + assert.match(turn.args.prompt, /ps --