Commit graph

379 commits

Author SHA1 Message Date
Shoubhit Dash
96192495ae
refactor(repository): add cache service (#28184) 2026-05-18 21:25:38 +05:30
Dax
e85119aa64
Load models.dev snapshot from build global (#28077) 2026-05-17 21:59:44 -04:00
Shoubhit Dash
65f96a5851
refactor(instance): retire WithInstance adapter (#27782) 2026-05-16 01:30:07 +05:30
Shoubhit Dash
0c9cfe923f
refactor(instance): remove legacy runtime fallback (#27757) 2026-05-15 23:05:44 +05:30
Shoubhit Dash
202cc863b4
refactor(flags): migrate claude code prompt flag (#27690) 2026-05-15 14:17:04 +05:30
Dax
e11e089e42
Add Effect-native core event system (#27415) 2026-05-15 00:50:23 +00:00
Kit Langton
4e143e3a3e
test(lib): promote pollWithTimeout/awaitWithTimeout helpers (#27626) 2026-05-14 23:45:32 +00:00
Kit Langton
302ba0ca0b
test(session): de-flake shell-cancel tests by waiting for busy state (#27622) 2026-05-14 19:24:09 -04:00
Kit Langton
94564f3588
fix(session): prevent double auto-compaction from filterCompacted reorder (#27545) 2026-05-14 13:56:12 -04:00
Shoubhit Dash
22de34c4de
feat: add experimental background subagents (#27084) 2026-05-14 22:10:15 +05:30
Aiden Cline
e76cf967e6
fix(session): finalize interrupted assistant messages (#27254) 2026-05-14 01:19:11 -05:00
Kit Langton
edf7649400
fix(session): type busy errors (#27410) 2026-05-14 01:28:04 +00:00
Kit Langton
3fc7486d15
test(session): fix shell-cancel race when trap hasn't installed yet (#27408) 2026-05-14 01:10:40 +00:00
Dax
16c457e712
refactor(core): move models.dev into core (#27347) 2026-05-13 20:58:24 -04:00
Kit Langton
f0635e365f
test(session): use Effect polling in processor tests (#27354) 2026-05-13 16:33:19 +00:00
Shoubhit Dash
eed0eddc63
refactor(flags): route session workspaces through runtime flags (#27335) 2026-05-13 20:14:40 +05:30
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
Kit Langton
911b2ac088
test(session): migrate prompt tests to effect runner (#27209) 2026-05-13 01:51:35 +00:00
Kit Langton
da689d77c4
effect: move tool flags into RuntimeFlags (#27198) 2026-05-12 21:45:53 -04: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
Kit Langton
af4ab017cb
test(session): migrate structured output integration test (#27143) 2026-05-12 20:30:35 +00:00
Kit Langton
549b146ea6
Stabilize session event tests (#27117) 2026-05-12 18:51:18 +00: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
opencode-agent[bot]
e0e9414cbd chore: generate 2026-05-12 00:41:30 +00:00
Kit Langton
44edb639c2
test(session): migrate message pagination to Effect runner (#26957) 2026-05-12 00:40:23 +00:00
Kit Langton
fd65d29dcc
Drop unused opencode Zod statics (#26935) 2026-05-11 17:14:18 -04:00
Kit Langton
fe7ca3421e
Drop Config Info Zod static (#26933) 2026-05-11 16:49:22 -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
Kit Langton
8d9b9719be
Drop unused small ID Zod statics (#26908) 2026-05-11 13:22:59 -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
opencode-agent[bot]
3bd98ea055 chore: generate 2026-05-11 07:28:32 +00:00
Shoubhit Dash
7e997cfba4
refactor(scout): resolve configured reference mentions (#26701) 2026-05-11 12:57:26 +05:30
Kit Langton
effd96755e
Use SyncEvent service at event call sites (#26782) 2026-05-10 21:20:13 -04:00
Kit Langton
fed716ada5
Clarify compaction test harness (#26777) 2026-05-10 20:41:21 -04:00
Kit Langton
16aa67086b
Effectify remaining compaction process tests (#26776) 2026-05-10 20:17:01 -04:00
Kit Langton
128d10d9e9
Simplify compaction test helpers (#26742) 2026-05-10 20:03:11 -04:00
Kit Langton
5ef72e1101
Drop unused ID Zod statics (#26740) 2026-05-10 19:58:21 -04:00
Kit Langton
f71fb18d3d
Replace compaction create test fixtures (#26738) 2026-05-10 19:53:22 -04:00
Kit Langton
64dde0cb15
Migrate compaction tool-call test (#26737) 2026-05-10 19:44:42 -04:00
Kit Langton
a658e43eeb
Migrate compaction plugin test (#26736) 2026-05-10 19:42:44 -04:00
Kit Langton
ca8a42c973
Migrate LLM compaction tail tests (#26734) 2026-05-10 19:41:28 -04:00
Kit Langton
8f5f75db12
Migrate compaction LLM test (#26733) 2026-05-10 19:20:44 -04:00
Kit Langton
4ff0d07b1d
Migrate configurable compaction tests (#26732) 2026-05-10 19:18:02 -04:00
Kit Langton
2a571b3cee
Migrate compaction overflow tests (#26731) 2026-05-10 19:12:49 -04:00
Kit Langton
9c8da69196
Use Effect timeout in compaction test (#26728) 2026-05-10 12:45:54 -04:00
Kit Langton
fa15dbc5ec
Migrate compaction process tests (#26723) 2026-05-10 12:25:44 -04:00
Kit Langton
a4f3cedcdf
Start effect-style compaction tests 2026-05-10 16:12:00 +00:00
Shoubhit Dash
5cf9abe743
feat(scout): materialize configured reference repos (#26692) 2026-05-10 17:57:11 +05:30
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
67b9c9c027
Source HTTP API ID path patterns (#26623) 2026-05-09 22:58:47 -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
Shoubhit Dash
40d5ea1cf1
feat(core): add scout agent for repo research (#24149)
Co-authored-by: Dax Raad <d@ironbay.co>
2026-05-08 20:20:08 +00:00
Dax
fed221e0b0
fix(skill): allow missing descriptions (#26391) 2026-05-08 18:50:06 +00:00
opencode-agent[bot]
fc46cef5fd chore: generate 2026-05-08 15:49:37 +00: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
Shoubhit Dash
ae25278eda
test(session): update go retry fixture (#26312) 2026-05-08 14:10:18 +05:30
Frank
bb3f14119b tui: update go upsell copy 2026-05-08 01:51:33 -04:00
opencode-agent[bot]
9c88235121 chore: generate 2026-05-08 04:18:54 +00: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
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
a3bc5d35b0
Refactor v2 session events as schemas (#24512) 2026-05-02 22:09:48 -04:00
Kit Langton
7d91d3b1ed
Normalize instance lifecycle wiring (#25501) 2026-05-02 20:39:20 -04:00
Kit Langton
f98053c34e
fix(instance): run bootstrap from instance store (#25475) 2026-05-02 19:33:38 -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
Aiden Cline
29ec07700c
fix: bedrock reasoning issue (#25303) 2026-05-01 11:15:17 -05:00
Kit Langton
ec3ab4a00c
test: use testEffect for retry policy (#25050) 2026-04-30 12:55:33 -04:00
Kit Langton
ce63ca4d7a
test: use testEffect for system prompt test (#25047) 2026-04-30 12:51:32 -04:00
Kit Langton
65c15afe9f
test: use testEffect for instruction tests (#25046) 2026-04-30 11:48:13 -04:00
Aiden Cline
00bb9836a6
tweak: adjust order of system prompt instructions: Global, Project, Skills (#24974) 2026-04-29 10:55:53 -05: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
2c2fc3499b
feat(core): store relative path for sessions (#24704) 2026-04-28 11:51:24 -04:00
Kit Langton
c103202ad5
test(httpapi): cover session json parity (#24682) 2026-04-27 19:48:57 -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
Aiden Cline
e7053c41f4
fix: bump openrouter sdk version to resolve deepseek reasoning issue (bug was in sdk pkg) (#24435) 2026-04-26 00:05:16 -05: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
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
Aiden Cline
334ab4707c
fix: account for additional openai retry case (#24063) 2026-04-23 17:31:43 -04:00
Kit Langton
cd93533b1f
refactor(bus): migrate BusEvent to Effect Schema (#24040) 2026-04-23 15:37:44 -04:00
Kit Langton
0517ab4695
refactor(session): migrate session domain to Effect Schema (#24005) 2026-04-23 11:30:02 -04:00
opencode-agent[bot]
504fd1b373 chore: generate 2026-04-23 00:25:39 -04:00
Shoubhit Dash
574b2c2170 fix(session): improve session compaction (#23870) 2026-04-23 00:25:38 -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
2ae64f426b
refactor(core): migrate MessageV2.Format to Effect Schema (#23744) 2026-04-21 17:30:08 -04:00
Kit Langton
ecc06a3d8f
refactor(core): make Config.Info canonical Effect Schema (#23716) 2026-04-21 14:06:47 -04:00
Kit Langton
9579429276
test(opencode): consolidate session prompt tests into Effect style (#23710) 2026-04-21 15:54:40 +00:00
opencode-agent[bot]
f3d5a71620 chore: generate 2026-04-20 06:07:28 +00:00
Aiden Cline
c6c56ac2cf
tweak: rename tail_tokens -> preserve_recent_tokens (#23491) 2026-04-20 01:06:29 -05:00
Dax Raad
b9640fc7e4 core: fix session compaction test to properly enable prune config option 2026-04-19 19:53:43 -04:00
Dax Raad
5ae74aa881 Merge branch 'nxl/improve-compaction-strategy' into dev 2026-04-19 19:38:46 -04:00
Kit Langton
9918f389e7
fix: detect attachment mime from file contents (#23291) 2026-04-18 11:59:08 -04:00
Dax Raad
55315bdffa tui: fix sync loading indicator to properly show loading state on startup 2026-04-18 10:39:10 -04:00
Dax Raad
882b8e1e75 core: track retry attempts with detailed error context on assistant entries
users can now see when transient failures occur during assistant responses,
such as rate limits or provider overloads, giving visibility into what
issues were encountered and automatically resolved before the final response
2026-04-18 10:38:35 -04:00
opencode-agent[bot]
95edbc0ae6 chore: generate 2026-04-18 05:49:37 +00:00
Dax Raad
11cd4fb639 core: extract session entry stepping logic into dedicated module
Move the step function from session-entry.ts to session-entry-stepper.ts and remove immer dependency. Add static fromEvent factory methods to Synthetic, Assistant, and Compaction classes for cleaner event-to-entry conversion.
2026-04-18 01:48:21 -04:00
Kit Langton
05cdb7c107 refactor(v2): tag session unions and exhaustively match events (#23201) 2026-04-18 00:29:26 +00:00
Aiden Cline
76a141090e
chore: delete filetime module (#22999) 2026-04-16 23:31:21 -05:00
Brendan Allan
a4882290aa
Merge branch 'dev' into nxl/improve-compaction-strategy 2026-04-17 11:53:17 +08:00
Kit Langton
1c33b866ba
fix: remove 10 more unnecessary as any casts in opencode core (#22882) 2026-04-16 20:11:05 +00:00
Shoubhit Dash
42771c1db3 fix(compaction): budget retained tail with media 2026-04-16 17:30:29 +05:30
Shoubhit Dash
2e18a603f0 merge dev 2026-04-16 17:30:14 +05:30
Kit Langton
6b20838981
feat: unwrap provider namespaces to flat exports + barrel (#22760) 2026-04-16 05:02:50 +00:00
Kit Langton
5011465c81
feat: unwrap tool namespaces to flat exports + barrel (#22762) 2026-04-16 03:56:54 +00:00
Kit Langton
80f1f1b5b8
feat: enable type-aware no-floating-promises rule, fix all 177 violations (#22741) 2026-04-15 23:27:32 -04:00
Kit Langton
343a564183
feat: unwrap 11 util namespaces to flat exports + barrel (#22739) 2026-04-15 23:15:58 -04:00
Kit Langton
702f741267
feat: enable oxlint suspicious category, fix 24 violations (#22727) 2026-04-16 02:53:10 +00:00
Kit Langton
cf423d2769
fix: remove 10 unused type-only imports and declarations (#22696) 2026-04-16 02:17:59 +00:00
Kit Langton
cce05c1665
fix: clean up 49 unused variables, catch params, and stale imports (#22695) 2026-04-16 02:01:53 +00:00
Kit Langton
34213d4446
fix: delete 9 dead functions with zero callers (#22697) 2026-04-16 02:01:02 +00:00
Kit Langton
d6b14e2467
fix: prefix 32 unused parameters with underscore (#22694) 2026-04-15 21:56:23 -04:00
Kit Langton
1d81335ab5
feat: unwrap Provider namespace + improved automation script (#22690) 2026-04-15 21:44:46 -04:00
Kit Langton
f7d4665e40
fix: resolve oxlint warnings — suppress false positives, remove unused imports (#22687) 2026-04-15 21:33:54 -04:00
Kit Langton
bbdbc107ae
feat: unwrap Config namespace to flat exports + barrel (#22689) 2026-04-15 21:26:24 -04:00
Aiden Cline
307251bf3c
fix: bash memory usage (#22660) 2026-04-15 20:09:06 -05:00
Kit Langton
4ca809ef4e
fix(session): retry 5xx server errors even when isRetryable is unset (#22511) 2026-04-16 00:58:48 +00:00
Aiden Cline
e83b22159d
tweak: ensure auto continuing compaction is tracked as agent initiated for github copilot (#22567)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-04-15 15:50:33 -05:00
Aiden Cline
348a84969d
fix: ensure tool_use is always followed by tool_result (#22646)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2026-04-15 14:56:45 -05:00
Dax
be9432a893
shared package (#22626) 2026-04-15 14:26:20 +00:00
Shoubhit Dash
f6409759e5
fix: restore instance context in prompt runs (#22498) 2026-04-15 03:59:12 +05:30
Dax Raad
6ce5c01b1a ignore: v2 experiments 2026-04-14 14:25:38 -04:00
Kit Langton
68384613be
refactor(session): remove async facade exports (#22471) 2026-04-14 13:45:13 -04:00
Kit Langton
6a99079012
kit/env instance state (#22383) 2026-04-13 22:28:16 -04:00
Kit Langton
7a05ba47d1
refactor(session): remove compaction async facade exports (#22366) 2026-04-13 21:23:34 -04:00
Aiden Cline
34e2429c49
feat: add experimental.compaction.autocontinue hook to disable auto continuing after compaction (#22361) 2026-04-13 20:14:53 -05:00
Kit Langton
e8471256f2
refactor(session): move llm stream into layer (#22358) 2026-04-13 19:53:30 -04:00
Kit Langton
67aaecacac
refactor(session): remove revert async facade exports (#22339) 2026-04-13 16:16:13 -04:00
Kit Langton
dcbf11f41a
refactor(session): remove summary async facades (#22337) 2026-04-13 15:35:38 -04:00
Kit Langton
14ccff4037
refactor(agent): remove async facade exports (#22341) 2026-04-13 14:54:01 -04:00
Kit Langton
663e798e76
refactor(provider): remove async facade exports (#22320) 2026-04-13 12:40:00 -04:00