Skip to content

Commit 70d891d

Browse files
committed
Fix incorrectly named _meta field on SetSessionModeResponse
1 parent 4149e61 commit 70d891d

6 files changed

Lines changed: 11 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.6.2 (2025-10-24)
4+
5+
### Protocol
6+
7+
Fix incorrectly named `_meta` field on `SetSessionModeResponse`
8+
39
## 0.6.1 (2025-10-24)
410

511
### Protocol

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "agent-client-protocol-schema"
33
authors = ["Zed <hi@zed.dev>"]
4-
version = "0.6.1"
4+
version = "0.6.2"
55
edition = "2024"
66
license = "Apache-2.0"
77
description = "A protocol for standardizing communication between code editors and AI coding agents"

docs/protocol/schema.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ Response to `session/set_mode` method.
465465

466466
**Properties:**
467467

468-
<ResponseField name="meta" type={"object"}></ResponseField>
468+
<ResponseField name="_meta" type={"object"}></ResponseField>
469469

470470
<a id="session-set_model"></a>
471471
### <span class="font-mono">session/set_model</span>

rust/agent.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ pub struct SetSessionModeRequest {
287287
#[schemars(extend("x-side" = "agent", "x-method" = SESSION_SET_MODE_METHOD_NAME))]
288288
#[serde(rename_all = "camelCase")]
289289
pub struct SetSessionModeResponse {
290+
#[serde(skip_serializing_if = "Option::is_none", rename = "_meta")]
290291
pub meta: Option<serde_json::Value>,
291292
}
292293

schema/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2091,7 +2091,7 @@
20912091
"SetSessionModeResponse": {
20922092
"description": "Response to `session/set_mode` method.",
20932093
"properties": {
2094-
"meta": true
2094+
"_meta": true
20952095
},
20962096
"type": "object",
20972097
"x-method": "session/set_mode",

0 commit comments

Comments
 (0)