Skip to content

fix(agent): fall back to an available project agent#59

Open
khrypchenko wants to merge 1 commit intogrinev:mainfrom
khrypchenko:fix/project-agent-fallback
Open

fix(agent): fall back to an available project agent#59
khrypchenko wants to merge 1 commit intogrinev:mainfrom
khrypchenko:fix/project-agent-fallback

Conversation

@khrypchenko
Copy link

Summary

  • validate the stored agent against the selected project's available primary agents before opening a session, sending a prompt, or refreshing the keyboard
  • fall back to build (or the first available primary agent) and persist that choice so project switches do not send unsupported agent names to OpenCode
  • add regression coverage for project-specific agent fallback behavior and update command tests for the new resolver

Verification

  • npm run build
  • npm run lint
  • npm test

Keep the stored agent in sync with the selected project so switching worktrees does not send unsupported agent names to OpenCode.
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