Commit graph

20888 commits

Author SHA1 Message Date
Kit Langton
2f0dd2ebc5 fix(core): bound concurrent session resumes after restart
After a server restart every suspended session and recovered subagent resumed at once (concurrency unbounded), so ~40 turns hit their first model request together and froze the host.

Resumes now go through a Semaphore (Options.maxConcurrentResumes, default 3). The permit is taken on the sweep fiber before the attempt is counted, and held until the resumed turn's first step ends or fails (session.step.ended / session.step.failed, subscribed before the turn starts), the turn ends, or 60 seconds pass. It is never released just because the resume fiber was forked.

- Shell notices first, then settled subagent results, then running subagent children through the gate, then suspended sessions most recently updated first (listSuspended now orders by time_updated desc).
- countResume and the 'Continuing after restart' synthetic run inside the slot, so queued sessions are not charged an attempt until they start. Ownership (local job, child/parent existence, active execution, claim) is re-checked at admission.
- Each session leaves the early-notice set as soon as its own resume is accounted for, so a parent that already resumed and went idle is still woken by a child result while older sessions wait in line.
- resumeSuspendedSessions completes once every resume has started rather than right away. Existing tests assert accounting as soon as it returns, and every caller already forks it.

Attempt budget and shell recovery are unchanged.
2026-10-25 05:23:11 -07:00
opencode-agent[bot]
b79dce4ce3
fix(app): name variant shortcut consistently (#58951)
Co-authored-by: vimtor <36263538+vimtor@users.noreply.github.com>
2026-10-25 11:03:25 +00:00
opencode-agent[bot]
53f83e77fc
feat(core): expose MCP server title from serverInfo (#58950)
Co-authored-by: vimtor <36263538+vimtor@users.noreply.github.com>
2026-10-25 11:02:29 +00:00
opencode-agent[bot]
7a83c69fe1
fix(app): let a custom Close tab shortcut close terminal and browser tabs (#58945)
Co-authored-by: vimtor <36263538+vimtor@users.noreply.github.com>
2026-10-25 10:47:03 +00:00
Victor Navarro
a41d09bc78
feat(core): merge Console config as a config layer (#57703) 2026-10-25 11:04:41 +01:00
Dax
32b57015e5
ci: gate production deploys and release publishing behind approval environments (#58898) 2026-10-25 01:57:05 -04:00
Aiden Cline
8fd2ec1b72
feat(ai): send min_p on xAI Responses (#58889) 2026-10-25 00:27:58 -05:00
opencode-agent[bot]
9a1f3d4250
ci: remove issue triage workflow, agent, and tool (#58888)
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2026-10-25 00:27:44 -05:00
Aiden Cline
dbdf7750a7
fix(ai): keep cassettes of filtered tests when recording (#58890) 2026-10-25 00:27:31 -05:00
Dax
2afdbcdd82
ci: gate versioned releases behind the release environment (#58885) 2026-10-25 01:15:11 -04:00
Aiden Cline
0b7f4c4161
fix(core): revalidate the models.dev catalog with its ETag (#58813) 2026-10-24 23:34:27 -05:00
Aiden Cline
b367fdd168
fix(ai): send top_k and drop penalties for xAI Responses (#58868) 2026-10-24 23:23:21 -05:00
Aiden Cline
b7321f7fcc
feat(ai): add Anthropic fast mode speed option (#58870) 2026-10-24 23:23:10 -05:00
Aiden Cline
4c8f4fceda
fix(ai): let Groq use the shared Chat parallel_tool_calls and service_tier (#58871) 2026-10-24 23:22:46 -05:00
Aiden Cline
ed623cc648
feat(ai): add OpenAI Responses reasoning mode and context options (#58872) 2026-10-24 23:22:31 -05:00
Aiden Cline
16cd50db22
fix(ai): keep known throttles out of overflow matching (#58866) 2026-10-24 23:12:18 -05:00
Aiden Cline
d7e56bc25e
fix(ai): send OpenAI Chat options that were silently dropped (#58857) 2026-10-24 23:07:07 -05:00
Aiden Cline
9cbdffcb06
fix(core): import ToolDefinition from @opencode/ai/effect (#58861) 2026-10-24 22:55:04 -05:00
Aiden Cline
ead522a7df
fix(ai): preserve text and reasoning after the finish reason (#58851) 2026-10-24 22:54:39 -05:00
Aiden Cline
e0b6039e1f
refactor(core): convert tool schemas once at registration (#58848) 2026-10-24 22:22:35 -05:00
Aiden Cline
dad29a8991
refactor(ai): make Promise the root entry and move Effect to @opencode/ai/effect (#58847) 2026-10-24 22:18:23 -05:00
Aiden Cline
ddd9e103fe
fix(ai): support Responses video inputs (#58615) 2026-10-24 21:15:31 -05:00
Aiden Cline
1cf1d43967
fix(ai): support Messages video inputs (#58614) 2026-10-24 21:13:59 -05:00
Aiden Cline
097a93e511
feat(ai): replace experimental evaluation with Decision (#58758) 2026-10-24 20:06:45 -05:00
opencode-agent[bot]
c34a5768d2 chore(core): refresh bundled models.dev snapshot 2026-10-25 00:45:00 +00:00
Aiden Cline
6ac6549a0a
fix(ai): classify failed Google Interactions by reported errors (#58771) 2026-10-24 18:15:06 -05:00
Aiden Cline
252ed4a2d8
fix(ai): classify AWS modeled errors from every restJson1 identity location (#58770) 2026-10-24 18:14:40 -05:00
Aiden Cline
bd2ba0a685
fix(schema): validate base64 attachments in linear time (#58811) 2026-10-24 18:13:42 -05:00
Kit Langton
13a615b902
perf(core): convert each tool schema once (#58798) 2026-10-24 14:34:15 -07:00
Kit Langton
e573115f17
perf(core): cache git discovery in Project.resolve by metadata fingerprint (#58616) 2026-10-24 14:34:07 -07:00
opencode-agent[bot]
0093fe5782
docs(go): add Iceman Contributor Free (#58792)
Co-authored-by: dc85 <83497+dc85@users.noreply.github.com>
2026-10-24 13:24:13 -07:00
Anmol
3de8f3a89f
fix(tui): contain plugin slots and routes that render bare text (#58144)
Co-authored-by: Daniel Smolsky <dannysmo@gmail.com>
2026-10-24 15:24:44 -04:00
opencode-agent[bot]
17b79f4e0c
chore(github): pin actions/cache to commit SHA in GitHub Action (#58769)
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
2026-10-24 13:05:12 -05:00
Adam
de284dc1bc
refactor(core): keep Go allowance out of messages and sessions (#58765) 2026-10-24 13:05:02 -05:00
Irish Joseph
1aeb6464d5
fix(ai): classify Bedrock throttling as a retryable rate limit (#58759) 2026-10-24 12:57:31 -05:00
Aiden Cline
2dc8db4a9d
fix(core): skip malformed MCP tools instead of failing the server (#58350) 2026-10-24 12:45:34 -05:00
Walter
99845391b7
fix(core): match absolute instruction globs across directories (#58749) 2026-10-24 12:42:49 -05:00
opencode-agent[bot]
05bc77fbc6
docs(go): remove deprecated LongCat 2.5 Preview Free (#58267)
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
2026-10-24 13:37:03 -04:00
Aiden Cline
a5328d2b66
fix(core): fill Bedrock endpoint region from provider settings (#58538) 2026-10-24 12:33:51 -05:00
Aiden Cline
53b044d313
fix(ai): encode video in Chat routes by default (#58613) 2026-10-24 12:26:47 -05:00
Adam
cab780b970
docs(console): document the estimated BYOK cost in inference responses (#58752) 2026-10-24 12:18:14 -05:00
DS
7ba0e4b67b
chore(ci): skip CI on draft pull requests (#58750) 2026-10-24 12:52:17 -04:00
Adam
5e4aa55cda
feat(tui): show OpenCode Console usage limits (#58731) 2026-10-24 11:19:56 -05:00
Adam
e42f6d1016
feat(core): read OpenCode Console usage limits and classify budget refusals (#58694) 2026-10-24 11:13:12 -05:00
opencode-agent[bot]
6806c6e29a
docs(go): replace Gemini 4 Argon Contributor with Gemini 4 Argon (#58723)
Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
2026-10-24 08:10:16 -07:00
opencode-agent[bot]
20a6cc7291 chore(core): refresh bundled models.dev snapshot 2026-10-24 12:20:37 +00:00
Adam
f20760b8bf
docs(console): document cost and allowance in inference responses (#58660) 2026-10-24 03:54:51 -05:00
Adam
1873fbe304
feat(app): show Go allowance when a session costs nothing (#58566) 2026-10-24 03:43:56 -05:00
Adam
9109bcf136
feat(tui): show Go allowance when a session costs nothing (#58565) 2026-10-24 03:43:38 -05:00
Adam
4cba1b7f5d
feat(core): record reported cost and Go allowance (#58562) 2026-10-24 03:32:36 -05:00