Commit graph

5899 commits

Author SHA1 Message Date
Shoubhit Dash
b4344098de fix(mcp): validate oauth callback port range 2026-05-22 16:47:36 +05:30
Sebin Thomas
bca26b0094 test(mcp): add McpOAuthProvider unit tests for scope and callbackPort
Covers:
- redirectUrl uses callbackPort when set, falls back to default 19876
- redirectUri takes precedence over callbackPort when both are set
- clientMetadata includes scope when set in config
- clientMetadata omits scope when not set (backward compat)
- token_endpoint_auth_method based on clientSecret presence

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-05-22 12:08:51 +02:00
Sebin Thomas
e9ca7d292b fix(mcp): include scope in clientMetadata and add callbackPort option
Two related OAuth issues with remote MCP servers:

1. `scope` config field was accepted but never propagated to
   `clientMetadata`. The MCP SDK uses `clientMetadata.scope` as its
   last-resort fallback when neither the WWW-Authenticate header nor
   the Protected Resource Metadata (scopes_supported) advertise scopes.
   For servers whose metadata returns no scopes (e.g. AWS Bedrock
   AgentCore), the authorization request was sent with no scope
   parameter, causing IdPs such as Okta to reject with
   "No scopes were requested."

2. The callback port was hardcoded to 19876 with no way to override it
   short of providing a full `redirectUri`. Added `callbackPort` as a
   shorthand in the OAuth config — when set it constructs the redirect
   URI as `http://127.0.0.1:<callbackPort>/mcp/oauth/callback`.
   `redirectUri` still takes precedence if both are provided.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-05-22 11:58:19 +02:00
opencode-agent[bot]
9f06accfb4 chore: generate 2026-05-22 04:04:41 +00:00
JPFrancoia
7a9724496b
fix(vertex): Vertex (Antropic) provider: use .rep.googleapis.com for continental multi-region endpoints (us, eu) (#28347)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-05-21 23:03:24 -05:00
Aiden Cline
3e931152d1
tweak(tui): remove italics from thinking labels (#28737) 2026-05-21 22:22:51 -05:00
opencode-agent[bot]
87d4cb07b0 chore: generate 2026-05-21 22:36:00 +00:00
James Long
ee008923f3
feat(tui): design revamp of diff viewer (#28728) 2026-05-21 18:34:32 -04:00
Kit Langton
e92c4fb460
chore: drop dead imports across opencode/core/llm (#28720) 2026-05-21 17:03:12 -04:00
OpeOginni
4b496066bf
fix(opencode): update spinner color logic (#28032)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-05-21 16:02:08 -05:00
Kit Langton
2935d1819e
refactor(server): rename Fence.waitEffect to Fence.wait (#28717) 2026-05-21 20:48:15 +00:00
Kit Langton
86907e2e4a
refactor(server): drop dead Fence.wait + redundant casts (#28710) 2026-05-21 16:35:44 -04:00
Kit Langton
b99787e95b
refactor(opencode): fetch remote config with http client (#28661) 2026-05-21 15:53:44 -04:00
opencode-agent[bot]
9ecb04e35b chore: generate 2026-05-21 19:19:25 +00:00
Kit Langton
231689c767
test(config): port env-var config tests to it.instance (#28706) 2026-05-21 19:17:29 +00:00
Kit Langton
40da77e77c
test(opencode): cover native reasoning continuation (#28683) 2026-05-21 14:50:37 -04:00
Shoubhit Dash
82b796ce31
fix(httpapi): return session busy error bodies (#28684) 2026-05-21 22:53:49 +05:30
Vladimir Glafirov
6c24062d2f
chore(deps): bump gitlab-ai-provider to 6.7.0 (#28218) 2026-05-21 12:12:39 -05:00
opencode-agent[bot]
3ca09ee3ef chore: generate 2026-05-21 16:50:49 +00:00
Kit Langton
003f1ce0f4
test(control-plane): finish porting workspace.test.ts to it.instance (#28665) 2026-05-21 12:48:59 -04:00
Kit Langton
61390dbb49
fix(llm): preserve native continuation metadata (#28678) 2026-05-21 11:57:45 -04:00
opencode
a58c3c53a9 sync release versions for v1.15.7 2026-05-21 15:51:26 +00:00
opencode-agent[bot]
6bee6ee755 chore: generate 2026-05-21 11:01:36 +00:00
Shoubhit Dash
9739d75892
fix(httpapi): handle corrupt v2 session messages (#28633) 2026-05-21 16:30:04 +05:30
Shoubhit Dash
2697cb8001
fix(httpapi): remove config error middleware special case (#28631) 2026-05-21 15:57:25 +05:30
Shoubhit Dash
fc08292136
fix(httpapi): add unknown error references (#28629) 2026-05-21 15:44:35 +05:30
Shoubhit Dash
f5d20c580b
fix(httpapi): expose unavailable v2 session mutations (#28624) 2026-05-21 15:12:13 +05:30
Brendan Allan
7d5e91b801
opencode: provide channel to web build (#28612) 2026-05-21 17:22:27 +08:00
opencode-agent[bot]
f70afbea34 chore: generate 2026-05-21 07:58:37 +00:00
Shoubhit Dash
b275b12e90
fix(httpapi): expose v2 session not found (#28511) 2026-05-21 13:27:20 +05:30
opencode-agent[bot]
6602341c0d chore: generate 2026-05-21 05:14:43 +00:00
Milosz Jankiewicz
b32debb8a3
feat(opencode): add xAI Grok OAuth (SuperGrok) + device-code login (#28557)
Co-authored-by: Jaaneek <Jaaneek@users.noreply.github.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-05-21 00:13:28 -05:00
cooper-oai
c64ac905e1
fix(opencode): dedupe concurrent Codex OAuth refreshes (#28236)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-05-20 23:34:31 -05:00
opencode-agent[bot]
7a554441b4 chore: generate 2026-05-21 04:02:29 +00:00
Kit Langton
14366af069
test(session): port llm.test.ts to it.instance (#28578) 2026-05-21 04:01:13 +00:00
opencode-agent[bot]
d9ed62e51c chore: generate 2026-05-21 03:37:50 +00:00
Kit Langton
39ea816a72
refactor(opencode): roll out serviceUse proxy across 14 services + tests (#28576) 2026-05-21 03:36:27 +00:00
Kit Langton
69eee26f30
refactor(permission): drop redundant inner decode in Permission.ask (#28575) 2026-05-21 03:34:46 +00:00
opencode-agent[bot]
8f3949d235 chore: generate 2026-05-21 03:30:58 +00:00
Kit Langton
facd207396
fix(opencode): support native OpenAI OAuth fetch (#28571) 2026-05-20 23:29:25 -04:00
opencode-agent[bot]
2b28cc9024 chore: generate 2026-05-21 03:24:51 +00:00
Kit Langton
d37f9e770b
test(control-plane): port workspace.test.ts to it.instance (#28572) 2026-05-21 03:23:26 +00:00
Kit Langton
8fc02b0130
refactor(question): tool-arg errors at the boundary, drop redundant inner decode (#28570) 2026-05-21 03:06:22 +00:00
Kit Langton
ddf18a7f9c
test(server): port event SSE tests to it.instance + testEffectShared (#28569) 2026-05-21 02:55:54 +00:00
opencode-agent[bot]
fccfef1aaf chore: generate 2026-05-21 02:44:38 +00:00
Kit Langton
e0e8159965
test(opencode): port provider.test.ts to it.instance (#28565) 2026-05-21 02:43:14 +00:00
opencode-agent[bot]
9cd6e07a50 chore: generate 2026-05-21 02:32:58 +00:00
Kit Langton
c05ce3b725
test(opencode): port amazon-bedrock.test.ts to it.instance (#28559) 2026-05-20 22:31:42 -04:00
Kit Langton
26008696e1
fix(question): surface schema failures as friendly tool errors (#28563) 2026-05-21 02:03:03 +00:00
opencode-agent[bot]
172fd971c5 chore: generate 2026-05-21 01:53:45 +00:00