patchcord 0.5.82 → 0.5.83

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.82",
3
+ "version": "0.5.83",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "author": "ppravdin",
6
6
  "license": "MIT",
@@ -60,12 +60,14 @@ fi
60
60
  PIDFILE="/tmp/patchcord_subscribe_${NAMESPACE_ID}_${AGENT_ID}.pid"
61
61
  NOTIFY_FILE="${HOME}/.kimi/patchcord-subscribe-notify.txt"
62
62
 
63
- # Pidfile guard: exit if another instance is running
63
+ # Pidfile guard: if another instance is already running, that's the desired
64
+ # state (typically the SessionStart hook armed the listener). Exit 0 so flow
65
+ # skill invocations don't surface as "background task failed".
64
66
  if [ -f "$PIDFILE" ]; then
65
67
  OLD_PID=$(cat "$PIDFILE" 2>/dev/null || echo "")
66
68
  if [ -n "$OLD_PID" ] && kill -0 "$OLD_PID" 2>/dev/null; then
67
- echo "Already running (pid $OLD_PID)" >&2
68
- exit 2
69
+ echo "Patchcord listener already running (pid $OLD_PID)"
70
+ exit 0
69
71
  fi
70
72
  fi
71
73
  echo $$ > "$PIDFILE"