From d2044518279c44ab4d69986b23ed84f9ff70ec08 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 9 Jul 2026 20:24:35 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=8B=20New=20version=20release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/reasoning-channel-reply-fallback.md | 11 ----------- examples/web-chat/CHANGELOG.md | 7 +++++++ examples/web-chat/package.json | 2 +- go/version.go | 2 +- python/pyproject.toml | 2 +- rust/Cargo.lock | 16 ++++++++-------- rust/Cargo.toml | 2 +- rust/adapters/backplane-nats/Cargo.toml | 2 +- rust/adapters/backplane-redis/Cargo.toml | 2 +- rust/adapters/dynamodb/Cargo.toml | 4 ++-- rust/adapters/in-memory/Cargo.toml | 2 +- rust/adapters/postgres/Cargo.toml | 4 ++-- rust/ingestion/Cargo.toml | 2 +- rust/smooth-operator-server/Cargo.toml | 14 +++++++------- rust/smooth-operator/Cargo.toml | 2 +- typescript/CHANGELOG.md | 12 ++++++++++++ typescript/package.json | 2 +- 17 files changed, 48 insertions(+), 40 deletions(-) delete mode 100644 .changeset/reasoning-channel-reply-fallback.md diff --git a/.changeset/reasoning-channel-reply-fallback.md b/.changeset/reasoning-channel-reply-fallback.md deleted file mode 100644 index 0c0381f..0000000 --- a/.changeset/reasoning-channel-reply-fallback.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@smooai/smooth-operator': patch ---- - -Fix `eventual_response` still shipping an empty reply (blank `responseParts` + empty `suggestedNextActions`) on gpt-oss-120b via the LiteLLM/groq gateway, which 1.22.1 did not cover. - -Confirmed empirically against the real SSE parser: this gateway/model emits the WHOLE answer on the reasoning channel (`delta.reasoning_content`) with `delta.content` never populated. The engine accumulates reasoning into a separate buffer and drops it from `response.content`, so BOTH `last_assistant_content()` and the 1.22.1 `streamed_reply` (content tokens) come back empty — even though the answer streams to the client as `stream_reasoning` and persists. The "streamed tokens" observed in prod were `stream_reasoning` frames (protocol-identical to `stream_token`), not content. - -`rust/smooth-operator-server/src/runner.rs`: accumulate the turn's reasoning stream and use it as a LAST-RESORT fallback for the final reply — after `last_assistant_content()` and `streamed_reply`, only when no answer content exists anywhere. A normal reasoning model always populates `content`, so it never surfaces its thinking as the answer; this rung fires solely for the degenerate answer-in-reasoning case where the alternative is an empty response. The suggested-replies trailer is preserved through the fallback so suggestions are recovered. - -Adds `tests/gateway_wire_empty_reply.rs`, a regression that drives the real `LlmClient` against a local mock speaking the gateway SSE wire format (answer-in-content and answer-in-reasoning shapes) — it fails if the reply goes empty again. diff --git a/examples/web-chat/CHANGELOG.md b/examples/web-chat/CHANGELOG.md index 736454c..24aeb81 100644 --- a/examples/web-chat/CHANGELOG.md +++ b/examples/web-chat/CHANGELOG.md @@ -1,5 +1,12 @@ # @smooai/smooth-operator-web-chat-example +## 0.0.3 + +### Patch Changes + +- Updated dependencies [22b193e] + - @smooai/smooth-operator@1.22.10 + ## 0.0.2 ### Patch Changes diff --git a/examples/web-chat/package.json b/examples/web-chat/package.json index 2afbd5f..83fa97f 100644 --- a/examples/web-chat/package.json +++ b/examples/web-chat/package.json @@ -1,6 +1,6 @@ { "name": "@smooai/smooth-operator-web-chat-example", - "version": "0.0.2", + "version": "0.0.3", "private": true, "description": "A smooth-web-like Vite + React chat client that drives a running smooth-operator server over its WebSocket protocol — token streaming, inline tool-call/result blocks, a conversation sidebar, and oldest-first history, all on top of the published @smooai/smooth-operator SDK.", "type": "module", diff --git a/go/version.go b/go/version.go index ff8947a..76a6bbf 100644 --- a/go/version.go +++ b/go/version.go @@ -5,4 +5,4 @@ package e2e // language artifacts. The real Go "publish" is a git tag (go/v); this // constant is the anchor that scripts/sync-versions.mjs keeps in sync with the // canonical npm version on every changeset release. -const Version = "1.22.9" +const Version = "1.22.10" diff --git a/python/pyproject.toml b/python/pyproject.toml index b3c1ca1..4479636 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "smooai-smooth-operator" -version = "1.22.9" +version = "1.22.10" description = "Python protocol types and native async WebSocket client for the smooth-operator protocol. Generated from the language-neutral JSON Schemas in spec/." readme = "README.md" license = { text = "MIT" } diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 893241b..a011eb2 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -3974,7 +3974,7 @@ checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90" [[package]] name = "smooai-smooth-operator" -version = "1.22.9" +version = "1.22.10" dependencies = [ "anyhow", "async-trait", @@ -4006,7 +4006,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-adapter-backplane-nats" -version = "1.22.9" +version = "1.22.10" dependencies = [ "anyhow", "async-nats", @@ -4022,7 +4022,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-adapter-backplane-redis" -version = "1.22.9" +version = "1.22.10" dependencies = [ "anyhow", "async-trait", @@ -4038,7 +4038,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-adapter-dynamodb" -version = "1.22.9" +version = "1.22.10" dependencies = [ "anyhow", "async-trait", @@ -4059,7 +4059,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-adapter-memory" -version = "1.22.9" +version = "1.22.10" dependencies = [ "anyhow", "async-trait", @@ -4072,7 +4072,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-adapter-postgres" -version = "1.22.9" +version = "1.22.10" dependencies = [ "anyhow", "async-trait", @@ -4162,7 +4162,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-ingestion" -version = "1.22.9" +version = "1.22.10" dependencies = [ "anyhow", "async-trait", @@ -4209,7 +4209,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-server" -version = "1.22.9" +version = "1.22.10" dependencies = [ "anyhow", "async-trait", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index a88f216..5041743 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -28,7 +28,7 @@ smooai-smooth-operator-core = { git = "https://github.com/SmooAI/smooth-operator # Intra-workspace dep on the reference lib carries its version so the adapters / # ingestion / server that depend on it are publishable (path = local dev, # version = the crates.io requirement). -smooth-operator = { package = "smooai-smooth-operator", path = "smooth-operator", version = "1.22.9" } +smooth-operator = { package = "smooai-smooth-operator", path = "smooth-operator", version = "1.22.10" } async-trait = "0.1" anyhow = "1" diff --git a/rust/adapters/backplane-nats/Cargo.toml b/rust/adapters/backplane-nats/Cargo.toml index dc1b08a..4bb7b1b 100644 --- a/rust/adapters/backplane-nats/Cargo.toml +++ b/rust/adapters/backplane-nats/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "smooai-smooth-operator-adapter-backplane-nats" -version = "1.22.9" +version = "1.22.10" edition.workspace = true license.workspace = true repository.workspace = true diff --git a/rust/adapters/backplane-redis/Cargo.toml b/rust/adapters/backplane-redis/Cargo.toml index 75ca680..c213c60 100644 --- a/rust/adapters/backplane-redis/Cargo.toml +++ b/rust/adapters/backplane-redis/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "smooai-smooth-operator-adapter-backplane-redis" -version = "1.22.9" +version = "1.22.10" edition.workspace = true license.workspace = true repository.workspace = true diff --git a/rust/adapters/dynamodb/Cargo.toml b/rust/adapters/dynamodb/Cargo.toml index d802e99..4e056ea 100644 --- a/rust/adapters/dynamodb/Cargo.toml +++ b/rust/adapters/dynamodb/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "smooai-smooth-operator-adapter-dynamodb" -version = "1.22.9" +version = "1.22.10" edition.workspace = true license.workspace = true repository.workspace = true @@ -19,7 +19,7 @@ s3-vectors = ["dep:aws-sdk-s3vectors", "dep:aws-smithy-types"] smooth-operator = { workspace = true } smooai-smooth-operator-core = { workspace = true } # IndexingStore / IndexingRun for the persistent admin indexing-runs store. -smooai-smooth-operator-ingestion = { path = "../../ingestion", version = "1.22.9" } +smooai-smooth-operator-ingestion = { path = "../../ingestion", version = "1.22.10" } async-trait = { workspace = true } anyhow = { workspace = true } chrono = { workspace = true } diff --git a/rust/adapters/in-memory/Cargo.toml b/rust/adapters/in-memory/Cargo.toml index 6199dfb..1b10b05 100644 --- a/rust/adapters/in-memory/Cargo.toml +++ b/rust/adapters/in-memory/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "smooai-smooth-operator-adapter-memory" -version = "1.22.9" +version = "1.22.10" edition.workspace = true license.workspace = true repository.workspace = true diff --git a/rust/adapters/postgres/Cargo.toml b/rust/adapters/postgres/Cargo.toml index 2935e47..13ae58b 100644 --- a/rust/adapters/postgres/Cargo.toml +++ b/rust/adapters/postgres/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "smooai-smooth-operator-adapter-postgres" -version = "1.22.9" +version = "1.22.10" edition.workspace = true license.workspace = true repository.workspace = true @@ -15,7 +15,7 @@ smooth-operator = { workspace = true } # `postgres` feature pulls in PostgresCheckpointStore (sync r2d2 path). smooai-smooth-operator-core = { workspace = true, features = ["postgres"] } # IndexingStore / IndexingRun for the persistent admin indexing-runs store. -smooai-smooth-operator-ingestion = { path = "../../ingestion", version = "1.22.9" } +smooai-smooth-operator-ingestion = { path = "../../ingestion", version = "1.22.10" } async-trait = { workspace = true } anyhow = { workspace = true } chrono = { workspace = true } diff --git a/rust/ingestion/Cargo.toml b/rust/ingestion/Cargo.toml index b1b30d7..1018250 100644 --- a/rust/ingestion/Cargo.toml +++ b/rust/ingestion/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "smooai-smooth-operator-ingestion" -version = "1.22.9" +version = "1.22.10" edition.workspace = true license.workspace = true repository.workspace = true diff --git a/rust/smooth-operator-server/Cargo.toml b/rust/smooth-operator-server/Cargo.toml index f5645b5..b603913 100644 --- a/rust/smooth-operator-server/Cargo.toml +++ b/rust/smooth-operator-server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "smooai-smooth-operator-server" -version = "1.22.9" +version = "1.22.10" edition.workspace = true license.workspace = true repository.workspace = true @@ -35,22 +35,22 @@ smooth-operator = { workspace = true } smooai-smooth-operator-core = { workspace = true } # In-memory storage + backplane — ALWAYS included. The local-flavor default and # the lean (`--no-default-features`) build run entirely on these. -smooai-smooth-operator-adapter-memory = { path = "../adapters/in-memory", version = "1.22.9" } +smooai-smooth-operator-adapter-memory = { path = "../adapters/in-memory", version = "1.22.10" } # Persistent storage + admin-store backends, selected at runtime to match the # configured storage backend (Postgres / DynamoDB; default in-memory). Optional: # gated behind the `postgres` / `dynamodb` features so a lean local/embed build # can exclude tokio-postgres / the AWS SDK. The `postgres` crate also provides the # gateway-backed embedder/reranker, so the `postgres` feature additionally enables # the semantic-retrieval path in `embedder.rs` / `reranker.rs`. -smooai-smooth-operator-adapter-postgres = { path = "../adapters/postgres", version = "1.22.9", optional = true } -smooai-smooth-operator-adapter-dynamodb = { path = "../adapters/dynamodb", version = "1.22.9", optional = true } +smooai-smooth-operator-adapter-postgres = { path = "../adapters/postgres", version = "1.22.10", optional = true } +smooai-smooth-operator-adapter-dynamodb = { path = "../adapters/dynamodb", version = "1.22.10", optional = true } # Distributed Backplane backends for horizontal scale-out, selected at runtime # via SMOOTH_AGENT_BACKPLANE (default in-memory / single-process). Optional: gated # behind the `redis` / `nats` features so a lean build excludes their drivers. -smooai-smooth-operator-adapter-backplane-redis = { path = "../adapters/backplane-redis", version = "1.22.9", optional = true } -smooai-smooth-operator-adapter-backplane-nats = { path = "../adapters/backplane-nats", version = "1.22.9", optional = true } +smooai-smooth-operator-adapter-backplane-redis = { path = "../adapters/backplane-redis", version = "1.22.10", optional = true } +smooai-smooth-operator-adapter-backplane-nats = { path = "../adapters/backplane-nats", version = "1.22.10", optional = true } # Admin API surfaces indexing-run status via the ingestion crate's IndexingStore. -smooai-smooth-operator-ingestion = { path = "../ingestion", version = "1.22.9" } +smooai-smooth-operator-ingestion = { path = "../ingestion", version = "1.22.10" } async-trait = { workspace = true } anyhow = { workspace = true } diff --git a/rust/smooth-operator/Cargo.toml b/rust/smooth-operator/Cargo.toml index 75a2606..a44db83 100644 --- a/rust/smooth-operator/Cargo.toml +++ b/rust/smooth-operator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "smooai-smooth-operator" -version = "1.22.9" +version = "1.22.10" edition.workspace = true license.workspace = true repository.workspace = true diff --git a/typescript/CHANGELOG.md b/typescript/CHANGELOG.md index 3cea3df..d132060 100644 --- a/typescript/CHANGELOG.md +++ b/typescript/CHANGELOG.md @@ -1,5 +1,17 @@ # @smooai/smooth-operator +## 1.22.10 + +### Patch Changes + +- 22b193e: Fix `eventual_response` still shipping an empty reply (blank `responseParts` + empty `suggestedNextActions`) on gpt-oss-120b via the LiteLLM/groq gateway, which 1.22.1 did not cover. + + Confirmed empirically against the real SSE parser: this gateway/model emits the WHOLE answer on the reasoning channel (`delta.reasoning_content`) with `delta.content` never populated. The engine accumulates reasoning into a separate buffer and drops it from `response.content`, so BOTH `last_assistant_content()` and the 1.22.1 `streamed_reply` (content tokens) come back empty — even though the answer streams to the client as `stream_reasoning` and persists. The "streamed tokens" observed in prod were `stream_reasoning` frames (protocol-identical to `stream_token`), not content. + + `rust/smooth-operator-server/src/runner.rs`: accumulate the turn's reasoning stream and use it as a LAST-RESORT fallback for the final reply — after `last_assistant_content()` and `streamed_reply`, only when no answer content exists anywhere. A normal reasoning model always populates `content`, so it never surfaces its thinking as the answer; this rung fires solely for the degenerate answer-in-reasoning case where the alternative is an empty response. The suggested-replies trailer is preserved through the fallback so suggestions are recovered. + + Adds `tests/gateway_wire_empty_reply.rs`, a regression that drives the real `LlmClient` against a local mock speaking the gateway SSE wire format (answer-in-content and answer-in-reasoning shapes) — it fails if the reply goes empty again. + ## 1.22.9 ### Patch Changes diff --git a/typescript/package.json b/typescript/package.json index 74820c6..f38b63a 100644 --- a/typescript/package.json +++ b/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@smooai/smooth-operator", - "version": "1.22.9", + "version": "1.22.10", "description": "TypeScript SDK for the smooth-operator WebSocket protocol: the native client (`.`), React bindings (`./react`), and the embeddable web-component chat widget (`./widget`). Generated from the language-neutral JSON Schemas in spec/.", "license": "MIT", "type": "module",