diff --git a/.changeset/empty-eventual-response-fallback.md b/.changeset/empty-eventual-response-fallback.md deleted file mode 100644 index 2dcb9774..00000000 --- a/.changeset/empty-eventual-response-fallback.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@smooai/smooth-operator': patch ---- - -Fix intermittently empty `eventual_response` on the streaming turn (blank `responseParts` + dropped `suggestedNextActions`) even though the full reply streamed and persisted. - -The runner sourced the final reply from `Conversation::last_assistant_content()`. On reasoning models (e.g. `groq-gpt-oss-120b`) a turn can end on a tool-call or reasoning-only assistant entry whose `content` is empty, so that returned `""` — shipping an empty `eventual_response` and losing the parsed suggestions. - -`rust/smooth-operator-server/src/runner.rs`: accumulate THIS turn's raw streamed answer tokens (pre-suppressor, reasoning excluded — identical to the engine's assistant `content`) and fall back to it when `last_assistant_content()` is empty. The suggested-replies trailer is preserved in the fallback so `extract_suggested_replies` strips it and recovers the suggestions exactly as on the normal path. The non-empty path is byte-for-byte unchanged. diff --git a/go/version.go b/go/version.go index 856fb3a5..98022cab 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.0" +const Version = "1.22.1" diff --git a/python/pyproject.toml b/python/pyproject.toml index e659cf06..27f9de09 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "smooai-smooth-operator" -version = "1.22.0" +version = "1.22.1" 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 f101101d..3e9b7c72 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -3974,7 +3974,7 @@ checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90" [[package]] name = "smooai-smooth-operator" -version = "1.22.0" +version = "1.22.1" dependencies = [ "anyhow", "async-trait", @@ -4006,7 +4006,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-adapter-backplane-nats" -version = "1.22.0" +version = "1.22.1" dependencies = [ "anyhow", "async-nats", @@ -4022,7 +4022,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-adapter-backplane-redis" -version = "1.22.0" +version = "1.22.1" dependencies = [ "anyhow", "async-trait", @@ -4038,7 +4038,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-adapter-dynamodb" -version = "1.22.0" +version = "1.22.1" dependencies = [ "anyhow", "async-trait", @@ -4059,7 +4059,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-adapter-memory" -version = "1.22.0" +version = "1.22.1" dependencies = [ "anyhow", "async-trait", @@ -4072,7 +4072,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-adapter-postgres" -version = "1.22.0" +version = "1.22.1" dependencies = [ "anyhow", "async-trait", @@ -4163,7 +4163,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-ingestion" -version = "1.22.0" +version = "1.22.1" dependencies = [ "anyhow", "async-trait", @@ -4210,7 +4210,7 @@ dependencies = [ [[package]] name = "smooai-smooth-operator-server" -version = "1.22.0" +version = "1.22.1" dependencies = [ "anyhow", "async-trait", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index ad4bf673..087d379c 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -28,7 +28,7 @@ smooai-smooth-operator-core = "0.16" # 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.0" } +smooth-operator = { package = "smooai-smooth-operator", path = "smooth-operator", version = "1.22.1" } async-trait = "0.1" anyhow = "1" diff --git a/rust/adapters/backplane-nats/Cargo.toml b/rust/adapters/backplane-nats/Cargo.toml index 43ca4177..1acd7730 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.0" +version = "1.22.1" 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 d32bb183..d44f6fed 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.0" +version = "1.22.1" edition.workspace = true license.workspace = true repository.workspace = true diff --git a/rust/adapters/dynamodb/Cargo.toml b/rust/adapters/dynamodb/Cargo.toml index a12f6614..31ecc3d2 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.0" +version = "1.22.1" 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.0" } +smooai-smooth-operator-ingestion = { path = "../../ingestion", version = "1.22.1" } 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 9de7c34b..5d9e2cf3 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.0" +version = "1.22.1" edition.workspace = true license.workspace = true repository.workspace = true diff --git a/rust/adapters/postgres/Cargo.toml b/rust/adapters/postgres/Cargo.toml index f0f5eb3b..c15405f5 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.0" +version = "1.22.1" 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.0" } +smooai-smooth-operator-ingestion = { path = "../../ingestion", version = "1.22.1" } async-trait = { workspace = true } anyhow = { workspace = true } chrono = { workspace = true } diff --git a/rust/ingestion/Cargo.toml b/rust/ingestion/Cargo.toml index cbddb7e6..390f2717 100644 --- a/rust/ingestion/Cargo.toml +++ b/rust/ingestion/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "smooai-smooth-operator-ingestion" -version = "1.22.0" +version = "1.22.1" 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 fb728721..073a646b 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.0" +version = "1.22.1" 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.0" } +smooai-smooth-operator-adapter-memory = { path = "../adapters/in-memory", version = "1.22.1" } # 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.0", optional = true } -smooai-smooth-operator-adapter-dynamodb = { path = "../adapters/dynamodb", version = "1.22.0", optional = true } +smooai-smooth-operator-adapter-postgres = { path = "../adapters/postgres", version = "1.22.1", optional = true } +smooai-smooth-operator-adapter-dynamodb = { path = "../adapters/dynamodb", version = "1.22.1", 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.0", optional = true } -smooai-smooth-operator-adapter-backplane-nats = { path = "../adapters/backplane-nats", version = "1.22.0", optional = true } +smooai-smooth-operator-adapter-backplane-redis = { path = "../adapters/backplane-redis", version = "1.22.1", optional = true } +smooai-smooth-operator-adapter-backplane-nats = { path = "../adapters/backplane-nats", version = "1.22.1", optional = true } # Admin API surfaces indexing-run status via the ingestion crate's IndexingStore. -smooai-smooth-operator-ingestion = { path = "../ingestion", version = "1.22.0" } +smooai-smooth-operator-ingestion = { path = "../ingestion", version = "1.22.1" } async-trait = { workspace = true } anyhow = { workspace = true } diff --git a/rust/smooth-operator/Cargo.toml b/rust/smooth-operator/Cargo.toml index 8db5020e..0eaf21af 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.0" +version = "1.22.1" edition.workspace = true license.workspace = true repository.workspace = true diff --git a/typescript/CHANGELOG.md b/typescript/CHANGELOG.md index 5e739700..142fe321 100644 --- a/typescript/CHANGELOG.md +++ b/typescript/CHANGELOG.md @@ -1,5 +1,15 @@ # @smooai/smooth-operator +## 1.22.1 + +### Patch Changes + +- 17e1ad9: Fix intermittently empty `eventual_response` on the streaming turn (blank `responseParts` + dropped `suggestedNextActions`) even though the full reply streamed and persisted. + + The runner sourced the final reply from `Conversation::last_assistant_content()`. On reasoning models (e.g. `groq-gpt-oss-120b`) a turn can end on a tool-call or reasoning-only assistant entry whose `content` is empty, so that returned `""` — shipping an empty `eventual_response` and losing the parsed suggestions. + + `rust/smooth-operator-server/src/runner.rs`: accumulate THIS turn's raw streamed answer tokens (pre-suppressor, reasoning excluded — identical to the engine's assistant `content`) and fall back to it when `last_assistant_content()` is empty. The suggested-replies trailer is preserved in the fallback so `extract_suggested_replies` strips it and recovers the suggestions exactly as on the normal path. The non-empty path is byte-for-byte unchanged. + ## 1.22.0 ### Minor Changes diff --git a/typescript/package.json b/typescript/package.json index ad20f2f9..aa087082 100644 --- a/typescript/package.json +++ b/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@smooai/smooth-operator", - "version": "1.22.0", + "version": "1.22.1", "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",