aboutsummaryrefslogtreecommitdiff
path: root/src/protocol
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-06-06 17:41:44 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-06-06 17:42:38 +0300
commit4001fd2ec8ff05a982da18744b8cbde9df3ab530 (patch)
treef8dbf984cff9a4b025e86481d3f70c89322bd79f /src/protocol
parent048d8a29195d580014b24ee3fc7e89ac6bdfee8a (diff)
feat: improve toast ergonomics
refs #486
Diffstat (limited to 'src/protocol')
-rw-r--r--src/protocol/wire.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/protocol/wire.rs b/src/protocol/wire.rs
index a64a06d5..14a9e3b3 100644
--- a/src/protocol/wire.rs
+++ b/src/protocol/wire.rs
@@ -13,7 +13,7 @@ use serde::{Deserialize, Serialize};
// ---------------------------------------------------------------------------
/// Current protocol version. Bumped when wire format changes incompatibly.
-pub const PROTOCOL_VERSION: u32 = 12;
+pub const PROTOCOL_VERSION: u32 = 13;
/// Maximum allowed frame payload size (2 MB). Frames larger than this are
/// rejected to prevent denial-of-service via oversized length prefixes.
@@ -371,8 +371,10 @@ pub enum ServerMessage {
Notify {
/// What kind of notification.
kind: NotifyKind,
- /// Human-readable message.
+ /// Human-readable title or sound label.
message: String,
+ /// Optional human-readable notification body.
+ body: Option<String>,
},
/// OSC 52 clipboard data forwarded from a PTY through the server.
@@ -889,6 +891,7 @@ mod tests {
let msg = ServerMessage::Notify {
kind,
message: "agent done".to_owned(),
+ body: None,
};
let encoded = bincode::serde::encode_to_vec(&msg, bincode::config::standard()).unwrap();
let (decoded, _): (ServerMessage, _) =