> ## Documentation Index
> Fetch the complete documentation index at: https://lab.pollack.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# What's New 0.82.0

> An @AcpAgent runs in process with configuration only, in Spring Boot, Micronaut and Quarkus; client handler beans; and the breaking changes that come with them

ACP Java SDK 0.82.0 (2026-11-28) lets an application drive its own `@AcpAgent` in the same JVM, with
configuration only, in Spring Boot, Micronaut and Quarkus. Breaking changes are marked **Breaking**;
pre-1.0, they come without compatibility shims. The source of every statement here is the
[`v0.82.0` changelog](https://github.com/agentclientprotocol/java-sdk/blob/v0.82.0/CHANGELOG.md).

## An agent in process, with configuration only

Set one property and the integration serves the `@AcpAgent` bean on one side of an
`InMemoryTransportPair` and gives the application its `AcpSyncClient` and `AcpAsyncClient` on the
other, with the client properties, initialized once the agent has started and closed when the
application stops. The application writes no transport, pair, client or lifecycle code.

| Framework | Property |
| - | - |
| Spring Boot | `spring.acp.agent.transport.type=in-process` |
| Micronaut | `acp.agent.transport.type=in-process` |
| Quarkus | `quarkus.acp.agent.transport.type=in-process` (build time) |

Inject the client and open sessions; the application's handler beans receive the agent's updates and
answer its permission requests:

```java theme={null}
@Component   // @Singleton in Micronaut and Quarkus
class Chat implements AcpSessionUpdateHandler {          // every bean receives every update

    @Override
    public void onSessionUpdate(AcpSchema.SessionNotification notification) {
        if (notification.update() instanceof AcpSchema.AgentMessageChunk chunk
                && chunk.content() instanceof AcpSchema.TextContent text) {
            System.out.print(text.text());
        }
    }
}
```

Setting a client transport property as well fails the startup. Each framework page has the full
section: [Spring Boot](https://lab.pollack.ai/docs/acp-java-sdk/autoconfig.md#in-process-the-agent-and-your-own-client),
[Micronaut](https://lab.pollack.ai/docs/acp-java-sdk/micronaut.md#in-process-the-agent-and-your-own-client),
[Quarkus](https://lab.pollack.ai/docs/acp-java-sdk/quarkus.md#in-process-the-agent-and-your-own-client).

What comes with it:

* **Client handler beans.** `AcpSessionUpdateHandler` (every bean receives every session update) and
  `AcpPermissionHandler` (at most one; it answers `session/request_permission`), in
  `com.agentclientprotocol.sdk.integration`. Every client the three integrations build picks them up,
  on every transport, and they may block.
* **`@AcpAgent` alone makes a class a bean** in Spring Boot and Micronaut, as it already did in
  Quarkus. Spring Boot scans the application's packages (those of its `@SpringBootApplication`).
  Micronaut needs the new `acp-micronaut-processor` on the annotation processor path, beside
  `micronaut-inject-java`, and `@Import(packages = "...")` for an agent compiled elsewhere.
  `acp-annotations` keeps no framework dependency.
* **The integrations close an `AutoCloseable` agent bean** once the agent has stopped.
* **`AcpClient.AsyncSpec.defaultRequestPermissionHandler`**, a permission handler that applies when the
  application registers none, for frameworks, like `defaultSessionUpdateHandler`.
* **A supported in-process transport in `acp-core`**,
  `com.agentclientprotocol.sdk.agent.transport.InMemoryTransportPair`: build the agent on
  `agentTransport()` and the client on `clientTransport()`. `create()` takes the JSON mapper from the
  classpath once for the pair; `create(AcpJsonMapper)` takes one you configure. Either side's close
  now ends the connection for both, and `connect()` and `start()` complete at once. See
  [Testing](https://lab.pollack.ai/docs/acp-java-sdk/testing.md).

## Breaking changes, and what to do

| Change | Upgrade step |
| - | - |
| **`com.agentclientprotocol.sdk.test.InMemoryTransportPair` (acp-test) is removed.** | Import `com.agentclientprotocol.sdk.agent.transport.InMemoryTransportPair` from `acp-core` instead; its methods are kept. In a framework application, use `transport.type=in-process`. `acp-test` keeps `MockAcpAgent` and `MockAcpClient`. |
| **`shutdown-on-transport-end` applies to stdio only.** Before, the end of any single transport, an application's own `AcpAgentTransport` bean included, closed the application. | An application that relied on its own transport's end to stop must stop itself. |
| **A client an integration builds refuses permission requests it has no handler for.** It selects the agent's first reject option (`reject_once`, else `reject_always`), or answers `cancelled` when the agent offers none. Before, it answered `-32601` (method not found). | Register an `AcpPermissionHandler` bean, or a permission handler in an `AcpClientCustomizer`, if the client should approve anything. Not both: together they fail the startup. |
| **In Spring Boot, every `@AcpAgent` class in the application's packages is a bean.** An application with several such classes there, one of them a bean of its own before, now fails the startup ("Found 2 @AcpAgent beans"). | Keep one `@AcpAgent` class in the application's packages, or exclude `AcpAgentScanAutoConfiguration` and declare the agent yourself. |
| **`AcpClients.async(...)` takes the handler beans** (`AcpClientHandlers`) before the customizers. | Code that calls it directly passes `AcpClientHandlers.of(updateHandlers, permissionHandlers)`, or `AcpClientHandlers.NONE`. |
| **`AcpTransportType.parse` and `value()` know `in-process`**, reading `-` and `_` alike; the error message lists the four values. `AcpAgentSettings.servesHttp()` is true for `http` and `websocket` only. A client's `transport.type=in-process` fails, naming the agent setting. | Code that switches over `AcpTransportType` handles `IN_PROCESS`. Set `in-process` on the agent, not the client. |
| **Quarkus internals:** `AcpStdioAgentHost` and `AcpHttpAgentHost` take CDI `Instance`s of the client and the assembly; `AcpStdioAgentHost` starts the agent early in `StartupEvent`. | Only code that constructs these hosts itself changes. |

Also changed, without an upgrade step:

* **Either side's close ends the in-process connection for both.** `AcpSyncAgent.run()` returns once
  the client closes, the client fails its requests still waiting for the agent at once instead of at
  their timeout, and a request the agent sent the client and that is still unanswered fails with
  `-32603`, as on stdio. A send after the end fails with `AcpConnectionException` (it was a
  `RuntimeException`).
* **A handler failure on one message no longer stops delivery of the next** on the client side of
  the in-process transports, and transport errors are logged at WARN unless an exception handler is
  set.
* **SLF4J 2.0.20 and JSpecify 1.0.1**, the versions Spring Boot 4.1.2 manages (were 2.0.18 and
  1.0.0).
* **Fixed:** Spring Boot logs "Discovered @AcpAgent bean" once.

## Known issues

* **Spring WebFlux on Jetty:** Jetty's connection idle timeout still closes an ACP WebSocket after 30
  seconds without traffic. Set `server.jetty.connection-idle-timeout` (for example `30m`), or use
  Reactor Netty, the default for WebFlux.
* **Micronaut** still serves ACP over HTTP on the SDK's listener, on its own port, so Micronaut's own
  security does not apply to it. The in-process mode is unaffected. A Netty host is planned for a later
  release.
* The outbound queues of the stdio transports and the WebSocket client are still unbounded. Bounded
  outbound queues are planned for a later release.

For the previous release, see [What's New 0.81.0](https://lab.pollack.ai/docs/acp-java-sdk/whats-new-0.81.md); for the next,
[What's New 0.83.0](https://lab.pollack.ai/docs/acp-java-sdk/whats-new-0.83.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.