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.
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:
Proposed Solution
1. Quick Favorite (Minimal)
Ctrl+Fkeyboard shortcut in TUI to toggle favorite on current session2. Session Tags/Categories (Extended)
work,learning,archived)~/.config/opencode/session-meta/(separate from core session data)Suggested Session JSON Extension
{ "id": "ses_xxx", "title": "...", "favorite": true, "tags": ["work", "important"], ... }Alternatives Considered
agent-archives- has compatibility issues (Python path problems on macOS)Additional Context
I've created a workaround using a shell script (
oc-session) and custom/tagcommand, 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.