Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat: add Copilot support for AI workflow editing (Beta)#469

Merged
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom
feat/multi-cli-providerbreaking-brake/cc-wf-studio:feat/multi-cli-providerCopy head branch name to clipboard
Jan 19, 2026
Merged

feat: add Copilot support for AI workflow editing (Beta)#469
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom
feat/multi-cli-providerbreaking-brake/cc-wf-studio:feat/multi-cli-providerCopy head branch name to clipboard

Conversation

@breaking-brake
Copy link
Copy Markdown
Owner

Summary

Add GitHub Copilot as an alternative AI provider for workflow refinement, using VS Code Language Model API (vscode.lm).

Users can now choose between Claude Code CLI and Copilot in the refinement settings dropdown.

Changes

New Files

  • src/extension/services/vscode-lm-service.ts - VS Code LM API wrapper with streaming support
  • src/extension/services/ai-provider.ts - Provider abstraction layer for routing between Claude Code and Copilot

Modified Files (Key Changes)

Extension Host:

  • workflow-refinement.ts - Extract provider and copilotModel from payload
  • refinement-service.ts - Add provider switch session detection, route to ai-provider
  • claude-code-service.ts - Add MODEL_NOT_SUPPORTED error code type

Webview:

  • SettingsDropdown.tsx - Add Provider selection UI, Copilot model dropdown with premium request multiplier
  • refinement-store.ts - Add selectedProvider and selectedCopilotModel state with localStorage persistence
  • error-messages.ts - Add MODEL_NOT_SUPPORTED error handling

i18n (5 languages):

  • Add session warning reason for AI provider switch
  • Add MODEL_NOT_SUPPORTED error message

Features

  • ✅ Provider selection (Claude Code / Copilot) in settings dropdown
  • ✅ Dynamic Copilot model list fetched from vscode.lm.selectChatModels()
  • ✅ Streaming response support for Copilot
  • ✅ Session discontinuation detection when switching from Claude Code to Copilot
  • ✅ MODEL_NOT_SUPPORTED error with user-friendly message for disabled models
  • ✅ Hide Allowed Tools when Copilot selected (not supported by LM API)
  • ✅ Premium Request multiplier link for Copilot models
  • ✅ Model deduplication (by family and name)

Technical Notes

  • Backward Compatibility: engines.vscode remains at ^1.80.0 with runtime detection
  • LM API Requirements: VS Code 1.89+ with GitHub Copilot extension
  • Session Handling: Copilot doesn't support session continuation; conversation history is rebuilt in prompt
  • Tool Support: --allowed-tools not supported with Copilot provider

Testing

  • Manual E2E testing completed
    • Provider switch from Claude Code to Copilot
    • Copilot streaming response
    • Model selection and persistence
    • Error handling for disabled models
  • Code quality checks passed (npm run format && npm run lint && npm run check)
  • Build verified (npm run build)

🤖 Generated with Claude Code

- Add AI provider selection (Claude Code / Copilot) in refinement settings
- Implement VS Code LM API service with streaming support
- Add dynamic Copilot model fetching from vscode.lm API
- Add provider switch session discontinuation detection
- Add MODEL_NOT_SUPPORTED error code for Copilot model access issues
- Hide Allowed Tools setting when Copilot is selected
- Add Premium Request multiplier link for Copilot models

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@breaking-brake breaking-brake changed the title feat: add Copilot support for AI workflow editing feat: add Copilot support for AI workflow editing (Beta) Jan 19, 2026
@breaking-brake breaking-brake merged commit e655136 into main Jan 19, 2026
3 checks passed
@breaking-brake breaking-brake deleted the feat/multi-cli-provider branch January 19, 2026 14:54
@breaking-brake breaking-brake mentioned this pull request Jan 19, 2026
braking-brake-semantic-release Bot pushed a commit that referenced this pull request Jan 19, 2026
## [3.16.0](v3.15.3...v3.16.0) (2026-01-19)

### Features

* add Copilot support for AI workflow editing ([#469](#469)) ([e655136](e655136))
@braking-brake-semantic-release
Copy link
Copy Markdown

🎉 This PR is included in version 3.16.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.