Skip to content

Commit 767ae74

Browse files
maxholmanclaude
andcommitted
fix(cli): peer notification wording — "connected with" / "disconnected from"
Neutral perspective: "connected with X" works whether you initiated or accepted. "disconnected from X" is accurate regardless of which side closed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d10e889 commit 767ae74

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/cli/src/output.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,14 +227,14 @@ fn format_notification(notif: &DaemonNotification) -> Option<String> {
227227
Some(daemon_notification::Event::PeerConnected(pc)) => {
228228
let peer = pc.peer.as_ref()?;
229229
Some(format!(
230-
"{} peer \"{}\" connected ({})",
230+
"{} connected with \"{}\" ({})",
231231
Color::Green.paint("[+]"),
232232
peer.name,
233233
peer.addr
234234
))
235235
}
236236
Some(daemon_notification::Event::PeerDisconnected(pd)) => Some(format!(
237-
"{} peer \"{}\" disconnected",
237+
"{} disconnected from \"{}\"",
238238
Color::Red.paint("[-]"),
239239
pd.name
240240
)),

0 commit comments

Comments
 (0)