Skip to content

1.0.86

Choose a tag to compare

@morapelker morapelker released this 03 Apr 14:11
· 2161 commits to main since this release

What's Changed

Fix title bar missing by adding useCallback import (#241)

  • Fixes the missing title bar caused by a recent commit by adding the missing useCallback import to the React hooks import in Header.tsx
  • The Header component's layout rendering depends on useCallback, and the removed import caused the title bar to not render

feat: add mergeConflictMode setting for AI conflict resolution (#240)

Adds a new Merge Conflict Mode setting that lets users control how AI-assisted merge conflict resolution behaves. Users can choose between:

  • Build mode — immediately fixes conflicts (default)
  • Plan mode — creates a plan before fixing
  • Always Ask — presents a dropdown to choose the mode each time

Changes

  • useSettingsStore: Added mergeConflictMode setting with type MergeConflictMode ('build' | 'plan' | 'always-ask'), defaulting to 'build'. Wired through persistence, extraction, and hydration.

  • SettingsGeneral: Added a button-row UI for selecting the merge conflict mode under a new "Merge conflict mode" section with description text.

  • Header: Updated the "Fix conflicts" button to respect the mergeConflictMode setting. When set to 'always-ask', renders a DropdownMenu with "Fix in Build mode" and "Fix in Plan mode" options (with Hammer / Map icons). Otherwise, directly invokes the selected mode. Wrapped handleFixConflicts in useCallback with proper dependencies. Passes resolvedMode to createSession.

  • GitStatusPanel: Applied the same dropdown/direct-invoke pattern to the "CONFLICTS" button in the git status panel. Added ChevronDown icon to the dropdown trigger. Wrapped handleFixConflicts in useCallback with mergeConflictMode in the dependency array. Passes resolvedMode to createSession.

Add contextual tip system for feature discoverability (#239)

  • New tip system that displays contextual, one-time popover hints to help users discover features. Tips are shown once per user, persisted to the database, and can be globally disabled from settings.
  • Reusable <Tip> component wrapping any UI element with a popover that supports mount-triggered (shown on render) and action-triggered (shown on state change) tips, with priority-based queuing so only one tip shows at a time.
  • useTipStore Zustand store managing the full tip lifecycle: loading seen tips from DB on app start, requesting/queuing tips with priority ordering, delayed display (500ms), dismissal with persistence, and a "disable all" action that flips the global setting.
  • Centralized tip-definitions.ts registry where each tip declares its ID, description text, trigger type, priority, and popover positioning — making it easy to add new tips without touching component code.
  • Three initial tips: kanban-icon (mount-triggered, tells users about the kanban board), kanban-reenter (action-triggered when exiting the board, reminds users how to get back), and worktree-connect (mount-triggered on the first worktree item, surfaces the right-click multi-repo feature).
  • Settings toggle added to General settings: "Show tips" switch with tipsEnabled persisted in useSettingsStore, plus a "Don't show tips" button inside each tip popover that disables tips globally.
  • Integration points: App.tsx loads seen tips on startup; Header.tsx wraps the kanban button with tip logic including board-exit tracking; WorktreeItem.tsx/WorktreeList.tsx wrap the first worktree item with the connect tip.

Improve kanban toggle to refocus board tab before closing (#238)

  • Smarter kanban icon toggle behavior: When the board is active but a file, diff, or context editor tab is in focus, tapping the kanban icon now clears the overlay and refocuses the Board tab instead of immediately closing the board. A second tap (when the Board tab is already focused) closes it as before.
  • New hasActiveOverlay() and clearActiveViews() helpers on useFileViewerStore: consolidates the repeated pattern of clearing activeFilePath, activeDiff, and contextEditorWorktreeId (plus its open-files entry) into a single reusable action.
  • Consistent behavior across all entry points: the same three-way toggle logic is applied to the Header icon button, the Board tab click handler in SessionTabs, and the Command Palette "Open Kanban Board" command.
  • Two new tests covering the refocus-then-close flow: one verifying the board stays open when an overlay is cleared, and one verifying the board closes when already focused.

Files changed

File Change
src/renderer/src/stores/useFileViewerStore.ts Added hasActiveOverlay() and clearActiveViews() methods
src/renderer/src/components/layout/Header.tsx Updated toggle button with three-way click logic
src/renderer/src/components/sessions/SessionTabs.tsx Simplified board tab handler to use clearActiveViews()
src/renderer/src/hooks/useCommands.ts Updated command palette action with same toggle logic
test/kanban/session-5/kanban-view-toggle.test.tsx Added refocus and close tests

Add Codex as supported AI coding agent (#237)

  • Add Codex support across all documentation: Updates all 22 localized README files (ar, bn, bs, da, de, el, es, fr, he, it, ja, ko, en, no, pl, pt-BR, ru, th, tr, uk, vi, zh-TW), docs/FAQ.md, docs/GUIDE.md, and docs/SHORTCUTS.md to list Codex as a supported AI coding agent alongside OpenCode and Claude Code.
  • Generalize architecture references: Renames "OpenCode Service" to "Agent SDK Mgr" in all architecture diagrams and changes service directory descriptions from "OpenCode" to "AI agents" to be provider-agnostic.
  • Update tech stack tables: Replaces the single "OpenCode SDK" entry with links to all three providers — OpenCode, Claude Code, and Codex — in every localized README.
  • Expand FAQ and guide details: Adds Codex-specific information for API key requirements (OPENAI_API_KEY), undo/redo capabilities (undo only via thread rollback), and provider selection in the session creation flow.
  • Update keyboard shortcuts: Updates Cmd+Z undo shortcut documentation to indicate it works with all three providers (OpenCode, Claude Code, Codex) instead of only OpenCode.

Fix representedObject errors in logs during app shutdown (#236)

  • Guard menu mutations during shutdown: Adds a shutdownMenu() function with an _isShuttingDown flag that prevents updateMenuState() and setAppVersion() from touching the native menu model once the app begins quitting.
  • Call shutdownMenu() first in will-quit: Ensures the shutdown guard is set before any other cleanup runs, avoiding a race where menu updates fire against a partially-destroyed native menu.
  • Wrap menu accessors in try/catch: Both updateMenuState() and setAppVersion() now catch exceptions from the native menu model being mid-destruction, preventing representedObject WeakPtr errors from polluting the logs.

Add PR lifecycle buttons and pinned sessions to kanban board (#235)

This PR adds lifecycle action buttons (Code Review, Create/Merge PR, Archive) directly into the kanban ticket modal, and introduces pinned session tabs in board mode so users can interact with sessions without leaving the board view.

Key Changes

  • Schema v19 migration: Adds pinned_to_board flag to sessions and github_pr_number/github_pr_url columns to kanban tickets, with full IPC plumbing through preload and handler layers
  • Pinned session store: New Zustand state for pinnedSessionIds and activePinnedSessionId with pin/unpin/load/setActive actions, auto-hydrated on worktree switch
  • Pinned session tabs: Renders clickable pinned session tabs after the Board tab in board view, with icon based on session name, activation, and close (unpin) support
  • SessionView in board mode: When a pinned session is active, renders its SessionView instead of KanbanBoard in the main pane
  • useLifecycleActions hook: Extracts ~260 lines of PR/Review/Merge/Archive state and logic from Header.tsx into a reusable hook that works with any worktreeId
  • Lifecycle buttons in ticket modal: Review column gets Code Review, Create PR, and Merge PR buttons; Done column gets Code Review, Merge PR, and Archive — all wired through the lifecycle hook
  • PR badge on kanban cards: Shows a clickable GitHub icon with PR number on ticket cards, synced from useGitStore to kanban tickets via IPC and in-memory store updates
  • Code quality fixes: Scoped changed flags per project in kanban store, extracted shared usePinAndActivateSession hook, narrowed store selectors, proper cleanup of pinned state on session close, button overflow wrapping in modal footers

Files Changed (17 files, +1021 / -334)

Area Files
Database database.ts, schema.ts, types.ts
IPC database-handlers.ts, kanban-handlers.ts, preload/index.ts, preload/index.d.ts
Kanban UI KanbanTicketCard.tsx, KanbanTicketModal.tsx
Layout Header.tsx, MainPane.tsx, SessionTabs.tsx
Hooks useLifecycleActions.ts (new), hooks/index.ts
Stores useGitStore.ts, useKanbanStore.ts, useSessionStore.ts

Add Cmd/Ctrl+Enter shortcut to save in edit ticket modal (#234)

  • Adds a keyboard shortcut (Cmd+Enter on Mac / Ctrl+Enter on Windows & Linux) to save changes in the Kanban ticket edit modal, matching the common convention for form submission.
  • Introduces a handleKeyDown callback in EditModeContent that listens for the key combination and triggers handleSave() when the title is non-empty.
  • Wraps modal content in a <div> with the onKeyDown handler so the shortcut is captured regardless of which field is focused within the edit form.

Show ⌘R shortcut on Run/Stop button in ticket modal (#233)

  • Adds a <kbd>⌘R</kbd> keyboard shortcut hint next to the Run/Stop button inside the kanban ticket modal's review mode
  • The hint is styled subtly (10px font, 60% opacity) so it's discoverable without being visually intrusive

Fix plan rejection followup not being sent to session (#232)

  • Fixed critical bug: The plan review "reject with feedback" flow updated the UI (cleared pending plan, set session status, closed modal) but never actually dispatched the followup message to the Claude Code session — the agent never received rejection feedback
  • Added reconnect error handling: sendFollowupToSession now throws when reconnect() returns { success: false } instead of silently continuing to prompt a disconnected session
  • Fixed directory subscription restoration: On session reconnect, re-subscribes to directory events if the subscription was dropped when all prior sessions disconnected (preventing "session not found" errors)
  • Added comprehensive test suite: New plan-review-followup-dispatch.test.tsx covering followup dispatch, pending plan cleanup, session status transitions, non-blocking modal close, error toasts on failure, and reconnect failure handling

Auto-detect project favicons as default icons (#231)

Adds automatic favicon detection for web projects, providing a visually richer project list without requiring users to manually set icons.

  • New detected_icon column on projects table (schema v18 → v19) stores the absolute path to the auto-detected favicon, or "none" if no favicon was found
  • Favicon detection engine (detectProjectFavicon) scans 25+ well-known paths covering Next.js (App Router + Pages), Vite, CRA, SvelteKit, Angular, and generic public/ / static/ layouts — prioritizing SVG → PNG → ICO
  • Icon resolution via new getAbsoluteIconDataUrl converts the detected file to a base64 data URL, with .ico MIME type support added to the existing MIME map
  • Rendering priority in LanguageIcon: custom icon (Priority 1) → auto-detected favicon (Priority 2) → language icon / folder fallback — so user-set icons always win
  • Automatic backfill on project load: existing projects with no detected_icon are scanned asynchronously; new projects are scanned at creation time; re-detection happens alongside language refresh
  • Module-level cache in useDetectedIconUrl avoids redundant IPC calls for already-resolved favicons
  • Full-stack wiring: new IPC handlers (project:detectFavicon, project:getAbsoluteIconDataUrl), preload bridge methods, GraphQL schema queries (projectDetectFavicon, projectAbsoluteIconDataUrl), resolvers, and transport adapter

Add 'Question' indicator for yellow tickets on Kanban board (#230)

  • Adds a visible "Question" text label to Kanban ticket cards when a ticket is in the asking/question state (isAsking)
  • The label appears in amber/yellow (text-amber-500) next to the indeterminate progress bar, making it immediately clear that a ticket requires attention or has a pending question
  • Styled with text-[11px] font-semibold to be compact yet readable within the ticket card footer

Add Enter key shortcut to command approval prompt (#229)

  • Add Enter key shortcut for faster command approval workflow
  • When pattern picker is open, Enter confirms the selected pattern
  • When pattern picker is closed, Enter approves the command once (default behavior)
  • Shortcut is automatically disabled while approval request is sending to prevent race conditions