v0.1.1 — rough edges from real-world testing
v0.1.1 — rough edges from real-world testing
First real-world testing of claude-presence exposed six concrete issues when two Claude Code sessions ran side-by-side and dialogued via the broadcast inbox for 20 minutes. All six are fixed in this release.
Fixes
- Session TTL relaxed from 2 min to 10 min. The old 2-min TTL required an aggressive heartbeat cron to survive idle periods. Both sessions got pruned simultaneously, the next
resource_claimfailed with a crypticFOREIGN KEY constraint failed. resource_claimauto-recreates pruned sessions. Instead of crashing with an FK error, the claim silently re-registers the session from the call payload and returnssession_recreated: trueso the caller knows.session_heartbeatreturns structured errors. Was: bareok: falsewhen session unknown. Now:{ ok: false, reason: "session_not_found", advice: "..." }. Also accepts optionalrecreate_project/branch/intentto re-register on the same call.session_unregisteralso returns explicit reasons ({ removed, reason }instead of bare boolean).read_inboxexposes unread/total counters. Was: just the message array — rapid re-reads looked empty even when new messages had arrived. Now:{ messages, unread_total, total }, computed before marking-as-read. The/inboxslash command surfaces the counters.- New "Security & trust model" section in both READMEs. Documents the cooperative-local-sessions use case, self-declared session IDs, advisory-not-enforced locks. Flags future hardening (deriving
from_sessionfrom MCP connection context).
Also in this release
- Tests: 25 → 29. All passing in ~1.3 s locally; CI green on Ubuntu + macOS × Node 18/20/22.
- Branch protection on
mainnow requires CI to pass and linear history. /broadcastand/inboxslash commands (shipped in #2 between v0.1.0 and v0.1.1) bring the total to 6:/register,/presence,/claim,/release,/broadcast,/inbox.- Mental model clarified in READMEs: sessions don't talk directly, they share a bulletin board.
Upgrade
cd claude-presence
git pull
npm install && npm run build(npm link is already in place from v0.1.0 — no re-linking needed.)
PRs in this release
Requirements
- Node.js ≥ 18
- Claude Code (or any MCP-compatible client)
- macOS, Linux, Windows
Full changelog: v0.1.0...v0.1.1