Add the snapshot repository
Add the snapshot repository
Resolve
0.32.1-SNAPSHOT from the Central snapshot repository, with snapshots enabled:agent-client-claude supplies ClaudeClientProvider, the Claude Code lifecycle provider these examples run against.
See Using development snapshots from main for pinning one build and reading its provenance.Source on GitHub main
docs/examples/tutorials/PickUpLater.java, compiled and run offline by the agent-client buildAfter a dead process or a cancellation: send the next turn
There is no resume call. Send the next turn. A retained session reconnects to its native history, keeps its id, and reports the reconnect on the turnâs termination:CLEANUP_UNKNOWN, and the application closes it and, if it wants, starts a new conversation that it calls new.
After a restart: load, where the provider supports it
Before shutdown, keep the providerâs reference to the native history:ClaudeClientProvider reports capabilities().load() as unsupported
(âCross-handle/restart ownership exclusion is not qualifiedâ), and client.sessions().load(...) throws
UnsupportedOperationException. After a restart, an application can start a new conversation and give it context
explicitly, but it is a new conversation, not the old one.
The full class is PickUpLater.java.
The build compiles this tutorial from docs/examples/tutorials and runs it against OfflineProvider, an offline
stand-in that makes no model call (agent-client-tutorials, PickUpLaterTest). A live Claude Code run is not part of the build. PickUpLaterTest also checks the load capability the real ClaudeClientProvider declares.