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
Copy file name to clipboardExpand all lines: docs/protocol/v1/prompt-turn.mdx
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,6 +154,7 @@ The Agent then reports text responses from the model:
154
154
"sessionId": "sess_abc123def456",
155
155
"update": {
156
156
"sessionUpdate": "agent_message_chunk",
157
+
"messageId": "msg_agent_c42b9",
157
158
"content": {
158
159
"type": "text",
159
160
"text": "I'll analyze your code for potential issues. Let me examine it..."
@@ -163,6 +164,10 @@ The Agent then reports text responses from the model:
163
164
}
164
165
```
165
166
167
+
#### Message IDs
168
+
169
+
The Agent **MAY** include an opaque, unique `messageId` on message chunks. Chunks with the same `messageId` belong to the same message; a changed `messageId` indicates a new message.
170
+
166
171
If the model requested tool calls, these are also reported immediately:
Copy file name to clipboardExpand all lines: docs/protocol/v2/prompt-turn.mdx
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -158,6 +158,7 @@ The Agent then reports text responses from the model:
158
158
"sessionId": "sess_abc123def456",
159
159
"update": {
160
160
"sessionUpdate": "agent_message_chunk",
161
+
"messageId": "msg_agent_c42b9",
161
162
"content": {
162
163
"type": "text",
163
164
"text": "I'll analyze your code for potential issues. Let me examine it..."
@@ -167,6 +168,10 @@ The Agent then reports text responses from the model:
167
168
}
168
169
```
169
170
171
+
#### Message IDs
172
+
173
+
The Agent **MUST** include an opaque `messageId` on message chunks. Chunks with the same `messageId` belong to the same message; a changed `messageId` indicates a new message.
174
+
170
175
If the model requested tool calls, these are also reported immediately:
Copy file name to clipboardExpand all lines: docs/rfds/message-id.mdx
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ Add a `messageId` field to `AgentMessageChunk`, `UserMessageChunk`, and `AgentTh
70
70
71
71
### Proposed Structure
72
72
73
-
The `session/prompt` response does not include a message ID. In v1, there won't be a message ID for user-submitted messages. In v2, the agent will replay the message and attach the appropriate message ID to the user message.
73
+
The `session/prompt`request and response do not include a message ID. Clients do not create protocol message IDs. If the Agent emits the accepted user message through `session/update`, it generates and attaches the appropriate message ID to that user message.
74
74
75
75
If the Agent sends `user_message_chunk` updates (e.g., during `session/load`), it uses the user message ID:
76
76
@@ -282,6 +282,7 @@ Future RFDs may propose extending `messageId` to other update types if use cases
282
282
283
283
## Revision history
284
284
285
+
-**2026-06-05**: Moved to Completed and stabilized optional v1 `messageId` in the stable protocol artifacts
285
286
-**2026-06-03**: Moved the v1 portion of the RFD to Preview while v2-specific behavior remains part of the v2 draft work
286
287
-**2026-06-03**: Moved the RFD out of the v2 Draft group while keeping v2-specific behavior; added a dedicated `MessageId` type, and made v2 require message IDs on streamed message chunks while v1 keeps optional message IDs for compatibility
287
288
-**2026-06-02**: Updated the proposal so message IDs are Agent-generated only, removed client-provided prompt IDs and prompt response acknowledgments, and removed the UUID requirement in favor of opaque strings
Copy file name to clipboardExpand all lines: docs/rfds/updates.mdx
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,13 @@ rss: true
6
6
7
7
This page tracks lifecycle changes for ACP Requests for Dialog. For broader ACP announcements, see [Updates](/updates).
8
8
9
+
<Updatelabel="June 5, 2026"tags={["Completed"]}>
10
+
## Message ID RFD moves to Completed
11
+
12
+
The RFD for adding agent-generated `messageId` fields to streamed message chunks has been stabilized and is now part of the protocol. In v1, message IDs are optional on message chunks for compatibility; in v2, they are required. Please review the [documentation](/protocol/v1/prompt-turn#message-ids) for more information.
13
+
14
+
</Update>
15
+
9
16
<Updatelabel="June 5, 2026"tags={["Completed"]}>
10
17
## Session Context Size and Cost RFD moves to Completed
0 commit comments