Skip to content

v0.1.1

Choose a tag to compare

@elinx elinx released this 08 Jun 17:37
· 342 commits to main since this release

v0.1.1 — Multi-Worker Session Fix & Provider UX

Fixes

Multi-Worker Session Cross-Talk (Critical)

  • Fixed event routing where switching sessions caused output from one session to appear in another
  • setupBridgeEvents now reads state.sessionPath dynamically instead of capturing a stale closure value
  • primary.sessionPath is now updated after switchSession, newSession, forkAtEntry, and clearSession IPC calls
  • Removed global isStreamingRef — streaming state is now per-session via SessionCache.isStreaming, preventing cross-session streaming state pollution

First Prompt No Response

  • Events now carry sessionPath injected by main process
  • handleEvent calls ensureCacheSync to auto-create session cache on first event
  • onDisplaySession auto-switches display when displayedSessionPath === null

Provider Setup UX

  • Removed Replace/Remove buttons — API key input always visible
  • Save/Update button at bottom only (no inline button next to input)
  • Test Connection works before saving via apiKeyOverride
  • Auto-select first model after saving API key

Auth & Model

  • API keys stored in ~/.xi/auth.json (not ~/.pi/agent)
  • Fixed hasAuth: false in getAvailableModels — merges Pi SDK auth + ~/.xi/auth.json
  • unknown model treated as no model in UI
  • currentModel set to null when Pi SDK returns {provider: "unknown", id: "unknown"}

UI

  • Renamed all user-facing "Pi" text to "Xi"
  • Collapsed thinking block to single line with violet accent
  • displayedSessionPath moved to ref in handleEvent to prevent event listener resubscription on session switch

Full Changelog

v0.1.0...v0.1.1

Full Changelog: v0.1.0...v0.1.1