← AUTOMATER NEWSROOM

Qwen Code adds an ACP endpoint for managed coding sessions

Qwen Code v0.29.2 ships a pilot that lets IDE and internal tool developers send prompts, stream updates, and handle tool approvals through the Java Managed Agent service.

An embedded client sends prompts and permission replies to Qwen’s Managed Agent service over ACP v1, and receives streamed updates and tool permission requests.An embedded client sends prompts and permission replies to Qwen’s Managed Agent service over ACP v1, and receives streamed updates and tool permission requests.
The ACP pilot lets the client present the conversation and collect permission decisions while Qwen’s Managed Agent service owns the turn and its pending actions. Based on QwenLM’s release notes and pull request 18849.

Qwen Code v0.29.2 adds an authenticated Agent Client Protocol (ACP) endpoint to its Java Managed Agent service. For developers building IDE integrations or internal coding tools, the new /acp route lets a client create or load a managed session, submit or cancel a text prompt, receive live updates, and answer tool permission requests. It shipped in the stable Qwen Code release on December 2 as a conversation pilot, with an opt-in implementation in Managed WebShell. Qwen Code release notes · GitHub release metadata

QwenLM’s Qwen Code v0.29.2 release page on GitHub.
QwenLM’s GitHub release page for Qwen Code v0.29.2. · Original source

What an embedded client can do

The endpoint carries ACP v1 JSON-RPC messages over HTTP and server-sent events (SSE). The Java service applies its existing authentication and workspace grants and retains ownership of admitted turns and pending actions. A permission decision goes back to the original Managed Agent action. The final response carries the original prompt’s request ID, so the client can match the result to the submission even after receiving intermediate updates and a permission request. Merged implementation and test report

That gives an internal developer portal a concrete integration to try. A developer could open a session in a registered test workspace, ask Qwen to inspect a fixture file, watch the response arrive, and decide whether to allow a tool request from the same panel. The portal can render the conversation while relying on the service to track execution. This release adds the client-facing conversation interface. The previous release’s worker-claim changes addressed how a Hosted Harness takes ownership of a released session.

The distinction matters if an integration already uses Qwen’s local tooling. Qwen’s daemon documentation describes an ACP bridge that connects the daemon’s HTTP layer to an ACP child process. The new pilot exposes ACP on the Java Managed Agent listener itself. For an editor adapter, the protocol version is only one part of compatibility. The client also needs to handle this endpoint’s HTTP and SSE transport, the deployment’s authentication, and the session behavior the pilot implements. Qwen Code daemon ACP Bridge documentation

Treat a dropped stream as an uncertain client state

When Managed WebShell loses its stream, it reloads the transcript. The server still owns any turn it already admitted and any action waiting for a permission decision. On session load, the pilot sends the history replay before the load result. A client can use that ordering to finish rendering the recovered transcript and then decide what status it can show. A retry button that immediately sends the same prompt could start duplicate work if the first submission already reached the server. Merged implementation and test report

What to test before enabling it for a team

Qwen’s experimental reference deployment starts with one Java control plane, one compatible Hosted Harness, and MySQL on a trusted Linux host. Its guide recommends proving a text-only turn before enabling workspace tools and treating the distribution’s compatibility manifest as authoritative. Use that baseline to establish that the deployment itself works, then test the ACP client separately against the same staging setup. Managed Agent reference deployment

Staging check What to verify in the client
Submit a text-only prompt The client displays streamed updates and associates the final response with the submitted request.
Ask to read a harmless fixture file through a tool configured to require approval The panel displays the offered choices and applies the selected response to the pending action. Exercise denial and cancellation while approval is pending.
Drop the stream after the server admits a turn The client reloads history without submitting the prompt again and clearly indicates any result or approval state it cannot yet confirm.

The implementation report describes TCP fixture results for permission handling, prompt correlation, and history replay. Its WebShell component test used a mocked fetch transport. The report lists real Hosted Harness execution through ACP, routing across replicas, and seamless recovery of in-flight requests after reconnect as unvalidated or outside the pilot’s scope. ACP connection state and pending RPCs are held by one Managed Agent replica. Teams that need any of those behaviors should make them explicit acceptance criteria before depending on the endpoint for shared work. Merged implementation and test report

Sources

  1. Release Release v0.29.2 · QwenLM/qwen-code · GitHub
  2. Managed Agent Reference Deployment | Qwen Code Docs
  3. ACP Bridge | Qwen Code Docs
  4. Qwen Code adds an authenticated ACP endpoint for managed coding sessions
  5. Qwen Code adds an authenticated ACP endpoint for managed coding sessions