Skip to content

fix: hide session pinning feature to avoid conflict with bookmarking#282

Open
ariane-emory wants to merge 1 commit into
devfrom
fix/hide-session-pinning-feature
Open

fix: hide session pinning feature to avoid conflict with bookmarking#282
ariane-emory wants to merge 1 commit into
devfrom
fix/hide-session-pinning-feature

Conversation

@ariane-emory
Copy link
Copy Markdown
Owner

Fix: Hide session pinning UI to avoid conflict with bookmarking

Problem

The dev branch includes a built-in session pinning feature that:

  • Uses local JSON storage (~/.local/state/opencode/session.json)
  • Shows slot numbers (1–9) beside pinned sessions in the session list
  • Provides ctrl+f to pin/unpin in the session list dialog
  • Displays quick-switch hints in the dialog footer

This conflicts with feat/session-bookmarks (PR#102), which provides a more robust server-synced bookmarking system that stores pin state on the session object itself (session.time.pinned).

Solution

Remove the UI exposure of the dev branch's local pinning feature while preserving backward compatibility:

  • Keep the keybind definition and local storage (existing user configs remain valid)
  • Remove the pin/unpin action from the session list dialog
  • Remove slot number gutters from session list items
  • Remove quick-switch footer hints
  • Remove pin-related tips from the tips view

Files Changed

  • packages/opencode/src/cli/cmd/tui/component/dialog-session-list.tsx — Removed pin action, slot gutters, and quick-switch hints
  • packages/opencode/src/cli/cmd/tui/feature-plugins/home/tips-view.tsx — Removed pin-related tips

Backward Compatibility

Existing user configurations with session_pin_toggle keybinds are preserved. The keybind simply has no visible effect in the UI. When feat/session-bookmarks is present, the server-synced bookmarking system takes over entirely.

The dev branch has a built-in session pinning feature that uses local
storage and shows slot numbers. This conflicts with the feat/session-bookmarks
branch which provides a more robust server-synced bookmarking system.

Changes:
- Remove pin/unpin action from session list dialog
- Remove slot number gutters from session list items
- Remove quick-switch footer hints
- Remove pin-related tips from tips view

The keybind definition and local storage are preserved to maintain
backward compatibility with existing user configurations. The feature
is simply no longer exposed in the UI.
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