patchcord 0.5.84 → 0.5.85

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.84",
3
+ "version": "0.5.85",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "author": "ppravdin",
6
6
  "license": "MIT",
@@ -123,11 +123,12 @@ while true; do
123
123
  if [ "$COUNT" -gt 0 ] 2>/dev/null; then
124
124
  # Write notification file so the agent sees context on wake
125
125
  echo "PATCHCORD: ${COUNT} message(s) waiting" > "$NOTIFY_FILE"
126
- echo "PATCHCORD: ${COUNT} message(s) waiting exiting to trigger auto-run"
127
- # Kimi v1.44.0 background tasks trigger auto-run on exit 2 (BLOCK),
128
- # same as Stop hooks. stderr becomes the wake-up message.
129
- printf '%s\n' "📬 Patchcord: You have ${COUNT} pending message(s). Call inbox() to read and reply." >&2
130
- exit 2
126
+ # Kimi auto-triggers a new agent turn when ANY background task reaches a
127
+ # terminal state exit code doesn't matter. Use exit 0 so Kimi shows
128
+ # "completed" (not "failed"), and emit the wake-up text to stdout so it
129
+ # appears in the agent's task output preview.
130
+ printf '%s\n' "📬 Patchcord: ${COUNT} pending message(s). Call inbox(), reply to each, then re-arm by running 'patchcord subscribe --kimi 5' as a background Shell task (run_in_background=true, timeout=86400)."
131
+ exit 0
131
132
  fi
132
133
 
133
134
  sleep "$INTERVAL"