Skip to content

Conversation

@hashcacher
Copy link

Summary

Adds a new sessions sidebar mode that displays all sessions in a persistent sidebar, allowing users to quickly navigate between sessions without opening a modal.

Changes

  • New Component: SessionsSidebar - Displays all sessions grouped by date
  • Configuration: Added sidebar_mode option to toggle between:
    • context (default): Shows current session's context, MCP, LSP, todos, diffs
    • sessions: Shows list of all sessions
  • Keybind: Added sidebar_mode_toggle (default: none) to switch between modes
  • UI Features:
    • Sessions grouped by date (Today, Yesterday, etc.)
    • Current session highlighted
    • Visual indicators for active/working sessions
    • Click to switch sessions
    • Displays up to 50 most recent sessions for performance

Usage

  1. Toggle sidebar: Ctrl+X then B (or configured keybind)
  2. Switch sidebar mode: Configure sidebar_mode_toggle keybind in config, or use command palette
  3. In sessions sidebar, click on any session to switch to it

Configuration Example

{
  "keybinds": {
    "sidebar_mode_toggle": "<leader>v"
  }
}

Motivation

Closes common user request for persistent sessions list in sidebar instead of modal popup. Makes it easier to navigate between many active sessions.

Screenshots/Demo

(Would be added before final merge with actual screenshots)

Testing

  • Tested sidebar toggle between context and sessions modes
  • Verified session grouping by date
  • Confirmed click navigation works
  • Checked visual indicators for active sessions

Checklist

  • Code follows project style guidelines
  • Added configuration documentation in code
  • Feature is backward compatible (defaults to existing behavior)
  • Screenshots/demo added (pending)
  • Tested in actual OpenCode TUI environment (requires build)

- Add new SessionsSidebar component to display all sessions in sidebar
- Add sidebar_mode config option to toggle between 'context' and 'sessions' views
- Add sidebar_mode_toggle keybind (default: none) to switch modes
- Sessions sidebar shows:
  - List of sessions grouped by date (Today, Yesterday, etc.)
  - Current session highlighted
  - Working/busy session indicators
  - Click to switch sessions
  - Limit display to 50 most recent sessions for performance

The sidebar can now show either:
1. Context view (default): Current session's context, MCP, LSP, todos, diffs
2. Sessions view: List of all sessions for easy navigation

Users can toggle between modes using Ctrl+X then pressing the configured
keybind, or via the command palette.
@hashcacher hashcacher marked this pull request as draft December 15, 2025 17:28
shuv1337 added a commit to Latitudes-Dev/shuvcode that referenced this pull request Dec 22, 2025
The sessions sidebar view feature from upstream PR anomalyco#5568 was buggy
and has been removed from the fork. This removes:
- SessionsSidebar component and related state
- sessions_sidebar_toggle keybind configuration
- Command palette toggle for sessions sidebar

Tracked in fork-features.json removedFeatures section.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant