Skip to content

Reason Network: your team's coding agents, talking to each other. The engine behind `reason network`.

Say 'not connected right now' rather than 'offline' for queued remote mail

Lars Talian6b948406ed48
diff --git a/src/daemon/mail.rs b/src/daemon/mail.rs
index bef441b..a45d486 100644
--- a/src/daemon/mail.rs
+++ b/src/daemon/mail.rs
@@ -131,7 +131,7 @@ impl Daemon {
Target::Remote { machine, machine_name, online, .. } => {
g.store.outbox_add(&machine.to_string(), &msg)?;
remote_jobs.push((res.recipients.len(), machine, machine_name.clone(), online, msg.clone()));
- ("queued".into(), format!("queued: {machine_name} is offline; it gets this when it is back"))
+ ("queued".into(), format!("queued: not connected to {machine_name} right now; it goes out as soon as it is"))
}
};
res.recipients.push(Recipient { address: msg.to.clone(), state, note });
diff --git a/tests/e2e/two_machines.py b/tests/e2e/two_machines.py
index 6ddc96c..d2b46b5 100644
--- a/tests/e2e/two_machines.py
+++ b/tests/e2e/two_machines.py
@@ -177,7 +177,7 @@ codex.close()
cli("alice", "stop")
time.sleep(1)
out = cli("tal", "send", "alice", "sent while you were offline")
-check("message to an offline machine is queued", "offline" in out or "no answer" in out, out)
+check("message to an offline machine is queued", "not connected" in out or "no answer" in out, out)
cli("alice", "team") # restarts alice's daemon
time.sleep(8)
out = cli("alice", "inbox")