Skip to content

0.2.2 — same-directory instance name disambiguation

Latest

Choose a tag to compare

@jkrandom-sudo jkrandom-sudo released this 11 Aug 09:28
· 1 commit to main since this release
ebf109d

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 explicit name config option or /peers-name replaces 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 pass
  • npm run typecheck: clean
  • Existing real-opencode E2E: pass

Full Changelog: v0.2.1...v0.2.2