Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

fix:修复acp回复重复和.cmd程序更新目录问题

openJiuwen-bot6504e86ad5a5
diff --git a/docs/en/ACP_Client_Config.md b/docs/en/ACP_Client_Config.md
index 3065ad4ace..86869372ac 100644
--- a/docs/en/ACP_Client_Config.md
+++ b/docs/en/ACP_Client_Config.md
@@ -31,7 +31,7 @@ Pre-installation Preparation
1. Install the ACP Client extension from the marketplace. Search for `formulahendry.acp-client` and install it.
2. In the extension, click the `+` button (`ACP: Add Agent Configuration`).
3. For `Name`, enter: `jiuwenclaw`.
-4. For `Command`, enter the absolute path to run_gateway_acp.cmd.
+4. For `Command`, enter the absolute path to run_gateway_acp.cmd (which uses `jiuwenclaw.gateway.channel_manager.protocol.acp.acp_connect` as the entry point).
5. Leave `Config` empty.
6. Start the main process in the terminal first: `python -m jiuwenclaw.app`
7. Connect to `jiuwenclaw` in the extension, then chat in the window.
\ No newline at end of file
diff --git "a/docs/zh/ACP\346\217\222\344\273\266\344\275\277\347\224\250.md" "b/docs/zh/ACP\346\217\222\344\273\266\344\275\277\347\224\250.md"
index c35e988d2c..3acc3651c0 100644
--- "a/docs/zh/ACP\346\217\222\344\273\266\344\275\277\347\224\250.md"
+++ "b/docs/zh/ACP\346\217\222\344\273\266\344\275\277\347\224\250.md"
@@ -137,13 +137,13 @@ python -m jiuwenclaw.app
**Windows**
```text
-C:\path\to\your\venv\Scripts\python.exe -m jiuwenclaw.channel.acp_channel
+C:\path\to\your\venv\Scripts\python.exe -m jiuwenclaw.gateway.channel_manager.protocol.acp.acp_connect
```
**Linux / macOS**
```text
-/path/to/your/venv/bin/python -m jiuwenclaw.channel.acp_channel
+/path/to/your/venv/bin/python -m jiuwenclaw.gateway.channel_manager.protocol.acp.acp_connect
```
![ACP配置](../assets/images/ACP插件添加agent.png)
diff --git a/jiuwenclaw/server/runtime/agent_adapter/interface_deep.py b/jiuwenclaw/server/runtime/agent_adapter/interface_deep.py
index d726549d62..f30cb7036c 100644
--- a/jiuwenclaw/server/runtime/agent_adapter/interface_deep.py
+++ b/jiuwenclaw/server/runtime/agent_adapter/interface_deep.py
@@ -4030,9 +4030,10 @@ class JiuWenClawDeepAdapter:
yield AgentResponseChunk(
request_id=rid,
channel_id=cid,
- payload={"event_type": "chat.delta", "content": content},
+ payload={"event_type": "chat.reasoning", "content": content},
is_complete=False,
)
+ continue
if chunk_type == "llm_output":
has_streamed_content = True
diff --git a/scripts/run_gateway_acp.cmd b/scripts/run_gateway_acp.cmd
index db80896b88..e5001db4d3 100644
--- a/scripts/run_gateway_acp.cmd
+++ b/scripts/run_gateway_acp.cmd
@@ -5,4 +5,4 @@ for %%I in ("%ROOT%") do set "ROOT=%%~fI"
set "PYTHONPATH=%ROOT%"
set "PYTHONIOENCODING=utf-8"
cd /d "%ROOT%"
-"%ROOT%\.venv\Scripts\python.exe" -m jiuwenclaw.channel.acp_channel %* 2>NUL
+"%ROOT%\.venv\Scripts\python.exe" -m jiuwenclaw.gateway.channel_manager.protocol.acp.acp_connect %* 2>NUL
diff --git a/scripts/run_gateway_acp.sh b/scripts/run_gateway_acp.sh
index 35a3d6ddfe..335661cf29 100755
--- a/scripts/run_gateway_acp.sh
+++ b/scripts/run_gateway_acp.sh
@@ -11,4 +11,4 @@ export PYTHONIOENCODING=utf-8
cd "$ROOT"
# 启动程序(Linux/Mac 虚拟环境路径不同)
-"$ROOT/.venv/bin/python" -m jiuwenclaw.channel.acp_channel "$@"
\ No newline at end of file
+"$ROOT/.venv/bin/python" -m jiuwenclaw.gateway.channel_manager.protocol.acp.acp_connect "$@"
\ No newline at end of file