Skip to content

Conversation

@ariane-emory
Copy link
Contributor

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

@ariane-emory ariane-emory changed the title feat: Make recent models display and storage limit limit configurable (resolves #5533) feat: Make recent models display and storage limit limit configurable (resolves #5533) Dec 14, 2025
@ariane-emory ariane-emory marked this pull request as draft December 14, 2025 20:04
Add tui.recent_models_count setting to allow users to configure how many
recent models are stored and displayed in the model selection dialog.

- Add recent_models_count field to TUI config schema (1-50, default 10)
- Update storage logic in local.tsx to use configurable limit
- Update display logic in dialog-model.tsx to use same limit
- Regenerate TypeScript SDK to include new field

Fixes sst#5533
@ariane-emory ariane-emory force-pushed the feat/configurable-recent-models-limit branch from 9702d66 to 1f128eb Compare December 14, 2025 21:06
@ariane-emory ariane-emory marked this pull request as ready for review December 14, 2025 21:10
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.

Confusing/inconsistent recent models UX

1 participant