fix(gatewayrpc): sender_id and rate_limited cross the chat wire

This commit is contained in:
sam committed 2026-10-04 17:18:38 +11:00
1 parent 5b3441c553
commit 7efc96bf70
6 files changed
+61 -11

No files matched your search

+10 -1
View File
@@ -68,6 +68,9 @@ message Message {
// stored Media with tool_name empty is a sender attachment, and the
// tool_name on tool-produced events stays a stream-only field.
repeated Media media = 11;
// sender_id is the channel-native stable ID of the person who sent the
// message; the Gateway keys per-person rate limits and slash access on it.
string sender_id = 12;
}
message ToolCall {
string id = 1;
@@ -135,7 +138,13 @@ message RecentMessagesResponse { repeated Message messages = 1; }
message RecentTurnsRequest { string session_id = 1; int64 limit = 2; }
message RecentTurnsResponse { repeated Turn turns = 1; }
message RouteRequest { Message message = 1; }
message RouteResponse { string text = 1; string session_id = 2; }
message RouteResponse {
string text = 1;
string session_id = 2;
// rate_limited marks text as the inbound rate-limit reply, not a dispatch
// outcome.
bool rate_limited = 3;
}
message StreamRequest { Message message = 1; }
message StreamResponse {
string kind = 1;