Skip to content

Commit 9ed4855

Browse files
author
wandl
committed
test(e2e): 同步 initialize 握手帧序断言——首帧为 initialize,thread/start 随后
1 parent b8bb07d commit 9ed4855

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/test/java/io/github/easy4j/codex/appserver/CodexAppServerClientE2ETest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ void shouldRunFullTurnWithDeltasAndHandshakeAuth() throws Exception {
6666
assertEquals("stop", result.getFinishReason());
6767
assertEquals(List.of("你好", "世界"), deltas);
6868
assertTrue(server.authorizationSeen(), "WebSocket handshake must carry the bearer token");
69-
assertEquals("thread/start", methodOf(server.receivedFrames().get(0)));
69+
// 真实协议(codex ≥0.14x):turn 前必须先 initialize 握手
70+
assertEquals("initialize", methodOf(server.receivedFrames().get(0)));
71+
assertTrue(methodsOf(server).contains("thread/start"),
72+
"turn must issue thread/start after the initialize handshake");
7073
}
7174
}
7275

0 commit comments

Comments
 (0)