Skip to content

1.0.28

Choose a tag to compare

@morapelker morapelker released this 20 Feb 08:19
· 3151 commits to main since this release

What's Changed

Fix prompt history for connection sessions (#43)

  • Enable prompt history (Up/Down arrow) for connection sessions — previously, prompt history only worked for worktree-based sessions because the store was keyed exclusively by worktreeId. Connection sessions had no history key, so prompts were never recorded or recalled.
  • Generalise usePromptHistoryStore — rename historyByWorktree → historyByScope and accept a generic scopeId parameter instead of worktreeId, so any session type can store prompt history.
  • Add persist migration (v0 → v1) — existing localStorage data keyed under historyByWorktree is automatically migrated to the new historyByScope shape so users don't lose their history.
  • Track connectionId in SessionView — when a session is backed by a connection rather than a worktree, connectionId is now captured and used to derive a unified historyKey (worktreeId ?? connectionId) for all history reads and writes.