Skip to content

1.0.30

Choose a tag to compare

@morapelker morapelker released this 20 Feb 12:26
· 3137 commits to main since this release

What's Changed

Add recent worktrees/connections sidebar (#47)

  • New "Recent" sidebar section in the left sidebar that surfaces worktrees and connections with AI activity in the last hour, sorted by most recent activity
  • Toggle button (⚡ Zap icon) in the Projects header to show/hide the recent list, with visibility persisted in localStorage
  • New useRecentStore Zustand store managing recent state — tracks recent worktree/connection IDs, populates from DB on toggle-on, and updates in real-time as AI sessions generate messages
  • New DB query getRecentlyActiveWorktrees — queries SQLite for active worktrees with last_message_at within a configurable cutoff, exposed via IPC (db:worktree:getRecentlyActive) through the full Electron three-process pipeline (main → preload → renderer)
  • Real-time tracking in useOpenCodeGlobalListener — both assistant message events and session status changes now push worktree/connection IDs into the recent store, so data is always fresh even before the panel is opened
  • Rich item rendering — each recent item shows status icons (spinning loader for working/planning, alert for answering/permission, map for plan_ready), model icons, live git branch names, project context (Project › branch), connection color dots, and unread indicators
  • Lazy worktree loading — when populating recent items, ensures parent project worktrees are loaded into the store even if the project is collapsed in the sidebar
  • Type update — added custom_name field to the Connection interface in index.d.ts

Fix auto-update toast z-index by repositioning to bottom-left (#46)

  • Fix auto-update toast visibility: Repositioned the Sonner toast notification from the default position to bottom-left to resolve a z-index issue where auto-update toasts were being obscured by other UI elements.

Update modification time for connection sessions (#45)

  • Connection session support for last-message timestamps: When a session belongs to a connection (multi-worktree), the last message time is now updated for all member worktrees in the connection, not just a single worktree.
  • SessionView.tsx: After sending a message in a connection session, iterates over all connection members and calls setLastMessageTime for each member's worktree.
  • useOpenCodeGlobalListener.ts: When a background session completes, checks if the session belongs to a connection (via sessionsByConnection). If so, updates the last message time for all member worktrees in that connection. Falls back from worktree-based lookup to connection-based lookup to cover both cases.

These changes ensure that activity in a connection session is properly reflected across all worktrees that are part of that connection, keeping the sidebar modification indicators accurate.