Skip to content

Feature Request: Session favorites/bookmarks with keyboard shortcut (Ctrl+F) #10854

@Her-xanadu

Description

@Her-xanadu

Summary

Add the ability to favorite/bookmark sessions for easier organization and quick access, especially for long-term users who accumulate hundreds of sessions over time.

Motivation

When using OpenCode for months or years, the session list becomes overwhelming with purely time-based sorting. Users need a way to:

  • Mark important sessions for quick access
  • Organize sessions by category/project
  • Archive completed work sessions

Proposed Solution

1. Quick Favorite (Minimal)

  • Add Ctrl+F keyboard shortcut in TUI to toggle favorite on current session
  • Show ⭐ icon next to favorited sessions in session list
  • Add filter option to show only favorites

2. Session Tags/Categories (Extended)

  • Allow adding custom tags to sessions (e.g., work, learning, archived)
  • Filter session list by tag
  • Store metadata in ~/.config/opencode/session-meta/ (separate from core session data)

Suggested Session JSON Extension

{
  "id": "ses_xxx",
  "title": "...",
  "favorite": true,
  "tags": ["work", "important"],
  ...
}

Alternatives Considered

  • External tools like agent-archives - has compatibility issues (Python path problems on macOS)
  • Custom slash commands with shell scripts - works but not as smooth as native TUI integration

Additional Context

I've created a workaround using a shell script (oc-session) and custom /tag command, but native TUI support would be much better UX.

Would be happy to contribute a PR if the team is open to this feature direction.

Metadata

Metadata

Assignees

Labels

opentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions