patchcord 0.5.22 → 0.5.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchcord",
3
- "version": "0.5.22",
3
+ "version": "0.5.24",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "author": "ppravdin",
6
6
  "license": "MIT",
@@ -39,7 +39,7 @@ If you can't do it right now: use `reply(message_id, "reason", defer=true)` to k
39
39
 
40
40
  ## Startup
41
41
 
42
- Call `inbox()` once at session start.
42
+ Call `inbox()` once at session start. **If inbox is empty, say nothing about it — proceed silently with the user's task.**
43
43
 
44
44
  If there are pending actionable messages:
45
45
 
@@ -374,6 +374,8 @@ function runOnce(ticket, baseUrl, token, refreshTicket) {
374
374
  // RLS already enforces this server-side, but if policies drift we
375
375
  // don't want to leak cross-namespace notifications.
376
376
  if (rec.namespace_id && !allowedNs.has(rec.namespace_id)) return;
377
+ // Only notify for messages addressed TO this agent — not our own outgoing replies.
378
+ if (rec.to_agent && rec.to_agent !== ticket.agent_id) return;
377
379
  const from = rec.from_agent || "unknown";
378
380
  process.stdout.write(`PATCHCORD: 1 new from ${from}\n`);
379
381
  });