Feature hasn't been suggested before.
Describe the enhancement you want to request
The session list limit is hardcoded to 100 in Session.list() (packages/opencode/src/session/index.ts: const limit = input?.limit ?? 100). Once you accumulate more than 100 main sessions, older ones silently disappear from the TUI and opencode session list. This makes it look like sessions were deleted when they're just past the cutoff.
What makes it worse: subagent sessions (with parent_id) are stored in the same table. In my project I have 735 total sessions but only 98 are main sessions — the rest are subagent. If the limit ever counted those mixed in, the effective visible window would be even smaller.
What I'd like:
- A config key (e.g.
session.listLimit) to control how many sessions are shown
- Gating the list limit for main agent sessions only so it doesn't factor in subagent ones
Environment: Windows 11, OpenCode 1.2.25
Feature hasn't been suggested before.
Describe the enhancement you want to request
The session list limit is hardcoded to 100 in
Session.list()(packages/opencode/src/session/index.ts:const limit = input?.limit ?? 100). Once you accumulate more than 100 main sessions, older ones silently disappear from the TUI andopencode session list. This makes it look like sessions were deleted when they're just past the cutoff.What makes it worse: subagent sessions (with
parent_id) are stored in the same table. In my project I have 735 total sessions but only 98 are main sessions — the rest are subagent. If the limit ever counted those mixed in, the effective visible window would be even smaller.What I'd like:
session.listLimit) to control how many sessions are shownEnvironment: Windows 11, OpenCode 1.2.25