Feat: Add F2 Keybind to Cycle Through the 5 Most Recent Models (#1778)

This commit is contained in:
spoons-and-mirrors
2025-08-11 14:00:32 +02:00
committed by GitHub
parent 8db75266d0
commit 73a8356b10
3 changed files with 44 additions and 0 deletions

View File

@@ -1148,6 +1148,11 @@ func (a Model) executeCommand(command commands.Command) (tea.Model, tea.Cmd) {
case commands.AgentListCommand:
agentDialog := dialog.NewAgentDialog(a.app)
a.modal = agentDialog
case commands.ModelCycleRecentCommand:
slog.Debug("ModelCycleRecentCommand triggered")
updated, cmd := a.app.CycleRecentModel()
a.app = updated
cmds = append(cmds, cmd)
case commands.ThemeListCommand:
themeDialog := dialog.NewThemeDialog()
a.modal = themeDialog