You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(unstable): add SessionInfoUpdate to SessionUpdate enum (#334)
* feat: add SessionInfoUpdate to SessionUpdate enum
Add a new session_info_update variant to the SessionUpdate discriminated
union, allowing agents to notify clients about session metadata changes
(title, timestamps, custom metadata) in real-time.
* Put behind feature flag
* Use maybeundefined
---------
Co-authored-by: Sergey Ignatov <ignatov@jetbrains.com>
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
Copy file name to clipboardExpand all lines: schema/schema.unstable.json
+35Lines changed: 35 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2460,6 +2460,25 @@
2460
2460
"required": ["sessionId", "cwd"],
2461
2461
"type": "object"
2462
2462
},
2463
+
"SessionInfoUpdate": {
2464
+
"description": "Update to session metadata. All fields are optional to support partial updates.\n\nAgents send this notification to update session information like title or custom metadata.\nThis allows clients to display dynamic session names and track session state changes.",
2465
+
"properties": {
2466
+
"_meta": {
2467
+
"additionalProperties": true,
2468
+
"description": "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)",
2469
+
"type": ["object", "null"]
2470
+
},
2471
+
"title": {
2472
+
"description": "Human-readable title for the session. Set to null to clear.",
2473
+
"type": ["string", "null"]
2474
+
},
2475
+
"updatedAt": {
2476
+
"description": "ISO 8601 timestamp of last activity. Set to null to clear.",
2477
+
"type": ["string", "null"]
2478
+
}
2479
+
},
2480
+
"type": "object"
2481
+
},
2463
2482
"SessionListCapabilities": {
2464
2483
"description": "Capabilities for the `session/list` method.\n\nBy supplying `{}` it means that the agent supports listing of sessions.\n\nFurther capabilities can be added in the future for other means of filtering or searching the list.",
2465
2484
"properties": {
@@ -2724,6 +2743,22 @@
2724
2743
},
2725
2744
"required": ["sessionUpdate"],
2726
2745
"type": "object"
2746
+
},
2747
+
{
2748
+
"allOf": [
2749
+
{
2750
+
"$ref": "#/$defs/SessionInfoUpdate"
2751
+
}
2752
+
],
2753
+
"description": "Session metadata has been updated (title, timestamps, custom metadata)",
0 commit comments