Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: remember ordered list of recent agents instead of single last-used#65

Merged
matt2e merged 1 commit intomainfrom
remember-last-agent
Feb 12, 2026
Merged

fix: remember ordered list of recent agents instead of single last-used#65
matt2e merged 1 commit intomainfrom
remember-last-agent

Conversation

@matt2e
Copy link
Contributor

@matt2e matt2e commented Feb 12, 2026

Replace the single aiAgent preference with an ordered recentAgents list (most-recent-first, capped at 10). Add getPreferredAgent(available) which walks the list and returns the first agent present in the given context, so local and remote environments each auto-select the best available agent.

  • Migrate legacy ai-agent store key to recent-agents on first load
  • Update AgentSelector, AgentDropdown, NewSessionModal, and SessionLauncher to use getPreferredAgent with their respective available agent lists

Replace the single `aiAgent` preference with an ordered `recentAgents`
list (most-recent-first, capped at 10). Add `getPreferredAgent(available)`
which walks the list and returns the first agent present in the given
context, so local and remote environments each auto-select the best
available agent.

- Migrate legacy `ai-agent` store key to `recent-agents` on first load
- Update AgentSelector, AgentDropdown, NewSessionModal, and
  SessionLauncher to use `getPreferredAgent` with their respective
  available agent lists
@matt2e matt2e changed the title feat: remember ordered list of recent agents instead of single last-used fix: remember ordered list of recent agents instead of single last-used Feb 12, 2026
@matt2e matt2e merged commit 883bc37 into main Feb 12, 2026
2 checks passed
@matt2e matt2e deleted the remember-last-agent branch February 12, 2026 19:01
taylorkmho added a commit that referenced this pull request Feb 12, 2026
* origin/main:
  feat: async worktree creation (#71)
  fix: Skip main worktree on project import and remove main badge UI (#70)
  feat(ui): replace long-press picker with explicit New note / New commit buttons (#67)
  fix: remember ordered list of recent agents instead of single last-used (#65)
  fix: capitalize 'Staged' in macOS application menu (#64)
  fix: dismiss new branch dialog immediately for remote branches (#57)
  feat: add Amp (Sourcegraph) as a supported ACP agent (#55)
  feat: restore subfolder autocomplete in new project dialog (#56)
  Consolidate ACP implementations into acp-client crate (#52)

# Conflicts:
#	staged/src/lib/BranchCard.svelte
#	staged/src/lib/NewSessionModal.svelte
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.

1 participant