[PR #5534] feat: Make recent models display and storage limit limit configurable (resolves #5533) #11458

Open
opened 2026-02-16 18:16:17 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5534

State: open
Merged: No


This resolves #5533 by making the number of recent models that are stored and displayed consistent, with a default of 5.

Additionally, an optional tui.recent_models_count setting that can be set in opencode.json is added that a user may choose to use if they'd prefer a different limit.

  • Add recent_models_count field to TUI config schema with default of 5
  • Replace hardcoded limits (10 for storage, 5 for display) with configurable value
  • Fixes confusing UX where F2/Shift+F2 cycled through models not visible in menu
  • Users can now configure via tui.recent_models_count in opencode.json

Resolves #5533

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5534 **State:** open **Merged:** No --- This resolves #5533 by making the number of recent models that are stored and displayed consistent, with a default of 5. Additionally, an optional `tui.recent_models_count` setting that can be set in `opencode.json` is added that a user may choose to use if they'd prefer a different limit. - Add recent_models_count field to TUI config schema with default of 5 - Replace hardcoded limits (10 for storage, 5 for display) with configurable value - Fixes confusing UX where F2/Shift+F2 cycled through models not visible in menu - Users can now configure via tui.recent_models_count in opencode.json Resolves #5533
yindo added the pull-request label 2026-02-16 18:16:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11458