windows 下面python 使用iflow-cli-sdk,无法通过initialize

总是在下面卡住:
DEBUG:websockets.client:= connection is CONNECTING
DEBUG:websockets.client:> GET /acp HTTP/1.1
DEBUG:websockets.client:> Host: localhost:8090
DEBUG:websockets.client:> Upgrade: websocket
DEBUG:websockets.client:> Connection: Upgrade
DEBUG:websockets.client:> Sec-WebSocket-Key: gLAHrpCGF2S1oS8hzfiAPA==
DEBUG:websockets.client:> Sec-WebSocket-Version: 13
DEBUG:websockets.client:> Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits
DEBUG:websockets.client:> User-Agent: Python/3.13 websockets/15.0.1
DEBUG:websockets.client:< HTTP/1.1 101 Switching Protocols
DEBUG:websockets.client:< Upgrade: websocket
DEBUG:websockets.client:< Connection: Upgrade
DEBUG:websockets.client:< Sec-WebSocket-Accept: BWV2sLUCw0YX97/3Bz5WJWO2T+8=
DEBUG:websockets.client:= connection is OPEN
INFO:iflow_sdk._internal.transport:Connected to ws://localhost:8090/acp
INFO:iflow_sdk._internal.protocol:Waiting for //ready signal…
DEBUG:websockets.client:< TEXT ‘//ready’ [7 bytes]
DEBUG:iflow_sdk._internal.transport:Broker received: //ready
DEBUG:websockets.client:< TEXT ‘//stderr [WS 1] Embedded iFlow ACP peer started’ [47 bytes]
DEBUG:iflow_sdk._internal.transport:Received message: //ready
INFO:iflow_sdk._internal.protocol:Received //ready signal
DEBUG:websockets.client:> TEXT ‘{“jsonrpc”: “2.0”, “id”: 1, “method”: "initiali…e}, “terminal”: true}}}’ [182 bytes]
DEBUG:iflow_sdk._internal.transport:Sent message: {“jsonrpc”: “2.0”, “id”: 1, “method”: “initialize”, “params”: {“protocolVersion”: 1, “clientCapabilities”: {“fs”: {“readTextFile”: false, “writeTextFile”: false}, “terminal”: true}}}
INFO:iflow_sdk._internal.protocol:Sent initialize request
DEBUG:iflow_sdk._internal.transport:Broker received: //stderr [WS 1] Embedded iFlow ACP peer started
DEBUG:iflow_sdk._internal.transport:Received message: //stderr [WS 1] Embedded iFlow ACP peer started
DEBUG:iflow_sdk._internal.protocol:Control message: //stderr [WS 1] Embedded iFlow ACP peer started

iflow cli, 和iflow cli sdk都是最新的。

好的 我们看一下

这条json信息发出去,filow的server就不会有任何反馈:

  • DEBUG:iflow_sdk._internal.transport:Sent message: {“jsonrpc”: “2.0”, “id”: 1, “method”: “initialize”, “params”: {“protocolVersion”: 1, “clientCapabilities”: {“fs”: {“readTextFile”: true, “writeTextFile”: true}}}}

尝试按照zed 的ACP 格式发初始化,没有任何响应

感谢补充 目前已经排查到是win防火墙的问题,稍后发帖告知大家

加油加油

新版本已经修复这个问题,可以更新后再试一下哈

可以了可以了

好嘞