opencode-plugin-peers 0.2.2 — distinguish same-directory instances
Two changes to make same-directory opencode instances distinguishable, matching Claude Code's session-list UX.
Features
-
Auto-suffix default peer name: the default name is now
<dir>-<hex4>(e.g.my-app-a3f2) instead of just the directory basename. The hex suffix comes from the per-process instanceId, so two instances opened in the same directory automatically get different names. An explicitnameconfig option or/peers-namereplaces the default entirely. -
Session title in /peers: the LLM-generated session summary now appears between name and directory:
[idle] · my-app-a3f2 · "Fix login bug" · /path · started 9m ago
Tests
- 4 new config tests (suffix derivation, same-dir uniqueness, long-name truncation, NAME_RE validation)
- 3 new format tests (title present, title omitted when empty, title truncated at 40 chars)
Verification
npm test: 179/179 passnpm run typecheck: clean- Existing real-opencode E2E: pass
Full Changelog: v0.2.1...v0.2.2