Repository navigation
1.0.49
What's Changed
feat: per-provider default model storage (#88)
Adds per-provider (per-SDK) default model storage so each AI agent SDK (OpenCode, Claude Code, Codex, etc.) remembers its own default model independently.
Problem: Previously, model selection was stored as a single global default. When switching between different agent SDKs (e.g., OpenCode → Claude Code → Codex), the last-used model would leak across SDKs. For example, selecting a Codex model in one session would cause that model to appear as the default for Claude Code sessions in the same worktree.
Solution: Introduce a selectedModelByProvider map in the settings store, keyed by SDK name, so each provider retains its own default model.
Background follow-up dispatch and session init abort guards (#87)
-
Background follow-up dispatching in global listener: When a background (non-active) session goes idle and has queued follow-up messages, the global listener now automatically dispatches the next follow-up prompt. This ensures follow-up chains survive tab switches and continue executing without requiring the session tab to be active. Includes deduplication guards (
backgroundFollowUpDispatchingRef/deferredIdleWhileDispatchingRef) to prevent double-dispatch from rapid idle events. -
Session init abort guards in SessionView: Added a
shouldAbortInit()check throughout the entire async initialization chain inSessionView. Everyawaitpoint now verifies the effect is still active and the stream generation hasn't changed, preventing stale async operations from clobbering state when users rapidly switch sessions/tabs during initialization. -
Pending message requeue on failure: When auto-sending a pending message (e.g., code review prompt) fails, the message is now requeued via
requeuePendingMessage()instead of being silently dropped. Similarly, follow-up messages that fail to send are requeued at the front of the queue viarequeueFollowUpMessageFront()so they can be retried. -
Extracted helper functions in global listener: Refactored the idle-handler in
useOpenCodeGlobalListenerby extractingresolvePromptDispatchContext()(resolves worktree path + OpenCode session ID from stores and DB, preferring materialized DB session IDs overpending::prefixed ones),resolvePromptDispatchContextFromStores(), andmarkBackgroundSessionCompleted()into standalone functions for clarity and testability. -
Session store API additions: Added
dequeuePendingMessage(),requeuePendingMessage(),dequeueFollowUpMessage(), andrequeueFollowUpMessageFront()to the session store. The existingconsumePendingMessage()andconsumeFollowUpMessage()methods are preserved as aliases for backward compatibility. -
Comprehensive test coverage: Added new test file
global-listener-follow-up-dispatch.test.tscovering background follow-up dispatch scenarios (success, failure with requeue, duplicate idle dedup, connection session paths, DB-preferred session ID resolution). Updated existing tests (global-listener-busy.test.ts,code-review.test.ts) with new store mocks and tests for the new dequeue/requeue methods.
Multiline custom answer input in QuestionPrompt (#86)
- Converted the custom answer input from a single-line
<input>to a multiline<textarea>inQuestionPrompt.tsx, allowing users to enter multi-line responses when providing custom answers to AI questions - Added auto-resize behavior using
useLayoutEffectthat dynamically adjusts the textarea height based on content, capped at 200px max height - Added
Shift+Entersupport for inserting newlines, while plainEnterstill submits the answer - Updated the custom answer display to use
whitespace-pre-wrapandline-clamp-3so multiline answers render properly (with truncation after 3 lines) when shown as a selected option
Fix auto-focus on rename input fields across all item components (#85)
- Fixed rename input focus reliability across all item components (
ConnectionItem,PinnedList,ProjectItem,WorktreeItem) - The rename/edit input fields were not consistently receiving focus when triggered from context menus, because the focus call would fire while the menu was still closing
- Applied a two-pronged fix in all 5 rename input locations:
- Deferred focus via
requestAnimationFrame— theuseEffectthat fires on rename state change now wrapsfocus()+select()inrequestAnimationFrame(), ensuring the call runs after the context menu has fully closed and the input is mounted in the DOM - Added
autoFocusprop — as a belt-and-suspenders measure, the input elements now also carryautoFocusso the browser natively attempts focus on mount
- Deferred focus via
Add SDK rate_limit_event logging (#84)
- Adds explicit logging for
rate_limit_eventmessages received from the Claude Agent SDK in theClaudeCodeImplementerprompt message stream - When a
rate_limit_eventSDK message is received, it is now logged atinfolevel with the full message payload before the general SDK message logging - This provides better observability into rate limiting behavior during AI coding sessions
Fix PlanReadyImplementFab button background for local theme (#83)
- Fixed transparent background on the "Supercharge Locally" button in the
PlanReadyImplementFabcomponent - Changed
bg-transparent→bg-backgroundso the button picks up the current theme's background color instead of being fully transparent, ensuring proper visual contrast and consistency across all themes
Add branch diff viewer for comparing worktree against any branch (#82)
-
New "Diffs" tab in FileSidebar — adds a
BranchDiffViewcomponent that lets users select any local or remote branch and see a list of all files that differ between the current worktree and that branch. Includes a searchable branch dropdown (local/remote grouped), file list with git status indicators, auto-refresh on git status changes, and click-to-open Monaco diff view. -
Branch diff backend (IPC + GitService) — two new IPC channels (
git:branchDiffFiles,git:branchFileDiff) backed byGitService.getBranchDiffFiles()andGitService.getBranchFileDiff()methods. Usesgit diff --name-status --no-renames <branch>andgit diff <branch> -- <file>with branch name validation to prevent command injection. -
Monaco diff viewer branch comparison mode — extends
MonacoDiffView,MonacoDiffToolbar, andMainPaneto accept an optionalcompareBranchprop. When set, the diff viewer fetches the branch ref as the original and the working tree as the modified content. The toolbar shows "vs <branch>" instead of Staged/Unstaged. Hunk action gutters are hidden in branch comparison mode since they don't apply. -
Store changes —
useFileViewerStoregainscompareBranchonDiffTabandActiveDifftypes with branch-aware tab keys (diff:<path>:branch:<name>).useGitStoregainsselectedDiffBranch(aMap<worktreePath, branchName>) to persist the selected comparison branch per worktree. -
Ghostty overlay suppression refactor — replaces the boolean
ghosttyOverlaySuppressedflag with a stack-based push/pop system (pushGhosttySuppression/popGhosttySuppression) inuseLayoutStore. Adds a reusableuseGhosttySuppression(key, active)hook used byCommandPalette,FileSearchDialog,SettingsModal, andSessionTabscontext menu to correctly suppress/restore the Ghostty terminal overlay when multiple overlapping UI layers are open. -
Terminal z-index layering fix —
TerminalViewnow readsghosttyOverlaySuppressedfromuseLayoutStoreand computeseffectiveVisible = isVisible && !ghosttyOverlaySuppressed, ensuring the Ghostty surface is hidden when any modal/dialog is open above it.
Fix input field height on worktree navigation (#81)
- Fixes textarea input height not adjusting correctly when navigating between worktrees with pre-populated drafts in
SessionView - Replaces
useEffect+requestAnimationFramewithuseLayoutEffectfor the textarea auto-resize logic, ensuring the height is measured and set synchronously before the browser paints - Removes the unnecessary
requestAnimationFramewrapper sinceuseLayoutEffectalready runs synchronously after DOM mutations