Skip to content

fix: resolve SDK protocol and lifecycle regressions #394

Open

Description

@WH-2099

Track SDK protocol and lifecycle work for Dify 1.19.0.
SDK 0.11.0 publication is tracked in #413.
This issue remains open for the remaining delivery and acceptance work below.

Implementation status — 2026-11-02

Requirement Implementation Status
Resource cleanup, concurrent transport writes, reconnects, CLI/Serverless shutdown, registration and revalidation #396 Merged; supersedes the closed, unmerged #395
SSE comments, fields and line endings #397 / #404 Completed and merged
Agent text-block and literal special-token counting #399 / #405 Completed and merged
Literal stop sequences #400 / #406 Completed and merged
Embedding counts, indices, dimensions and finite values #401 / #403 Completed and merged
Complete replay messages, content arrays and final usage #389 / #390 Completed and merged
Reject streams without a completion marker #409 / #410 Completed and merged; #412 tightens empty-string markers
Completion modality validation and missing-usage calculation #411 Merged
Generic HTTP error responses #398 / #402 and langgenius/dify-plugin-daemon#835 Both implementations merged; joint acceptance remains open in #398
Complete tool schemas and tool-only response text #412 Draft; checks pass, review/merge pending

#396's validation covered all 37 dispatch actions with local services and an installed wheel, and 1,470 tests passed on each of Python 3.12 and 3.13.
It covered manifest revalidation, YAML aliases, boolean defaults, structured calls, provider hooks and synchronous/gevent entrypoints against its recorded baseline.
Later intentional SDK 0.11 contract changes, including #390 and #411, require the documented provider migrations.

Remaining work

Current evidence uses local services and controlled transports.
Production deployment, external vendor APIs, sustained load and arbitrary native threads (#205) remain outside the completed validation.
Daemon items remain external dependencies without a 1.19 milestone assignment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions