Summary
Allow each project to have its own preferred AI provider, overriding the global default. When the user clicks "New AI session" on a project, DPlex starts the session with that project's preferred provider.
Acceptance criteria
Files to touch
src/renderer/src/types/index.ts (extend Project)
src/renderer/src/stores/projectStore.ts (startAISession, persistence)
src/renderer/src/components/projects/ProjectItem.tsx (menu UI)
tests/unit/project-store-active.test.ts (cover the override)
How to test
- Create two projects, set one to Copilot CLI and another to Claude Code, leaving global default alone.
- "New AI session" on each → expect the right tool starts.
Effort: 1 day.
Summary
Allow each project to have its own preferred AI provider, overriding the global default. When the user clicks "New AI session" on a project, DPlex starts the session with that project's preferred provider.
Acceptance criteria
ProjectwithdefaultProviderId?: string.startAISession(project)honors it (currently uses the globaldefaultAIToolsetting).settings.jsonalongside other project metadata.Files to touch
src/renderer/src/types/index.ts(extendProject)src/renderer/src/stores/projectStore.ts(startAISession, persistence)src/renderer/src/components/projects/ProjectItem.tsx(menu UI)tests/unit/project-store-active.test.ts(cover the override)How to test
Effort: 1 day.