Commit graph

652 commits

Author SHA1 Message Date
Aiden Cline
f5a6a4af7f Revert "fix: ensure that tool attachments arent sent as user messages (#8944)"
This reverts commit 8fd1b92e6e.
2026-01-16 15:50:24 -06:00
Aiden Cline
14d1e20287
Revert "fix(app): support anthropic models on azure cognitive services" (#8966) 2026-01-16 15:25:23 -06:00
Unies Ananda Raja
b8e2895dfc
fix(app): support anthropic models on azure cognitive services (#8335) 2026-01-16 15:24:06 -06:00
Aiden Cline
8fd1b92e6e
fix: ensure that tool attachments arent sent as user messages (#8944) 2026-01-16 12:47:43 -06:00
Aiden Cline
e0a854f035 Revert "fix: rm user message when dealing w/ image attachments, use proper tool attachment instead"
This reverts commit de2de099b4.
2026-01-16 09:33:54 -06:00
Aiden Cline
524ea95a00 update gpt models prompt 2026-01-16 01:34:01 -06:00
Aiden Cline
de2de099b4 fix: rm user message when dealing w/ image attachments, use proper tool attachment instead 2026-01-16 00:05:10 -06:00
Aiden Cline
d7192d6af9 tweak: set opencode as user agent for most interefence requests 2026-01-15 19:25:58 -06:00
Daniel Polito
8b08d340ac
fix: stop changing main model/agent from subtasks invocation (#7681)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-01-15 17:18:39 -06:00
seilk
9b57db30d1 feat: add litellmProxy provider option for explicit LiteLLM compatibility (#8658)
Co-authored-by: Mark Henderson <Mark.Henderson99@hotmail.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2026-01-15 22:01:15 +00:00
Qunhong Zeng
b14622352e
fix(session): ensure agent exists before processing title in session summary (#8662) 2026-01-15 15:24:13 -06:00
Brandon Smith
8d720f9463
fix(opencode): add input limit for compaction (#8465) 2026-01-15 01:35:16 -06:00
Aiden Cline
92931437c4
fix: codex id issue (#8605) 2026-01-15 01:31:50 -06:00
Cas
6e13e2f74e
fix(session): remove typo'd duplicate path import (#8408) (#8412)
Co-authored-by: opencode <opencode@sst.dev>
Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
2026-01-14 09:04:03 -06:00
Dax Raad
fcc561ebb7 fix plan mode when not in git worktree 2026-01-14 08:21:26 -05:00
zerone0x
f9fcdead55
fix(session): skip duplicate system prompt for Codex OAuth sessions (#8357)
Co-authored-by: Claude <noreply@anthropic.com>
2026-01-13 23:44:39 -06:00
Dax
0a3c72d678
feat: add plan mode with enter/exit tools (#8281) 2026-01-13 15:55:48 -05:00
Jason Kölker
d954e1e3b6
fix(session): store api url in metadata (#8090) 2026-01-12 17:22:42 -06:00
Dax Raad
71a7ad1a4e core: fix model selection in title generation to use user's model instead of assistant's 2026-01-12 12:45:24 -05:00
Andrey Taranov
8b9a85b7e7
fix(mcp): support resource content type in MCP tool output (#7879) 2026-01-11 21:39:42 -06:00
Spoon
4752c83155
feat: pass sessionID to chat.system.transform (#7718) 2026-01-10 18:21:51 -06:00
Aiden Cline
8b287caaad tweak codex instructions prompt for codex plan 2026-01-09 18:07:24 -06:00
Aiden Cline
172bbdaced
feat: codex auth support (#7537) 2026-01-09 17:47:37 -06:00
ryanwyler
a5edf3a311
fix: resolve broken forked sessions with compactions due to missing parent-child message references (#6445) 2026-01-09 11:42:55 -06:00
freespace8
542c9d5346
feat(flags): allow disabling .claude prompt and skills loading (#7205) 2026-01-08 00:10:25 -06:00
Dax
e37fd9c105
core: add interactive question tool for gathering user preferences and clarifying instructions (#7268) 2026-01-07 22:29:42 -05:00
Aiden Cline
2e4fe973c9 fix: issue w/ normal transform options conflicting w/ small model options when gen-ing title 2026-01-07 17:32:38 -06:00
Aiden Cline
1b82511fbd
feat: write truncated tool outputs to files (#7239) 2026-01-07 17:25:00 -06:00
M. Adel Alhashemi
34c9d106ee
refactor: simplify task tool subagent filtering (#7165)
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2026-01-07 13:28:13 -06:00
Aiden Cline
429240f439
ignore: add truncation funcs (#7178) 2026-01-07 01:43:06 -06:00
Sewer.
fd7b7eacd3
Added: Ability to hide subagents from primary agents system prompt. (#4773)
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-01-06 22:29:17 -06:00
Aiden Cline
625c9dae5c fix: ensure commands listing subagent work 2026-01-06 17:05:20 -06:00
Spoon
32e0b612d9
adding timeout (#7128) 2026-01-06 15:00:34 -06:00
Spoon
a10cc63403
feat: url based instructions (#7125) 2026-01-06 14:48:22 -06:00
Thomas Gormley
630476afc0
load OPENCODE_CONFIG_DIR AGENTS.md into the system prompt (#7115) 2026-01-06 13:43:55 -06:00
Aiden Cline
5db78f20e9 core: fix title generation for subtask-only messages to extract actual user prompts instead of generic tool execution descriptions 2026-01-06 13:30:39 -06:00
M. Adel Alhashemi
485aadcbfa
fix: restore skill filtering by agent permissions (#7042) 2026-01-06 12:01:37 -06:00
Melih Mucuk
a38e1701ee
fix: pass image parts to custom commands (#6525)
Co-authored-by: Melih Mucuk <melih@monkeysteam.com>
2026-01-05 13:06:57 -06:00
Melih Mucuk
554572bc39
fix: prevent main model thinking variant from applying to small model (#6839)
Co-authored-by: Melih Mucuk <melih@monkeysteam.com>
2026-01-04 13:28:22 -06:00
Paolo Ricciuti
21dc3c24d9
feat: mcp resources (#6542) 2026-01-04 09:12:54 -06:00
Aiden Cline
5aa4fd0042 core: add variant to chat.message input 2026-01-04 00:28:52 -06:00
Aiden Cline
f991fbbde8
core: ephemerally wrap queued user messages with reminder to stay on track (#6725) 2026-01-02 22:42:56 -06:00
Dax
3c41e4e8f1
chore: rename repo references from sst/opencode to anomalyco/opencode (#6687)
Co-authored-by: Github Action <action@github.com>
2026-01-02 16:02:52 -05:00
Aiden Cline
c996f3d847 chore: ensure empty message isnt sent 2026-01-02 12:28:40 -06:00
Dax Raad
b84a1f714b tui: remove memory leak fixes documentation after implementation 2026-01-01 21:40:28 -05:00
GitHub Action
07c008fe3d chore: generate 2026-01-02 02:28:48 +00:00
Dax Raad
dad9c917d2 tui: fix memory leaks in session management and improve permission error handling 2026-01-01 21:28:11 -05:00
Dax
351ddeed91
Permission rework (#6319)
Co-authored-by: Github Action <action@github.com>
Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
2026-01-01 17:54:11 -05:00
Saatvik Arya
7a3ff5b98f
fix(session): check for context overflow mid-turn in finish-step (#6480) 2026-01-01 12:03:18 -06:00
Lekë Dobruna
3b03324578
fix: display error if invalid agent is used in a command (#6578) 2026-01-01 11:39:21 -06:00
Aiden Cline
9a1dc1ffe4 core: prevent TimeoutOverflowWarning by capping setTimeout delay to max 32-bit signed integer 2025-12-31 16:15:49 -06:00
Paolo Ricciuti
57a2b5f444
feat: mcp prompts as slash commands (alternative) (#5767)
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2025-12-31 00:51:25 -06:00
Aiden Cline
81fef60266
fix: ensure variants also work for completely custom models (#6481)
Co-authored-by: Daniel Smolsky <dannysmo@gmail.com>
2025-12-30 16:37:32 -06:00
Ytzhak
8f629db988
feat: add extract reasoning middleware (#6463) 2025-12-30 13:13:18 -06:00
Didier Durand
8b708242f1
chore: fix various typos (#6429) 2025-12-30 09:42:04 -06:00
Aiden Cline
ed0c0d90be
feat: add variants toggle (#6325)
Co-authored-by: Github Action <action@github.com>
2025-12-29 21:43:50 -06:00
Cole Leavitt
b157fd10a7
fix: filter messages with only step-start parts in toModelMessage (#6383) 2025-12-29 14:58:11 -06:00
Didier Durand
29d8557d41
doc: fix typos in various files (#6294) 2025-12-28 13:06:25 -06:00
Aiden Cline
79c263494f tweak: inform agent if no skills are available 2025-12-27 21:20:00 -06:00
Didier Durand
e6b9988fa4
doc: fix typos in various files (#6238) 2025-12-27 00:46:06 -06:00
Dax Raad
2b054bec95 core: fix compaction config checks to properly respect user settings 2025-12-26 19:48:56 -05:00
Dax Raad
ed06de5e30 core: add configurable compaction settings to allow users to disable auto-compaction and pruning via config instead of flags 2025-12-26 19:31:48 -05:00
Ariane Emory
25c68c8061
chore: kill the dead Polaris Alpha code (#6193) 2025-12-26 11:32:31 -06:00
Didier Durand
cf38884778
doc: fix typos in various files (#6196) 2025-12-26 10:21:33 -06:00
Aiden Cline
99e2112807 tweak: retry err 2025-12-23 22:10:28 -06:00
Aiden Cline
7396d495ee chore: regen sdk 2025-12-23 19:34:38 -06:00
Aiden Cline
12ee9d51c3 make 'The socket connection was closed unexpectedly' errors retryable 2025-12-23 19:20:31 -06:00
Joel Hooks
eab177f5e7
feat(plugin): allow compaction hook to replace prompt entirely (#5907) 2025-12-22 22:19:14 -06:00
Mohammad Alhashemi
3a54ab68d1
feat(skill): add per-agent filtering to skill tool description (#6000) 2025-12-22 20:14:33 -05:00
Mohammad Alhashemi
046e351140
feat: add native skill tool with permission system (#5930)
Co-authored-by: Dax Raad <d@ironbay.co>
2025-12-22 18:24:06 -05:00
Noam Bressler
d4b7f75ce3
fix: Perform snapshot in cases finish-step is not reached (#5912)
Co-authored-by: noamzbr <noamzbr@users.noreply.github.com>
2025-12-21 21:13:11 -06:00
Dax
8fe0715928
feat: add Agent Skills support (#5921) 2025-12-21 19:44:56 -05:00
Dax Raad
c333ffa38b core: fix LSP server binary installation and shell command execution
- Ensure proper file permissions are set for installed LSP binaries on non-Windows platforms
- Add error handling for shell command execution in prompt system to prevent crashes
2025-12-21 18:33:37 -05:00
Matt Silverlock
8f6c8844d7 feat: support configuring a default_agent across all API/user surfaces (#5843)
Co-authored-by: observerw <observerw@users.noreply.github.com>
2025-12-20 11:49:23 -06:00
Tommy D. Rossi
a7a2bbb497 feat: add endpoints to delete and update message parts (#5433) 2025-12-20 15:00:41 +00:00
Aiden Cline
4fd576f3af fix: better api call error msgs in some cases 2025-12-18 18:46:25 -06:00
Aiden Cline
ecc5050838 tweak: more retry cases 2025-12-18 13:59:37 -06:00
Jeon Suyeol
4bf882ba81
fix(command): validate model before executing slash command (#5740) 2025-12-18 10:35:40 -06:00
Joel Hooks
24430287c5
feat(plugin): add experimental.session.compacting hook for pre-compaction context injection (#5698)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2025-12-17 13:57:09 -06:00
Ravi Kumar
69e562125d
fix(tui): resolve session_status TypeError (#5520) 2025-12-17 11:38:05 -06:00
Qio
1e4bfbcf6f
add OPENCODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX to override 32k default (#5679)
Co-authored-by: qio <handsomehust@gmail.com>
2025-12-17 10:35:43 -06:00
Shantur Rathore
b8204c0bb7
fix: config option setCacheKey not being respected (#5686) 2025-12-17 10:20:10 -06:00
Spoon
b8a8fb0de6
plugin(hook): add task tool execution hooks and command context tracking (#5642) 2025-12-16 19:28:09 -06:00
Aiden Cline
5f57cee8e4
fix: user invoked subtasks causing tool_use or missing thinking signa… (#5650) 2025-12-16 15:42:21 -06:00
Fran Zekan
c2944024a8
fix: enable shell alias expansion in ! command (#5621) 2025-12-16 11:32:31 -06:00
Tommy D. Rossi
11b3927dc2
fix: use system prompt field from prompt input (#5633)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-16 10:52:22 -06:00
DS
72ebaeb8f7 fix: rejoin system prompt if experimental plugin hook triggers to preserve caching (#5550)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-15 20:00:26 -06:00
Aiden Cline
81134cf61e add ability to set topK 2025-12-15 14:34:56 -06:00
DS
b021b26e77
feat: restore experimental.chat.messages.transform and add experimental.chat.system.transform hooks (#5542) 2025-12-14 22:51:11 -06:00
Ravi Kumar
54569b5552
fix(session): fix unshare command not clearing share state (#5523) 2025-12-14 22:05:06 -06:00
Dax
fed4776451
LLM cleanup (#5462)
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2025-12-14 21:11:30 -05:00
Martijn Baay
7368342bab
feat: add experimental.continue_loop_on_deny config option (#4729)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2025-12-14 17:13:32 -06:00
GitHub Action
70e4efe429 chore: format code 2025-12-14 17:46:46 +00:00
Sellers Crisp
92948ed8a4
feat: add server_error, rate_limit, and no_kv_space retry logic to accommodate Foundry API issues (#5527)
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2025-12-14 11:46:14 -06:00
Aiden Cline
3d2ef28fa8 add topK function to transform, add temp defaults for glm and minimax 2025-12-13 23:27:11 -06:00
Aiden Cline
15caecdb45
shell tweaks, better handling for windows (#5455)
Co-authored-by: GitHub Action <action@github.com>
2025-12-12 16:11:07 -06:00
Dan Brown
6e9833acce
Shell: No -l in fallback, for max compatibility (#5452) 2025-12-12 15:43:35 -06:00
Dax Raad
651a10d6db only gen summary if diffs 2025-12-12 16:24:26 -05:00
Dax Raad
0400024d02 core: fix missing Flag import in session prompt 2025-12-11 16:18:04 -05:00
Dax Raad
d4dc142cc2 core: add client identification to user agent and request headers for better tracking 2025-12-11 16:18:04 -05:00
Jorgen Henriksen
2a9269c347
add experimental.chat.messages.transform hook (#5207)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-11 14:38:45 -06:00
Dax Raad
578072bb8e use new share url 2025-12-11 00:43:00 -05:00
Shantur Rathore
89d51ad596
compaction: improve compaction prompt (#5348) 2025-12-10 17:21:38 -06:00
Christian Stewart
cbb591eb7d
fix: more descriptive tool or subtask execution failed error (#5337)
Signed-off-by: Christian Stewart <christian@aperture.us>
2025-12-10 17:12:49 -06:00
Dax Raad
936a6be5d6 stuff adam needs 2025-12-10 15:59:42 -05:00
Aiden Cline
18d3c054a3
more interleaved thinking fixes (#5334) 2025-12-10 13:29:26 -06:00
GitHub Action
cc3b699823 chore: format code 2025-12-10 06:02:31 +00:00
spoj
301f1a191b
fix: add Windows support for shell mode (! command) (#5311) 2025-12-10 00:01:56 -06:00
Aiden Cline
df64612d54
better interleaved thinking support (#5298) 2025-12-09 16:32:12 -06:00
Dax Raad
1e3bdcc71c rename bus 2025-12-09 14:32:09 -05:00
Ravi Kumar
8326640670
feat(telemetry): Add userId and sessionId metadata to experimental_telemetry (#5279) 2025-12-09 09:46:48 -06:00
Aiden Cline
f8bd4ff705 core: refactor providerOptions function to accept Provider.Model for cleaner API 2025-12-09 01:25:36 -06:00
Aiden Cline
a3bb4a3c85
pdf support in read tool (#5222)
Co-authored-by: ammi1378 <ammi1378@users.noreply.github.com>
2025-12-07 21:54:00 -06:00
Aiden Cline
9ff39503e9 tweak: additional error msg parsing case 2025-12-07 20:10:54 -06:00
franlol
81ee8541ab
feat: add experimental.text.complete plugin hook (#4962) 2025-12-07 19:44:04 -06:00
Nathan Thomas
40eb8b93e1
feat: add max steps for supervisor and sub-agents (#4062)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
2025-12-05 12:26:44 -06:00
Noam Bressler
864c098701
add experimental.open_telemetry config option to enable OTEL spans (#4978)
Co-authored-by: noamzbr <noamzbr@users.noreply.github.com>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
2025-12-05 10:48:22 -06:00
Aiden Cline
350a32274a fix: model not being passed correctly to tool 2025-12-04 11:15:30 -06:00
Aiden Cline
0237905b96 fix: TypeError: undefined is not an object 2025-12-03 22:03:42 -06:00
Aiden Cline
32b5db754e fix: provider id issue 2025-12-03 20:45:55 -06:00
Aiden Cline
f33f8ca109 fix: compaction type issue 2025-12-03 20:43:47 -06:00
Dax
6d3fc63658
core: refactor provider and model system (#5033)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: thdxr <thdxr@users.noreply.github.com>
2025-12-03 21:09:03 -05:00
Aiden Cline
91db82c138 add retry case for grok resource exhausted 2025-12-03 11:16:27 -06:00
Frank
1f11d4fb1a zen: data dumper 2025-12-02 14:51:27 -05:00
Aiden Cline
027d43b5ea fix case where opencode wasn't retrying 2025-12-01 13:02:33 -06:00
Aiden Cline
b1b82977ec tweak: better err msgs 2025-12-01 01:33:32 -06:00
Shantur Rathore
aaa31f02af
tweak: compaction prompt (#4838)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2025-11-30 14:31:57 -06:00
Aiden Cline
a4eba2e6e9 tweak: plan prompt 2025-11-30 01:03:35 -06:00
Aiden Cline
0e280017e6 Revert "fix: title gen when first msg(s) are shell invocations (#4874)"
This reverts commit 17e8322c29.
2025-11-28 12:18:02 -06:00
Aiden Cline
17e8322c29
fix: title gen when first msg(s) are shell invocations (#4874)
Co-authored-by: GitHub Action <action@github.com>
2025-11-28 11:55:22 -06:00
DS
13f89fdb8f
fix: filter empty messages in toModelMessage (#4811) 2025-11-28 00:26:48 -06:00
Aiden Cline
cc78d50ef6 bump anthropic package 2025-11-28 00:25:16 -06:00
Tommy D. Rossi
382758790c
fix(tui): dedupe file references in prompt (#4775) 2025-11-26 11:26:05 -06:00
Dmitry Halushka
ee946d8128
fix: transform MCP tool schemas for Google/Gemini compatibility (#4538)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
Co-authored-by: Github Action <action@github.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2025-11-26 00:58:20 -06:00
Shantur Rathore
69c2dd53ad
config: add setCacheKey in provider options (#4738)
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2025-11-25 17:53:56 -06:00
Dax Raad
eb04cdac41 better overloaded message 2025-11-25 21:10:31 +00:00
Dax Raad
9eabbe2e76 retry anthropic overloaded errors 2025-11-25 15:47:34 -05:00
Aiden Cline
4a95db6013 fix: add missing compacted event 2025-11-25 13:47:10 -06:00
Aiden Cline
020ee56f25 fix: dont auto continue if compaction was manual 2025-11-25 12:11:09 -06:00
Aiden Cline
16dbac6026 Revert "config: add setCacheKey in provider options (#4654)"
This reverts commit 9b6d03c497.
2025-11-24 22:30:56 -06:00
Shantur Rathore
9b6d03c497
config: add setCacheKey in provider options (#4654)
Co-authored-by: GitHub Action <action@github.com>
2025-11-24 22:20:52 -06:00
Adam
acf1dd8500
wip(share): more styling 2025-11-24 15:10:40 -06:00
Aiden Cline
ac1e2bfd49
bump copilot plugin, give better error message for copilot (#4678) 2025-11-24 00:40:15 -06:00
Huang Qi
b4fd4bb257
fix: add explicit fallback model and prevent direct opencode provider calls (#4653)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2025-11-23 22:51:15 -06:00
Frank
bbc9142fc5 wip: zen 2025-11-23 15:21:47 -05:00
Aiden Cline
7413c2715c tweak: slight improvements to title gen 2025-11-23 14:04:39 -06:00
Aiden Cline
2509d03f42 tweak: fix bool 2025-11-23 11:43:09 -06:00
Aiden Cline
30ffcaa667
tweak: start bundling in some ai-sdk packages (#4649) 2025-11-23 01:29:20 -06:00
shuv
bdcf864678
proper fix for image attachments (#4562)
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2025-11-22 12:47:57 -06:00
Dax Raad
2938a25ec5 sync 2025-11-22 16:43:47 +00:00