packages/sdk-java/qwencode/RELEASE.md
This release adds the Java 11 daemon transport to the existing com.alibaba:qwencode-sdk artifact. The new com.alibaba.qwen.code.daemon API uses POST admission watermarks and resumable SSE to avoid returning truncated prompt output as success. The legacy stdio API remains available.
0.0.3-alphasession_scope_override are advertisedprompt_absolute_deadline is advertisedclient_heartbeat, open sessions send periodic
heartbeat mutations until detach or destroyturn_complete or turn_error is terminalturn_complete with stopReason=cancelled; an agent or provider failure during cancellation can instead produce turn_error, so callers wait for and inspect the formal terminalclose() attempts detach at most once; only destroySession() sends DELETEThe SDK does not promise exactly-once prompt execution across daemon restarts, automatic epoch recovery, snapshot/resync, persisted cursors, or true prompt-ID-targeted cancellation. Creation-time model selection is omitted because the current daemon reports rejection only through an SSE event emitted before the create response. An ambiguous create may leave an unidentified session until the daemon reaps it. The acknowledged cancellation handshake intentionally has no acknowledgement-only timeout because that could let a late session-scoped cancel reach the next prompt; a provider or tool that ignores its AbortSignal can therefore leave the session unusable until stronger runtime isolation is available.
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>qwencode-sdk</artifactId>
<version>0.1.0-alpha</version>
</dependency>
This release includes a fix for modifying some fields as referenced in issue #1459.
January 14, 2026
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>qwencode-sdk</artifactId>
<version>0.0.2-alpha</version>
</dependency>
This release includes updates to the Qwen Code Java SDK with improved session management, enhanced transport options, and better error handling capabilities.
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>qwencode-sdk</artifactId>
<version>0.0.1-alpha</version>
</dependency>
implementation 'com.alibaba:qwencode-sdk:0.0.1-alpha'
January 5, 2026
Memory Management: Long-running sessions with extensive streaming content may consume significant memory. Proper session cleanup using session.close() is essential.
Thread Pool Configuration: The legacy stdio API's default thread pool configuration (30 core, 100 max threads) may need adjustment based on application load and concurrent session requirements.
Timeout Configuration: Legacy stdio users experiencing timeout issues should adjust the turnTimeout and messageTimeout values in TransportOptions based on their specific use cases.
Permission Mode Confusion: The different legacy stdio permission modes (default, plan, auto-edit, yolo) may cause confusion for new users. Clear documentation and examples are needed to guide users in selecting appropriate permission modes.
Environment Variable Limitations: Environment variables passed to the legacy stdio CLI process may have platform-specific limitations on length and character sets.
The project uses Maven for build management with the following key plugins and configurations:
To release this version of the SDK:
main.Release Java SDK workflow in dry-run mode.main has advanced.Planned improvements for upcoming releases:
For support, bug reports, or contributions:
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.