Skip to content

1.0.20

Choose a tag to compare

@morapelker morapelker released this 17 Feb 16:10
· 3208 commits to main since this release

What's Changed

Canary: Claude Agent SDK integration + UI improvements (#28)

This is a major canary release branch consolidating 10 canary releases (v1.0.19-canary.1 through canary.10) with 109 files changed (+18,032 / -810 lines) across 84 commits.

🧠 Claude Agent SDK Integration (Phase 21)

The headline feature — full Claude Code support as a first-class AI agent alongside OpenCode:

  • SDK Foundation: Dynamic SDK loader with caching, AgentSdkManager for routing between OpenCode and Claude agents, ClaudeCodeImplementer with full lifecycle (connect, reconnect, disconnect, cleanup)
  • Prompt Streaming & Abort: Claude prompt streaming with event normalization, SDK-aware abort dispatch, persisted materialized session IDs to DB
  • Transcript Reader: JSONL-based on-disk session replay with in-memory cache fallback, deterministic timestamps and fallback IDs
  • IPC Routing: SDK-aware routing for opencode:messages, opencode:sessionInfo, opencode:prompt, opencode:abort, opencode:capabilities, undo/redo dispatch
  • Model Catalog: Check available models on launch, model name display, model selector improvements
  • Undo/Redo: Claude undo via rewindFiles with file checkpointing, deferred JSONL truncation to avoid SDK race conditions, capability-gated UI (slash commands, menu, event handlers)
  • Session Titles: Claude session title service with integration tests
  • Binary Resolver: claude-binary-resolver.ts for locating the Claude CLI
  • Agent Setup UX: AgentSetupGuard, AgentPickerDialog, AgentNotFoundDialog components
  • Database: Schema migration to v4 with agent_sdk column
  • Comprehensive Tests: 20+ test files across sessions 1–9 covering contracts, lifecycle, streaming, abort, transcript reading, undo/redo, capabilities, backward compatibility, and session pinning regression

🎨 UI/UX Improvements

  • Update Progress Toast: Progress bar component during auto-update downloads with clamped 0–100% range
  • Highlight Unseen Ready Worktrees: Visual indicator for worktrees with unread ready state
  • Plan Mode Enhancements: Plan session state transition, plan rejection feedback UI, ExitPlanModeToolView component, removed plan followup text persistence
  • Tool Calls Display: Show tool calls ungrouped for better visibility
  • Skills Overview: Available skills overview in settings
  • Sidebar Branch Watcher: useSidebarBranchWatcher hook to update sidebar branch from working directory
  • Move Review Button: Relocated review button to PR context
  • Connection Management: ManageConnectionWorktreesDialog, Claude Code support for connections
  • Settings: General settings additions, settings store improvements

🐛 Bug Fixes

  • Fix message history clearing issue
  • Fix Claude project modification issues
  • Branch rename bugfix
  • Fix output capture when run tab unfocused
  • Fix code review test updates

🔧 Infrastructure

  • Branch Watcher Service: New branch-watcher.ts service for monitoring working directory branches
  • Canary Release Script: Improved with auto description incorporation
  • Connection Service: Updates for multi-agent support
  • Token Utils: Expanded token utility functions
  • Store Updates: Connection store, worktree status store, session store, settings store, git store, script store enhancements

Add sort-by-last-message button for projects (#27)

Adds a Sort by Last Message button to the Projects section in the left sidebar, allowing users to reorder their project list based on the most recent AI message activity (newest first, projects with no messages sorted to the bottom).

Changes across the full stack:

  • Database (src/main/db/database.ts): New getProjectIdsSortedByLastMessage() method that queries project IDs ordered by the latest last_message_at timestamp across their worktrees (NULLs last)
  • IPC handler (src/main/ipc/database-handlers.ts): New db:project:sortByLastMessage IPC channel to expose the database query to the renderer process
  • Preload bridge (src/preload/index.ts, src/preload/index.d.ts): Added sortByLastMessage() to the db.project API surface and its type declaration
  • New UI component (src/renderer/src/components/projects/SortProjectsButton.tsx): A ghost icon button (ArrowDownUp icon) with a loading spinner state while the sort operation is in progress
  • Sidebar integration (src/renderer/src/components/layout/LeftSidebar.tsx): Placed the sort button next to the existing "Add Project" button in the Projects header
  • State management (src/renderer/src/stores/useProjectStore.ts): New sortProjectsByLastMessage action that fetches the sorted order from the database, persists it via reorder, and updates the in-memory project list — with defensive handling for projects missing from the sorted result
  • Barrel export (src/renderer/src/components/projects/index.ts): Exported the new SortProjectsButton component

feat: use breed-named branches for createWorktreeFromBranch and add branch picker context menu (#25)

  • createWorktreeFromBranch now generates unique breed-named branches instead of deriving the worktree directory name from the raw branch name. When checking out an existing branch via "create worktree from branch", a new breed-named branch (e.g. golden-retriever, siamese) is created that derives from the selected branch, matching the behavior of the regular createWorktree flow.
  • Breed type preference is respected — the handler now reads the breedType setting (dogs or cats) from app_settings and passes it through to createWorktreeFromBranch, which uses selectUniqueBreedName to avoid collisions with existing branches and worktrees.
  • createWorktree now branches from the current branch instead of the repository's default branch, so new worktrees inherit the currently checked-out context.
  • Right-click on the "new worktree" button opens the branch picker, giving users quick access to create a worktree from a specific branch without extra navigation.