Commit Graph
10 Commits
Author SHA1 Message Date
Adrian Glapiński 035adc610c fix(ai): restore Copilot reasoning controls
fixes #773
2026-04-26 12:37:37 +02:00
Abir Biswasandcan1357 bafa3b8a06 fix: github.com enterprise routing and structured Copilot OAuth credentials 2026-04-09 18:47:08 +02:00
Abir Biswasandcan1357 31e4b91019 feat(ai): replace GitHub Copilot auth with opencode OAuth flow
Replace VSCode extension impersonation (client ID Iv1.b507a08c87ecfe98,
User-Agent GitHubCopilotChat/0.35.0) with the opencode OAuth app
(Ov23li8tweQw6odWQebz, User-Agent opencode/1.3.15).

Key changes:
- OAuth device flow now uses JSON body encoding and opencode headers
- GitHub OAuth token is used directly for all API requests; no JWT
  exchange or refresh cycle needed
- Base URL changed from api.individual.githubcopilot.com to
  api.githubcopilot.com across models.json, openai-compat.ts, and
  the oauth module
- Removed proxy-ep JWT base URL extraction from github-copilot-headers.ts
  and openai-compat.ts (resolveGitHubCopilotBaseUrl now passes through
  the model baseUrl unchanged)
- refreshGitHubCopilotToken is now a synchronous identity return
- All 25 bundled Copilot model definitions updated to new headers/baseUrl
- Tests updated to reflect plain GitHub token format and new base URL

Existing users will need to re-authenticate once with /login github-copilot.
2026-04-09 18:47:08 +02:00
ccfd53c318 fix(ai): normalize anthropic base URLs (#561)
Co-authored-by: Zakhar Kogan <36503576+zaharkogan@users.noreply.github.com>
2026-03-29 17:48:54 +02:00
can1357 ea1d76b79e fix(tests): typing in tests for Context and event typing 2026-03-14 11:06:32 +01:00
can1357 3056caee91 chore: reformat 2026-03-14 10:46:26 +01:00
inprealphaandGitHub 68894ab78b fix(coding-agent): attribute automatic compaction as agent (#397)
* fix(coding-agent): preserve Copilot initiator for auto-compaction

* fix(coding-agent): scope compaction initiator to auto mode

* test(ai): cover copilot initiator override in providers
2026-03-14 10:43:00 +01:00
can1357 0611e97dbc fix(ai,coding-agent): resolve copilot endpoint at provider layer
Fixes #260
2026-03-03 05:33:56 +01:00
can1357 5d32f93c0d fix(ai): improved error handling and provider robustness
- Added raw HTTP request dumps to error messages for 400 status codes.
- Implemented client-side retry for Anthropic streaming on transient errors.
- Preserved context by converting aborted assistant tool calls to text.
- Optimized model registry refresh in coding agent sessions.
2026-02-20 22:22:04 +01:00
can1357 c12be01a5f fix(coding-agent): backported pi-mono changes (34878e..5133697)
packages/ai:
- fix: hardened OpenAI tool-call JSON parsing for malformed trailing arguments
- feat: routed GitHub Copilot Claude 4.x models through anthropic-messages
- feat: centralized dynamic Copilot headers and anthropic bearer auth handling
- feat: added optional StreamOptions.metadata propagation
- test: added Copilot headers/auth/routing coverage
- fix: updated model generator and models.json for Copilot Claude API mapping

packages/coding-agent:
- fix: made CLI model resolution deterministic with provider-aware pattern parsing
- fix: corrected compaction boundary/context usage handling after compaction
- feat: expanded extension events and terminal input hook integration
- fix: hardened git source parsing to avoid local-path misclassification
- test: added git-url parser coverage and model-resolver cases

packages/tui:
- fix: scoped @ fuzzy autocomplete to typed path prefixes
- feat: added Windows VT input mode support via bun:ffi

docs:
- chore: updated porting sync point to 5133697
2026-02-16 10:08:53 +01:00