Aiden Cline
dabf2dc013
remove the need for polling from experimental background agents ( #29179 )
2026-05-25 16:09:56 -05:00
André Cruz
748fcb7ebd
fix(session): exclude orphaned interrupted tools from run-loop continuation ( #26178 )
...
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-05-25 00:47:55 -05:00
Aiden Cline
eb84f461b8
fix(llm): split OpenAI reasoning summary blocks ( #29000 )
2026-05-23 20:06:45 -05:00
Kit Langton
0b3a1c2fdf
test(opencode): simplify config effect tests ( #29019 )
2026-05-23 23:48:08 +00:00
Shoubhit Dash
5f42351159
fix(provider): type default model failures ( #28881 )
2026-05-22 23:53:23 +05:30
Kit Langton
e92c4fb460
chore: drop dead imports across opencode/core/llm ( #28720 )
2026-05-21 17:03:12 -04:00
Kit Langton
61390dbb49
fix(llm): preserve native continuation metadata ( #28678 )
2026-05-21 11:57:45 -04:00
Kit Langton
14366af069
test(session): port llm.test.ts to it.instance ( #28578 )
2026-05-21 04:01:13 +00:00
Kit Langton
facd207396
fix(opencode): support native OpenAI OAuth fetch ( #28571 )
2026-05-20 23:29:25 -04:00
Kit Langton
d37f9e770b
test(control-plane): port workspace.test.ts to it.instance ( #28572 )
2026-05-21 03:23:26 +00:00
Aiden Cline
4487fbf52f
fix(provider): support PDF attachments for xAI/Grok ( #28561 )
2026-05-20 20:46:31 -05:00
Kit Langton
fb9d69ef62
refactor(opencode): extract session LLM request prep ( #28560 )
2026-05-20 21:44:33 -04:00
Dax
8643c0721e
Rename v2 auth service to account ( #28260 )
2026-05-21 00:53:27 +00:00
Kit Langton
41f6daf96a
Refactor LLM route-first provider API ( #28523 )
2026-05-20 20:15:52 -04:00
Kit Langton
6618e2bce2
feat(native-llm): route Anthropic API-key models through native runtime ( #28271 )
2026-05-19 08:20:27 -04:00
Kit Langton
8a321c4536
fix(native-llm): prefer console opencode token ( #28237 )
2026-05-18 17:23:57 -04:00
Aiden Cline
d8efc575fa
refactor(session): extract prompt tool resolution ( #28204 )
2026-05-18 14:50:31 -05:00
Kit Langton
dbe36851bc
Preview native LLM runtime stack ( #27114 )
2026-05-18 14:41:36 -04:00
opencode-agent[bot]
094886c848
chore: generate
2026-05-18 17:03:44 +00:00
Shoubhit Dash
dc0297f4ac
refactor(session): extract reference prompt helpers ( #28197 )
2026-05-18 22:32:18 +05:30
Aiden Cline
05ac345696
refactor(session): move prompt reminders out of core loop ( #28082 )
2026-05-18 11:36:38 -05:00
Dax
23b594de6e
fix: preserve bus instance context ( #28051 )
2026-05-17 12:56:42 -04:00
Aiden Cline
548648a3d9
core: reduce prompts for shell, todowrite, and task tools ( #26821 )
2026-05-16 00:18:47 -05:00
Shoubhit Dash
fa9a2cb24d
refactor(instance): remove remaining bind call sites ( #27731 )
2026-05-15 20:04:42 +05:30
Shoubhit Dash
12b666e2c9
refactor(project): import instance context directly ( #27714 )
2026-05-15 15:59:56 +05:30
Shoubhit Dash
202cc863b4
refactor(flags): migrate claude code prompt flag ( #27690 )
2026-05-15 14:17:04 +05:30
Shoubhit Dash
2d6bedecd4
refactor(flags): migrate output token max to runtime flags ( #27680 )
2026-05-15 13:07:35 +05:30
James Long
af06e52708
fix(session): ignore instruction lookup errors ( #27656 )
2026-05-14 23:12:30 -04:00
Dax
e11e089e42
Add Effect-native core event system ( #27415 )
2026-05-15 00:50:23 +00:00
opencode-agent[bot]
f6c8e35383
chore: generate
2026-05-14 17:58:35 +00:00
Kit Langton
94564f3588
fix(session): prevent double auto-compaction from filterCompacted reorder ( #27545 )
2026-05-14 13:56:12 -04:00
opencode-agent[bot]
756488d534
chore: generate
2026-05-14 16:42:18 +00:00
Shoubhit Dash
22de34c4de
feat: add experimental background subagents ( #27084 )
2026-05-14 22:10:15 +05:30
Sameer Kankute
7f7eb2e7f8
fix(provider): remove LiteLLM workarounds ported upstream, requires LiteLLM v1.85.0-rc.2+ ( #26819 )
...
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-14 11:26:07 -05:00
Aiden Cline
e76cf967e6
fix(session): finalize interrupted assistant messages ( #27254 )
2026-05-14 01:19:11 -05:00
opencode-agent[bot]
bfd707abc9
chore: generate
2026-05-14 04:07:30 +00:00
Aiden Cline
981e00971a
fix: image resizer wasm loading, reenable image resizing ( #26805 )
2026-05-13 23:06:07 -05:00
Kit Langton
edf7649400
fix(session): type busy errors ( #27410 )
2026-05-14 01:28:04 +00:00
Kit Langton
55e0af1405
fix(provider): type model not found errors ( #27334 )
2026-05-13 22:23:09 +00:00
Shoubhit Dash
a4ebb07c25
refactor(flags): route llm client through runtime flags ( #27368 )
2026-05-14 00:09:53 +05:30
opencode-agent[bot]
5b5376a3fa
chore: generate
2026-05-13 14:47:40 +00:00
Shoubhit Dash
eed0eddc63
refactor(flags): route session workspaces through runtime flags ( #27335 )
2026-05-13 20:14:40 +05:30
Dax
8345152319
core: expose v2 model listing API ( #25821 )
2026-05-13 14:43:08 +00:00
Shoubhit Dash
f13fc5a8a8
refactor(flags): route event system through runtime flags ( #27323 )
2026-05-13 17:44:09 +05:30
Shoubhit Dash
098bdd8ae2
refactor(flags): route plan mode through runtime flags ( #27320 )
2026-05-13 17:17:04 +05:30
Shoubhit Dash
ccf93f3523
fix(session): make message reads effectful ( #27291 )
2026-05-13 14:40:12 +05:30
Shoubhit Dash
f01c6b3e37
fix(session): type message list not found errors ( #27275 )
2026-05-13 13:22:12 +05:30
Shoubhit Dash
fed043a1ad
fix(session): add typed message lookup wrappers ( #27269 )
2026-05-13 13:04:07 +05:30
Shoubhit Dash
e9a29e4908
fix(storage): type not found errors ( #27265 )
2026-05-13 12:25:04 +05:30
Aiden Cline
67e6408cef
fix: disable image module for now ( #27248 )
2026-05-12 23:21:31 -05:00
Aiden Cline
c2b1ebd9dc
feat: update pricing schema for models to ensure more accurate cost tracking ( #27184 )
2026-05-12 20:44:06 -05:00
Aiden Cline
ca28dd02ec
fix(compaction): restore tail turns after summarization ( #27145 )
2026-05-12 15:33:16 -05:00
Shoubhit Dash
45de4975de
refactor(core): resolve default agent info ( #27125 )
2026-05-13 01:08:30 +05:30
Shoubhit Dash
3dc2c1d81c
fix(session): preserve usage update timestamps ( #27094 )
2026-05-12 22:10:28 +05:30
Kit Langton
c7d8b0d565
Delete named schema error wrapper ( #27066 )
2026-05-12 12:04:28 -04:00
Kit Langton
28f38fc871
Remove Zod from named errors ( #26982 )
2026-05-12 09:20:15 -04:00
Dax
36d40fee4d
Track session usage totals ( #26644 )
2026-05-12 01:18:57 -04:00
Kit Langton
e5aa5161f2
Remove effect-zod bridge ( #26956 )
2026-05-11 21:14:55 -04:00
Kit Langton
fd65d29dcc
Drop unused opencode Zod statics ( #26935 )
2026-05-11 17:14:18 -04:00
Kit Langton
cc95197d72
Drop prompt input Zod statics ( #26923 )
2026-05-11 16:49:08 -04:00
Kit Langton
42a0453945
Drop small session Zod statics ( #26921 )
2026-05-11 16:12:31 -04:00
Kit Langton
4d9eb6c320
Validate structured output tests with Effect Schema ( #26919 )
2026-05-11 16:11:25 -04:00
opencode-agent[bot]
19fce2bc6f
chore: generate
2026-05-11 15:21:20 +00:00
Shoubhit Dash
4bae84c8b0
feat(scout): autocomplete configured mentions ( #26843 )
2026-05-11 20:50:03 +05:30
Shoubhit Dash
2d0d3d596e
feat(compaction): serialize compaction tail ( #26830 )
2026-05-11 13:40:36 +05:30
Shoubhit Dash
7e997cfba4
refactor(scout): resolve configured reference mentions ( #26701 )
2026-05-11 12:57:26 +05:30
Kit Langton
274033cd52
Validate prompt messages with Effect Schema ( #26796 )
2026-05-11 02:59:20 +00:00
opencode-agent[bot]
38e4540119
chore: generate
2026-05-11 01:41:26 +00:00
Dax Raad
4100fcbd17
disable image resizing
2026-05-10 21:40:12 -04:00
Kit Langton
effd96755e
Use SyncEvent service at event call sites ( #26782 )
2026-05-10 21:20:13 -04:00
Kit Langton
5ef72e1101
Drop unused ID Zod statics ( #26740 )
2026-05-10 19:58:21 -04:00
Kit Langton
d8060dc9ad
Drop compaction create facade ( #26739 )
2026-05-10 19:54:16 -04:00
Dax
0fffcdfe46
Persist session model switches outside event flag ( #26765 )
2026-05-10 18:53:14 -04:00
Kit Langton
a4f3cedcdf
Start effect-style compaction tests
2026-05-10 16:12:00 +00:00
opencode-agent[bot]
3a78fb1f42
chore: generate
2026-05-10 06:49:21 +00:00
Aiden Cline
85ce6a5f95
feat: better image handling (auto resize & max size constraints) ( #26401 )
2026-05-10 01:48:19 -05:00
Kit Langton
fb4bab8a66
Remove redundant ID Zod overrides ( #26633 )
2026-05-09 23:12:21 -04:00
Kit Langton
67b9c9c027
Source HTTP API ID path patterns ( #26623 )
2026-05-09 22:58:47 -04:00
Kit Langton
29250a0efb
fix(session): loosen remaining stored numeric schemas to tolerate legacy data ( #26622 )
2026-05-09 22:10:48 -04:00
Kit Langton
c6e6bdf59f
fix(session): tolerate negative token counts in stored parts ( #26620 )
2026-05-09 22:10:44 -04:00
Kit Langton
d373c562f2
fix(session): accept legacy summary diffs ( #26579 )
...
Co-authored-by: Developer <temp@example.com>
2026-05-09 16:44:24 -04:00
Dax
dcdbdb218f
Move schema utilities into core ( #26565 )
2026-05-09 19:51:09 +00:00
Kit Langton
28b03595bf
research: delete Hono backend (do not merge) ( #25667 )
2026-05-09 13:10:42 +00:00
Aiden Cline
83bb216486
fix: ensure tools are always in same order ( #26370 )
2026-05-08 10:59:41 -05:00
Aiden Cline
799996db76
fix: adjust tui retry dialog logic to be more provider specific and error case specific ( #26366 )
2026-05-08 10:48:19 -05:00
James Long
c818c9dcb6
feat(core): allow external workspace creation ( #26212 )
2026-05-08 11:09:12 -04:00
Frank
bb3f14119b
tui: update go upsell copy
2026-05-08 01:51:33 -04:00
Aiden Cline
4e14f79511
fix: tweaks to transform logic for anthropic and bedrock ( #26276 )
2026-05-07 23:17:43 -05:00
opencode-agent[bot]
7ded0ec9e9
chore: generate
2026-05-07 21:54:31 +00:00
Aiden Cline
f5d0371efe
tui: go plan payg msg ( #26248 )
2026-05-07 16:53:24 -05:00
André Cruz
233fc5b910
fix(provider): preserve assistant message content when reasoning blocks present ( #21370 )
...
Co-authored-by: Omer Koren <54630488+omer-koren@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-05-06 18:57:56 -05:00
Kit Langton
8555de8189
Type session not-found errors ( #25818 )
2026-05-05 21:33:47 -04:00
Shoubhit Dash
811954880e
fix(compaction): order compaction summary before retained tail ( #25851 )
2026-05-05 16:12:37 +05:30
Kit Langton
75d141b574
fix(session): cancel subtask child sessions ( #25798 )
2026-05-04 22:36:06 -04:00
Dax
39c88f9afb
Improve v2 session message rendering ( #25634 )
2026-05-05 02:35:21 +00:00
Dax
7749d8e85f
Add v2 session failure events ( #25628 )
2026-05-03 14:45:48 -04:00
opencode-agent[bot]
a6cadba814
chore: generate
2026-05-03 02:10:52 +00:00
Dax
a3bc5d35b0
Refactor v2 session events as schemas ( #24512 )
2026-05-02 22:09:48 -04:00
Luke Parker
3f459819ba
feat: refactor bash tool with shell-aware prompts for bash, pwsh+powershell, and cmd ( #20039 )
2026-05-03 09:18:48 +10:00
Kit Langton
6cd02c05c2
fix(telemetry): emit Tool.execute span for MCP and plugin tools ( #25452 )
2026-05-02 14:49:56 -04:00
Aiden Cline
29ec07700c
fix: bedrock reasoning issue ( #25303 )
2026-05-01 11:15:17 -05:00
Kit Langton
16ddf5f559
fix(session): use finite archived timestamp schema ( #25275 )
2026-05-01 11:57:03 +00:00
Aiden Cline
563177c6ac
fix: fix issue if tool returned image and empty text and it caused api errors ( #25241 )
2026-05-01 00:13:03 -05:00
opencode-agent[bot]
6bd91c68e8
chore: generate
2026-05-01 03:22:36 +00:00
Dax Raad
ff55a40749
core: remove @effect/language-service plugin and optimize hot path type performance
...
- Removed @effect/language-service from both packages/core and packages/opencode tsconfig files and dependencies
- Wrapped mergeDeep calls in config loading and LLM streaming to avoid expensive remeda conditional merge type instantiations in hot paths
- Narrowed Drizzle migrate() overload signature to avoid expensive variance checks during database initialization
These changes reduce TypeScript type-checking overhead and improve startup and runtime performance for config loading, LLM streaming, and database migrations.
2026-04-30 23:21:05 -04:00
opencode-agent[bot]
8b56d77ea1
chore: generate
2026-05-01 03:02:15 +00:00
Kit Langton
8b56d1712f
refactor(session): pass project to list ( #25215 )
2026-04-30 23:00:59 -04:00
Kit Langton
5984d917dc
refactor(session): yield instance context in system prompt ( #25207 )
2026-04-30 21:45:48 -04:00
Kit Langton
8aa8798e07
refactor(session): yield instance context in llm ( #25200 )
2026-04-30 21:29:28 -04:00
Kit Langton
668d77bb4e
refactor(tool): yield InstanceState context ( #25199 )
2026-04-30 21:01:06 -04:00
Kit Langton
e3134a2a99
refactor(session): align prompt input types with their schemas ( #25178 )
2026-04-30 19:28:46 -04:00
Kit Langton
fbcbd24063
Add SyncEvent service ( #25158 )
2026-04-30 16:45:26 -04:00
Kit Langton
feeebbe7d4
Preserve workspace context in session HTTP routes ( #25136 )
2026-04-30 13:53:26 -04:00
Kit Langton
65c15afe9f
test: use testEffect for instruction tests ( #25046 )
2026-04-30 11:48:13 -04:00
Kit Langton
dddfcbf0d8
test: port instance HttpApi path/vcs read coverage to Effect
2026-04-30 11:07:00 -04:00
Aiden Cline
6aa8e894b1
chore: rm broken codesearch tool ( #24992 )
2026-04-29 13:15:44 -05:00
Aiden Cline
00bb9836a6
tweak: adjust order of system prompt instructions: Global, Project, Skills ( #24974 )
2026-04-29 10:55:53 -05:00
opencode-agent[bot]
df147b65fd
chore: generate
2026-04-29 13:36:05 +00:00
Kit Langton
6015084fa2
Prepare Effect HttpApi backend parity ( #24853 )
2026-04-29 09:34:50 -04:00
spark4862
d71b827d8c
fix(session): remap compaction tail_start_id when forking ( #24898 )
...
Co-authored-by: spark4862 <spark4862@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-04-29 00:23:56 -05:00
James Long
9209c04370
feat(core): filter sessions by path and add setting to disable ( #24849 )
2026-04-28 16:49:13 -04:00
James Long
2c2fc3499b
feat(core): store relative path for sessions ( #24704 )
2026-04-28 11:51:24 -04:00
Kit Langton
ce78a4265d
fix(session): remove compaction summary dividers ( #24677 )
2026-04-27 18:15:11 -04:00
Kit Langton
c4a2353ac3
fix(session): omit undefined optional fields ( #24676 )
2026-04-27 17:50:09 -04:00
Kit Langton
139c4fd555
fix(session): harden shell cancellation ( #24553 )
2026-04-27 20:47:18 +00:00
Dax
f25f1485d5
refactor: remove module barrels ( #24554 )
2026-04-27 14:33:33 -04:00
Luke Parker
141f33d24b
feat: configurable shell selection + desktop settings UI ( #20602 )
2026-04-27 00:54:55 +00:00
Dax Raad
fc6d4b4010
core: Add User-Agent header to identify client version in HTTP requests
2026-04-25 23:51:23 -04:00
Dax Raad
1e98167b0e
core: move cross-spawn-spawner to root and remove unused types
...
The cross-spawn-spawner module has been moved from src/effect/ to src/
to simplify the core package structure. The src/types.d.ts file which
contained unused type declarations has also been removed. All imports
throughout the codebase have been updated to reflect the new location.
This change reduces the package's internal complexity by flattening the
module hierarchy and removing dead code, making future maintenance easier.
2026-04-25 14:30:16 -04:00
Dax Raad
3eee2f6afa
core: move cross-spawn-spawner from opencode to core package
...
Moved the cross-spawn-spawner module from packages/opencode to packages/core
to enable code sharing across the monorepo. This consolidates the process
spawning infrastructure into the core package so other packages can use
cross-platform child process spawning without duplicating the implementation.
Updated all import statements across the codebase to reference the new
location (@opencode-ai/core/effect/cross-spawn-spawner). Removed the
local copy from the opencode package along with its tests.
2026-04-25 14:23:17 -04:00
Dax Raad
705f792e87
core: move Global module to @opencode-ai/core for centralized path management
...
Move the Global module from packages/opencode/src/global to packages/core/src/global
to provide a unified location for managing XDG directories and application paths.
This eliminates duplicate path definitions across packages and ensures consistent
access to data, config, cache, state, log, and bin directories throughout the codebase.
2026-04-25 13:52:32 -04:00
Dax Raad
1a734adb4d
core: consolidate shared infrastructure into core package
...
Moves effect logging, observability, runtime utilities, flags, installation
version info, and process utilities from opencode to core package. This
enables better code sharing across packages and establishes core as the
single source of truth for foundational utilities.
All internal imports updated to use @opencode-ai/core paths for consistency.
2026-04-25 13:30:37 -04:00
Dax
62ef2a2207
refactor: rename shared package to core ( #24309 )
2026-04-25 10:59:17 -04:00
Kit Langton
4877eccc0d
Fix shell cwd after login startup ( #24215 )
2026-04-25 01:14:52 -04:00
Kit Langton
3910a6e527
refactor(tool): migrate tool framework + all 18 built-in tools to Effect Schema ( #23244 )
2026-04-23 16:09:34 -04:00
Kit Langton
cd93533b1f
refactor(bus): migrate BusEvent to Effect Schema ( #24040 )
2026-04-23 15:37:44 -04:00
Kit Langton
0590452456
refactor(schema): use Schema.Int and consolidate PositiveInt/NonNegativeInt ( #24029 )
2026-04-23 13:22:48 -04:00
Kit Langton
c50d65b4d6
refactor(sync): make session events schema-first ( #24019 )
2026-04-23 12:43:08 -04:00
opencode-agent[bot]
2cd89d64e9
chore: generate
2026-04-23 15:31:16 +00:00
Kit Langton
0517ab4695
refactor(session): migrate session domain to Effect Schema ( #24005 )
2026-04-23 11:30:02 -04:00
Shoubhit Dash
574b2c2170
fix(session): improve session compaction ( #23870 )
2026-04-23 00:25:38 -04:00
Kit Langton
ed802fd121
refactor(core): migrate MessageV2 errors to Schema-backed named errors ( #23764 )
2026-04-21 23:40:32 -04:00
Kit Langton
1593c3ed16
refactor(core): migrate MessageV2 internal Cursor to Effect Schema ( #23763 )
2026-04-21 23:28:33 -04:00
Kit Langton
e89543811c
refactor(core): migrate MessageV2 message DTOs (User/Assistant/Part/Info/WithParts) to Effect Schema ( #23757 )
2026-04-21 23:26:12 -04:00
Kit Langton
fa623964a2
refactor(core): migrate MessageV2 part leaves + ToolPart to Effect Schema ( #23756 )
2026-04-21 23:17:23 -04:00
Kit Langton
ad7ae7353f
refactor(core): derive all schema.ts leaves' .zod via effect-zod walker ( #23754 )
2026-04-21 22:51:18 -04:00
Kit Langton
df0c1f649c
refactor(core): migrate MessageV2 tool state schemas to Effect Schema ( #23752 )
2026-04-21 17:47:50 -04:00
Kit Langton
0bcf734a67
migrate Snapshot schemas to Effect Schema ( #23747 )
2026-04-21 17:37:27 -04:00
Kit Langton
2ae64f426b
refactor(core): migrate MessageV2.Format to Effect Schema ( #23744 )
2026-04-21 17:30:08 -04:00
Kit Langton
7933657135
migrate LSP data schemas to Effect Schema ( #23745 )
2026-04-21 17:26:50 -04:00