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
Luke Parker
7a568a457f
fix: defer MessageV2.Assistant.shape access to break circular dep in compiled binary ( #23495 )
2026-04-20 06:39:13 +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
5ae74aa881
Merge branch 'nxl/improve-compaction-strategy' into dev
2026-04-19 19:38:46 -04:00
Dax Raad
6eddf08244
flip toolcall prune defaults
2026-04-19 19:34:44 -04:00
Kit Langton
9918f389e7
fix: detect attachment mime from file contents ( #23291 )
2026-04-18 11:59:08 -04:00
Kit Langton
1dd257b76a
refactor: use instance state in small services ( #23022 )
2026-04-18 02:16:15 +00:00
Kit Langton
23a2d01282
fix(observability): standardize session telemetry attrs ( #23213 )
2026-04-17 21:14:23 -04:00
opencode-agent[bot]
9b0659d4f9
chore: generate
2026-04-17 19:30:28 +00:00
Kit Langton
f83cecaaf6
fix(opencode): untrace streaming event hot paths ( #23156 )
2026-04-17 15:29:32 -04: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
James Long
0bedea52b1
fix(tui): tui resiliency when workspace is dead, disable directory filter in session list ( #23013 )
2026-04-16 23:35:36 -04:00
opencode-agent[bot]
266fb93422
chore: generate
2026-04-17 00:50:44 +00:00
Kit Langton
51d8219c46
refactor: unwrap session/ tier-2 namespaces + self-reexport ( #22973 )
2026-04-17 00:49:39 +00:00
Kit Langton
5d47ea0918
refactor: unwrap ConfigMCP namespace + self-reexport ( #22948 )
2026-04-16 19:52:04 -04:00
Kit Langton
1c33b866ba
fix: remove 10 more unnecessary as any casts in opencode core ( #22882 )
2026-04-16 20:11:05 +00:00
James Long
06afd33291
refactor(tui): improve workspace management ( #22691 )
2026-04-16 12:24:40 -04: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
Dax
675a46e23e
CLI perf: reduce deps ( #22652 )
2026-04-16 02:03:03 -04:00
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
9f4b73b6a3
fix: clean up final 16 no-unused-vars warnings ( #22751 )
2026-04-16 03:54:21 +00:00
Kit Langton
0e20382396
fix: resolve circular sibling imports causing runtime ReferenceError ( #22752 )
2026-04-15 23:41:34 -04:00
Kit Langton
f24207844f
feat: unwrap storage namespaces to flat exports + barrel ( #22747 )
2026-04-15 23:30:49 -04:00
Kit Langton
1ca257e356
feat: unwrap config namespaces to flat exports + barrel ( #22746 )
2026-04-15 23:29:14 -04:00
Kit Langton
d4cfbd020d
feat: unwrap effect namespaces to flat exports + barrel ( #22745 )
2026-04-15 23:29:12 -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
379e40d772
feat: unwrap InstanceState + EffectBridge namespaces to flat exports + barrel ( #22721 )
2026-04-16 02:45:45 +00:00
opencode-agent[bot]
069cef8a44
chore: generate
2026-04-16 02:18:58 +00:00
Kit Langton
18538e359b
feat: unwrap usession namespace to flat exports + barrel ( #22713 )
2026-04-16 02:15:17 +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
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
Kit Langton
4ca809ef4e
fix(session): retry 5xx server errors even when isRetryable is unset ( #22511 )
2026-04-16 00:58:48 +00:00
Kit Langton
3d6f90cb53
feat: add oxlint with correctness defaults ( #22682 )
2026-04-15 20:45:19 -04:00
Kit Langton
250e30bc7d
add experimental permission HttpApi slice ( #22385 )
2026-04-15 21:28:01 +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
Kit Langton
f1751401aa
fix(effect): add effect bridge for callback contexts ( #22504 )
2026-04-15 15:22:34 +00:00
Dax
be9432a893
shared package ( #22626 )
2026-04-15 14:26:20 +00:00
Kit Langton
f73ff781e7
fix(opencode): export AI SDK telemetry spans ( #22526 )
2026-04-14 22:30:50 -04:00
Shoubhit Dash
f6409759e5
fix: restore instance context in prompt runs ( #22498 )
2026-04-15 03:59:12 +05:30
Luke Parker
f9d99f044d
fix(session): keep GitHub Copilot compaction requests valid ( #22371 )
2026-04-15 08:02:27 +10:00
Kit Langton
aeb7d99d20
fix(effect): preserve logger context in prompt runs ( #22496 )
2026-04-14 17:33:44 -04:00
Kit Langton
68384613be
refactor(session): remove async facade exports ( #22471 )
2026-04-14 13:45:13 -04:00
Aiden Cline
d312c677c5
fix: rm effect logger from processor.ts, use old logger for now instead ( #22460 )
2026-04-14 10:39:01 -05:00
Shoubhit Dash
d6840868d4
refactor(ripgrep): use embedded wasm backend ( #21703 )
2026-04-14 11:56:23 +05:30
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
d199648aeb
refactor(permission): remove async facade exports ( #22342 )
2026-04-13 19:33:58 -04:00
Dax Raad
59c0fc28ee
ignore: v2 thoughts
2026-04-13 17:33:34 -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
Dax Raad
913120759a
session entry
2026-04-13 14:00:49 -04:00
Dax
7a6ce05d09
2.0 exploration ( #22335 )
2026-04-13 13:47:33 -04:00
Kit Langton
c22e34853d
refactor(auth): remove async auth facade exports ( #22306 )
2026-04-13 12:31:43 -04:00
Aiden Cline
a915fe74be
tweak: adjust session getUsage function to use more up to date LanguageModelUsage instead of LanguageModelV2Usage ( #22224 )
2026-04-12 21:39:06 -05:00
Aiden Cline
8b9b9ad31e
fix: ensure images read by agent dont count against quota ( #22168 )
2026-04-12 12:02:39 -05:00
Kit Langton
eea4253d67
refactor(session): destroy Instruction facade ( #22089 )
2026-04-11 20:04:09 -04:00
Kit Langton
1a509d62a0
refactor(session): destroy SessionRunState facade ( #22064 )
2026-04-11 20:01:52 -04:00
opencode-agent[bot]
4c4eef46f1
chore: generate
2026-04-11 22:15:53 +00:00
Tommy D. Rossi
d62ec7776e
feat: allow session permission updates ( #22070 )
2026-04-11 17:14:30 -05:00
opencode-agent[bot]
d1f05b0f3a
chore: generate
2026-04-11 16:53:40 +00:00
Kit Langton
ccb0b320e1
refactor(session): make SystemPrompt a proper Effect Service ( #21992 )
2026-04-11 12:52:35 -04:00
opencode-agent[bot]
3b523b32f5
chore: generate
2026-04-11 03:28:30 +00:00
Kit Langton
ba3600a515
refactor(session): remove dead updatePartDelta facade ( #21985 )
2026-04-10 23:27:30 -04:00
Kit Langton
cd004cf0b2
refactor(session): eliminate Effect.promise roundtrips for sync MessageV2.stream ( #21973 )
2026-04-10 23:18:13 -04:00
Kit Langton
3dd09147c2
refactor(tool): Tool.Context.metadata returns Effect ( #21972 )
2026-04-10 23:12:04 -04:00
Kit Langton
9581bf0670
refactor(effect): upgrade opencode to beta.46 context APIs ( #21977 )
2026-04-10 23:06:28 -04:00
Kit Langton
af8aff3788
refactor: make TaskPromptOps effectful ( #21971 )
2026-04-10 22:57:47 -04:00
Kit Langton
5917ac2162
fix: provide EffectLogger.layer to bare Effect.runPromise/runFork calls ( #21974 )
2026-04-10 22:55:08 -04:00
opencode-agent[bot]
577139c626
chore: generate
2026-04-11 02:36:59 +00:00
Kit Langton
c5fb6281f0
refactor(tool): Tool.Def.execute returns Effect, rename defineEffect → define ( #21961 )
2026-04-10 22:36:02 -04:00
Kit Langton
f99812443c
refactor: destroy SessionStatus facade ( #21968 )
2026-04-10 22:16:53 -04:00
Kit Langton
a4c686025c
refactor: destroy Todo facade ( #21962 )
2026-04-10 21:47:28 -04:00
opencode-agent[bot]
605559b165
chore: generate
2026-04-11 01:22:01 +00:00
Kit Langton
5cd4c6eb22
refactor: destroy Storage facades ( #21956 )
2026-04-10 21:21:02 -04:00
Kit Langton
40358d60a0
refactor: add Effect logger for motel observability ( #21954 )
2026-04-10 21:10:58 -04:00
Aiden Cline
33819932ec
tweak: rm processor .trim calls ( #21958 )
2026-04-10 19:47:08 -05:00
Kit Langton
cf27a73397
feat: add AppRuntime for unified service composition ( #21953 )
2026-04-10 19:46:52 -04:00
Kit Langton
d9d5a0615e
refactor: break SessionPrompt/TaskTool cycle via ctx injection ( #21948 )
2026-04-10 19:36:13 -04:00
James Long
180ded6a27
rector(core,tui): handle workspace state in project context, add workspace status, improve ui ( #21896 )
2026-04-10 13:03:20 -04:00
Aiden Cline
9819eb0461
tweak: disable
2026-04-09 23:11:09 -05:00
Shoubhit Dash
aa86fb75ad
refactor compaction tail selection
2026-04-10 09:36:39 +05:30
Shoubhit Dash
6f5a3d30fd
keep recent turns during session compaction
2026-04-10 09:34:01 +05:30
Kit Langton
eca11ca71a
refactor(effect): use SessionRevert service in prompt ( #21796 )
2026-04-09 22:28:11 -04:00
Kit Langton
16c60c9ee7
refactor(session): extract sharing orchestration ( #21759 )
2026-04-09 21:47:48 -04:00
Kit Langton
b2f621b897
refactor(session): inline init route orchestration ( #21754 )
2026-04-09 16:28:42 -04:00
Kit Langton
10441efad1
refactor(effect): extract session run state service ( #21744 )
2026-04-09 16:03:40 -04:00
Kit Langton
3199383eef
fix: finalize interrupted bash via tool result path ( #21724 )
2026-04-09 15:20:28 -04:00
Kit Langton
9f54115c5d
refactor: remove unused runtime facade exports ( #21731 )
2026-04-09 14:52:06 -04:00
Dax
bd53b651a3
refactor: fix tool call state handling and clean up imports ( #21709 )
2026-04-09 11:56:19 -04:00
Kit Langton
46da801f30
refactor(effect): drop shell abort signals from runner ( #21599 )
2026-04-09 10:54:26 -04:00
Kit Langton
58a99916bb
fix: preserve text part timing in session processor ( #21691 )
2026-04-09 10:05:14 -04:00
Kit Langton
c29392d085
fix: preserve interrupted bash output in tool results ( #21598 )
2026-04-09 10:03:26 -04:00
Aiden Cline
489f57974d
feat: add opencode go upsell modal when limits are hit ( #21583 )
...
Co-authored-by: Frank <frank@anoma.ly>
2026-04-09 02:16:29 -04:00
Vladimir Glafirov
cd8e8a9928
feat(llm): integrate GitLab DWS tool approval with permission system ( #19955 )
...
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2026-04-08 20:39:33 -05:00
Kit Langton
8bdcc22541
refactor(effect): inline session processor interrupt cleanup ( #21593 )
2026-04-08 21:19:01 -04:00
Kit Langton
2bdd279467
fix: propagate abort signal to inline read tool ( #21584 )
2026-04-08 21:07:55 -04:00
Kit Langton
38f8714c09
refactor(effect): build task tool from agent services ( #21017 )
2026-04-08 19:02:19 -04:00
Dax
463318486f
core: refactor tool system to remove agent context from initialization ( #21052 )
2026-04-07 19:48:12 -04:00
Aiden Cline
81bdffc81c
fix: ensure the alibaba provider errors are retried ( #21355 )
2026-04-07 17:46:01 +00:00
Dax
1f94c48bdd
fix(opencode): keep user message variants scoped to model ( #21332 )
2026-04-07 10:12:53 -04:00
Aiden Cline
48c1b6b338
tweak: move the max token exclusions to plugins @rekram1-node ( #21225 )
2026-04-06 17:43:58 -05:00
Aiden Cline
40e4cd27a1
tweak: adjust chat.params hook to allow altering of the maxOutputTokens ( #21220 )
2026-04-06 18:13:30 +00:00
Aiden Cline
280eb16e77
fix: ensure reasoning tokens arent double counted when calculating usage ( #21047 )
2026-04-04 15:29:53 -07:00
Yuxin Dong
c08fa5675f
refactor: remove redundant Kimi skill section ( #20393 )
...
Co-authored-by: dongyuxin <dongyuxin@dev.dongyuxin.msh-dev.svc.cluster.local>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2026-04-04 18:32:26 +00:00
Kit Langton
f2d4ced8ea
refactor(effect): build todowrite tool from Todo service ( #20789 )
...
Co-authored-by: Juan Pablo Carranza Hurtado <52012198+jpcarranza94@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 12:05:40 -04:00
Kit Langton
7994dce0f2
refactor(effect): resolve built tools through the registry ( #20787 )
2026-04-03 10:31:00 -04:00
Nate Williams
6359d00fb4
fix(core): fix restoring earlier messages in a reverted chain ( #20780 )
2026-04-03 18:23:00 +05:30
Kevin Flansburg
e89527c9f0
feat: Send x-session-affinity and x-parent-session-id headers ( #20744 )
2026-04-02 22:09:53 -05:00
Kit Langton
8942fc21aa
refactor(effect): prune unused facades ( #20748 )
2026-04-02 20:15:09 -04:00
Kit Langton
5e1b513527
refactor(todo): effectify session todo ( #20595 )
2026-04-02 19:11:23 +00:00
Aiden Cline
510a1e8140
ignore: fix typecheck in dev ( #20702 )
2026-04-02 15:38:30 +00:00
Noam Bressler
291a857fb8
feat: add optional messageID to ShellInput ( #20657 )
2026-04-02 10:18:16 -05:00
Aiden Cline
23c8656080
refactor: split up models.dev and config model definitions to prevent coupling ( #20605 )
2026-04-02 10:00:43 -05:00
Frank
811c7e2494
cli: update usage exceeded error
2026-04-02 00:25:23 -04:00
Aaron Zhu
5daf2fa7f0
fix(session): compaction agent responds in same language as conversation ( #20581 )
...
Co-authored-by: Aaron Zhu <aaron@Aarons-MacBook-Air.local>
2026-04-01 21:44:16 -05:00
Valentin Vivaldi
733a3bd031
fix(core): prevent agent loop from stopping after tool calls with OpenAI-compatible providers ( #14973 )
...
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-04-01 21:34:01 -05:00
Kit Langton
0bae38c062
refactor(instruction): migrate to Effect service pattern ( #20542 )
2026-04-01 22:22:51 -04:00
Kit Langton
b1c07488bd
refactor(revert): yield SessionSummary.Service directly ( #20541 )
2026-04-01 20:10:59 -04:00
opencode-agent[bot]
854484babf
chore: generate
2026-04-01 23:49:44 +00:00
Kit Langton
26fb6b8788
refactor: add Effect-returning versions of MessageV2 functions ( #20374 )
2026-04-01 19:48:36 -04:00
Kit Langton
d9d4f895bc
fix(test): auto-acknowledge tool-result follow-ups in mock LLM server ( #20528 )
2026-04-01 23:47:26 +00:00
Kit Langton
a9c85b7c27
refactor(shell): use Effect ChildProcess for shell command execution ( #20494 )
2026-04-01 12:07:57 -04:00
Kit Langton
5fd833aa18
refactor: standardize InstanceState variable name to state ( #20267 )
2026-04-01 10:39:43 -04:00
Kit Langton
181b5f6236
refactor(prompt): use Provider service in effect layers ( #20167 )
2026-04-01 00:44:15 +00:00
opencode-agent[bot]
9b09a7e766
chore: generate
2026-03-31 23:15:56 +00:00
Kit Langton
3fc0367b93
refactor(session): effectify SessionRevert service ( #20143 )
2026-03-31 19:14:49 -04:00
Kit Langton
954a6ca88e
refactor(session): effectify SessionSummary service ( #20142 )
2026-03-31 19:14:45 -04:00
Kit Langton
0c03a3ee10
test: migrate prompt tests to HTTP mock LLM server ( #20304 )
2026-03-31 19:14:32 -04:00
Major Hayden
26cc924ea2
feat: enable prompt caching and cache token tracking for google-vertex-anthropic ( #20266 )
...
Signed-off-by: Major Hayden <major@mhtx.net>
2026-03-31 15:16:14 -05:00
Dax
567a91191a
refactor(session): simplify LLM stream by replacing queue with fromAsyncIterable ( #20324 )
2026-03-31 15:27:51 -04:00
Yuxin Dong
2daf4b805a
feat: add a dedicated system prompt for Kimi models ( #20259 )
...
Co-authored-by: dongyuxin <dongyuxin@dev.dongyuxin.msh-dev.svc.cluster.local>
2026-03-31 17:44:17 +02:00
Dax
befbedacdc
fix(session): subagents not being clickable ( #20263 )
2026-03-31 08:58:46 -04:00
Kit Langton
e6f6f7aff1
refactor: replace Filesystem util with AppFileSystem service ( #20127 )
2026-03-30 21:48:28 +00:00
Kit Langton
2ed756c72c
fix(session): restore busy route handling and add regression coverage ( #20125 )
2026-03-30 20:30:34 +00:00
Kit Langton
c5442d418d
refactor(session): effectify SessionPrompt service ( #19483 )
2026-03-30 20:06:51 +00:00
Aiden Cline
9f3c2bd861
fix: agent value passed to chat.params and chat.headers hooks was not a string ( #19996 )
2026-03-30 16:32:27 +00:00
Knut Zuidema
196a03caff
fix: discourage _noop tool call during LiteLLM compaction ( #18539 )
2026-03-29 22:48:17 -05:00
Luke Parker
b234370080
feat(windows): add first-class pwsh/powershell support ( #16069 )
2026-03-30 13:10:01 +10:00
Aiden Cline
afb6abff73
fix: ensure OPENCODE_DISABLE_CLAUDE_CODE_PROMPT is respected for project lvl CLAUDE.md ( #19924 )
2026-03-29 18:02:29 +00:00
ualtinok
72c77d0e7b
fix(session): fix token usage double-counting w/ anthropic & bedrock due to AI SDK v6 upgrade ( #19758 )
...
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-03-29 12:40:10 -05:00
Aiden Cline
72cb9dfa31
tweak: adjust gpt prompt to be more minimal, fix file reference annoyances ( #19585 )
2026-03-28 21:32:40 -05:00
Aiden Cline
36aeb32159
ignore: kill todo ( #19566 )
2026-03-29 00:06:32 +00:00
Kit Langton
860531c275
refactor(session): effectify session processor ( #19485 )
2026-03-28 12:09:47 -04:00
Kit Langton
2145d97f18
refactor(session): effectify SessionCompaction service ( #19459 )
2026-03-28 01:09:14 +00:00
Kit Langton
e5f0e813b6
refactor(session): effectify Session service ( #19449 )
2026-03-27 16:25:47 -04:00
Aiden Cline
c33d9996f0
feat: AI SDK v6 support ( #18433 )
2026-03-27 15:24:30 -05:00
Sebastian
6274b0677c
tui plugins ( #19347 )
2026-03-27 15:00:26 +01:00
James Long
38450443b1
feat(core): remove workspace server, WorkspaceContext, start work towards better routing ( #19316 )
2026-03-26 12:30:26 -04:00
Aiden Cline
da1d37274f
feat: add gpt prompt so non codex gpt models have their own system prompt modeled after codex cli ( #19220 )
2026-03-26 15:57:38 +00:00
Kit Langton
97c15a087d
effectify Bus service: migrate to Effect PubSub + InstanceState ( #18579 )
2026-03-25 20:19:24 -04:00
Kit Langton
8864fdce2f
fix: Windows e2e stability (CrossSpawnSpawner, snapshot isolation, session race guards) ( #19163 )
2026-03-25 19:49:14 -04:00
André Cruz
7123aad5a8
fix(opencode): classify ZlibError from Bun fetch as retryable instead of unknown ( #19104 )
...
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2026-03-25 13:08:40 -05:00
James Long
b0017bf1b9
feat(core): initial implementation of syncing ( #17814 )
2026-03-25 10:47:40 -04:00
Ryan Skidmore
814a515a8a
fix: improve plugin system robustness — agent/command resolution, async errors, hook timing, two-phase init ( #18280 )
...
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2026-03-24 12:50:55 -05:00
Vladimir Glafirov
9330bc5339
fix: route GitLab Duo Workflow system prompt via flowConfig ( #18928 )
2026-03-24 12:33:18 -05:00
Aiden Cline
691644eeeb
tweak: add back setting user agent in requests ( #18795 )
2026-03-23 15:34:59 +00:00
Kit Langton
0e0e7a4a4b
effectify Command service ( #18568 )
2026-03-22 00:21:41 +00:00
Kit Langton
10a3d6c54e
effectify SessionStatus service ( #18565 )
2026-03-21 23:55:07 +00:00
Kit Langton
38e0dc9ccd
Move service state into InstanceState, flatten service facades ( #18483 )
2026-03-21 04:51:35 +00:00
Kit Langton
214a6c6cf1
fix: switch consumers to service imports to break bundle cycles ( #18438 )
2026-03-20 20:55:46 +00:00
Vladimir Glafirov
05d3e65f76
feat: enable GitLab Agent Platform with workflow model discovery ( #18014 )
2026-03-20 12:55:22 -05:00
Aiden Cline
bfdc38e421
tweak: adjust codex plugin logic so that codex instruction isn't always added (oauth plan no longer enforces instruction whitelisting) ( #18337 )
2026-03-20 10:37:47 -05:00
Luke Parker
d460614cd7
fix: lots of desktop stability, better e2e error logging ( #18300 )
2026-03-20 00:12:06 -04:00
Dax
1071aca91f
fix: miscellaneous small fixes ( #18328 )
2026-03-19 22:20:29 -04:00
Dax
52a7a04ad8
refactor: replace Bun shell execution with portable Process utilities ( #18318 )
2026-03-19 21:17:06 -04:00
Dax
1ac1a0287c
anthropic legal requests ( #18186 )
2026-03-19 04:45:24 +00:00
Kit Langton
84e62fc662
fix(session): preserve tagged error messages ( #18165 )
2026-03-18 20:36:53 -04:00
Aiden Cline
8ee939c741
tweak: remove unnecessary parts from the fallback system prompt ( #18140 )
2026-03-18 17:27:47 -05:00
Kit Langton
5dfe86dcb1
refactor(truncation): effectify TruncateService, delete Scheduler ( #17957 )
2026-03-17 21:59:54 -04:00
Kit Langton
fee3c196c5
add prompt schema validation debug logs ( #17812 )
2026-03-17 19:18:16 -04:00
Kit Langton
2cbdf04ec9
refactor(file-time): effectify FileTimeService with Semaphore locks ( #17835 )
2026-03-16 18:23:13 +00:00
DS
4cb29967f6
fix(opencode): apply message transforms during compaction ( #17823 )
2026-03-16 11:32:53 -05:00
Jason Quense
c2ca1494e5
fix(opencode): preserve prompt tool enables with empty agent permissions ( #17064 )
...
Co-authored-by: jquense <jquense@ramp.com>
2026-03-15 23:01:46 -05:00
Kit Langton
66e8c57ed1
refactor(schema): inline branded ID schemas ( #17504 )
2026-03-14 16:14:46 +00:00
Adam
843f188aaa
fix(app): support text attachments ( #17335 )
2026-03-13 06:58:24 -05:00
Shoubhit Dash
9457493696
perf(server): paginate session history ( #17134 )
2026-03-13 15:48:43 +05:30
Adam
9d3c42c8c4
fix(app): task error state
2026-03-12 16:25:49 -05:00
Kit Langton
1cb7df7159
refactor(provider): flow branded ProviderID/ModelID through internal signatures ( #17182 )
2026-03-12 14:48:17 +00:00
Kit Langton
c45467964c
feat(id): brand ProviderID and ModelID ( #17110 )
2026-03-12 09:27:52 -04:00
Kit Langton
2a4dedc210
feat(id): brand PermissionID, PtyID, QuestionID, and ToolID ( #17042 )
2026-03-12 01:49:57 +00:00
Kit Langton
090f636354
feat(id): brand PartID through Drizzle and Zod schemas ( #16966 )
2026-03-11 23:40:50 +00:00
Kit Langton
16a6d6feba
feat(id): brand WorkspaceID through Drizzle and Zod schemas ( #16964 )
2026-03-11 23:30:17 +00:00
Kit Langton
cb67465675
feat(id): brand SessionID through Drizzle and Zod schemas ( #16953 )
2026-03-11 23:16:56 +00:00
Aiden Cline
f96e2d4222
tweak: adjust skill presentation to be a little less token heavy ( #17098 )
2026-03-11 16:03:15 -05:00
Kit Langton
dbc00aa8e0
feat(id): brand ProjectID through Drizzle and Zod schemas ( #16948 )
2026-03-11 16:44:26 -04:00
Aiden Cline
0f6bc8ae71
tweak: adjust way skills are presented to agent to increase likelyhood of skill invocations. ( #17053 )
2026-03-11 10:24:55 -05:00
Luke Parker
4ab35d2c5c
fix(electron): hide Windows background consoles ( #16842 )
...
Co-authored-by: Brendan Allan <git@brendonovich.dev>
2026-03-11 13:33:06 +10:00
Dax
613562f504
core: make account login upgrades safe while adding multi-account workspace auth ( #15487 )
...
Co-authored-by: Kit Langton <kit.langton@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 12:53:47 -04:00
James Long
a4330a225d
feat(core): allow passing workspaceID into session create endpoint ( #16798 )
2026-03-10 11:12:51 -04:00
Dax Raad
831eb6881b
refactor: change pathToFileURL imports from bun to url module
2026-03-09 14:52:25 -04:00
Ryan Skidmore
fd6f7133c5
fix(opencode): clone part data in Bus event to preserve token values ( #15780 )
2026-03-02 22:52:43 -05:00
opencode-agent[bot]
4b9e19f72f
chore: generate
2026-03-02 07:41:53 +00:00
bentrd
be20f865ac
fix: recover from 413 Request Entity Too Large via auto-compaction ( #14707 )
...
Co-authored-by: Noam Bressler <noamzbr@gmail.com>
2026-03-02 13:10:55 +05:30
James Long
3ee1653f40
feat(core): add workspace_id to session table ( #15410 )
2026-02-28 22:09:53 -05:00
Shantur Rathore
79b5ce58e9
feat(core): add message delete endpoint ( #14417 )
2026-02-25 09:25:26 -05:00
Ryan Vogel
7419ebc872
feat: add list sessions for all sessions (experimental) ( #14038 )
2026-02-20 08:45:12 -05:00
NatChung
d2d7a37bca
fix: add missing id/sessionID/messageID to MCP tool attachments ( #14345 )
2026-02-19 18:37:56 -06:00
Dax
01d518708a
remove unnecessary deep clones from session loop and LLM stream ( #14354 )
2026-02-19 18:37:55 -06:00
Dax
cb8b74d3f1
refactor: migrate from Bun.Glob to npm glob package ( #14317 )
2026-02-19 13:40:09 -05:00
Dax Raad
af72010e9f
Revert "refactor: migrate from Bun.Glob to npm glob package"
...
This reverts commit 3c21735b35 .
2026-02-19 12:48:43 -05:00
Dax Raad
3c21735b35
refactor: migrate from Bun.Glob to npm glob package
...
Replace Bun.Glob usage with a new Glob utility wrapper around the npm 'glob' package.
This moves us off Bun-specific APIs toward standard Node.js compatible solutions.
Changes:
- Add new src/util/glob.ts utility module with scan(), scanSync(), and match()
- Default include option is 'file' (only returns files, not directories)
- Add symlink option (default: false) to control symlink following
- Migrate all 12 files using Bun.Glob to use the new Glob utility
- Add comprehensive tests for the glob utility
Breaking changes:
- Removed support for include: 'dir' option (use include: 'all' and filter manually)
- symlink now defaults to false (was true in most Bun.Glob usages)
Files migrated:
- src/util/log.ts
- src/util/filesystem.ts
- src/tool/truncation.ts
- src/session/instruction.ts
- src/storage/json-migration.ts
- src/storage/storage.ts
- src/project/project.ts
- src/cli/cmd/tui/context/theme.tsx
- src/config/config.ts
- src/tool/registry.ts
- src/skill/skill.ts
- src/file/ignore.ts
2026-02-19 12:34:18 -05:00
Dax
02a9495063
Remove use of Bun.file ( #14215 )
2026-02-19 11:32:32 -05:00
Dax Raad
568eccb4c6
Revert: all refactor commits migrating from Bun.file() to Filesystem module
2026-02-18 19:41:14 -05:00
Dax
57b63ea83d
refactor: migrate src/session/prompt.ts from Bun.file() to Filesystem/stat modules ( #14128 )
2026-02-19 00:18:05 +00:00
Dax
ae398539c5
refactor: migrate src/session/instruction.ts from Bun.file() to Filesystem module ( #14130 )
2026-02-18 18:09:45 -05:00
opencode-agent[bot]
2d7c9c9692
chore: generate
2026-02-18 20:15:14 +00:00
Helge Tesdal
1aa18c6cd6
feat(plugin): pass sessionID and callID to shell.env hook input ( #13662 )
2026-02-18 14:14:18 -06:00
legao
c56f4aa5d8
refactor: simplify redundant ternary in updateMessage ( #13954 )
2026-02-17 17:40:14 -06:00
Aiden Cline
e35a4131d0
core: keep message part order stable when files resolve asynchronously ( #13915 )
2026-02-16 18:45:11 -06:00
Aiden Cline
a580fb47d2
tweak: drop ids from attachments in tools, assign them in prompt.ts instead ( #13890 )
2026-02-16 14:59:57 -06:00
Rafi Khardalian
45fa5e7199
fix(core): remove unnecessary per-message title LLM calls ( #13804 )
2026-02-16 06:04:20 -06:00
Dax Raad
68bb8ce1da
core: filter sessions at database level to improve session list loading performance
2026-02-14 13:41:15 -05:00
Dax Raad
b020758446
tui: show all project sessions from any working directory
...
Previously sessions were only listed if they were created in the current
working directory or its subdirectories. Users can now view and switch
to any session in the project regardless of which directory they're in.
2026-02-14 01:21:41 -05:00
Dax
6d95f0d14c
sqlite again ( #10597 )
...
Co-authored-by: Github Action <action@github.com>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Brendan Allan <git@brendonovich.dev>
2026-02-14 04:19:02 +00:00
Aiden Cline
98aeb60a7f
fix: ensure @-ing a dir uses the read tool instead of dead list tool ( #13428 )
2026-02-12 23:20:33 -06:00
Dax Raad
56ad2db020
core: expose tool arguments in shell hook for plugin visibility
2026-02-12 09:54:47 -05:00
Kyle Mistele
e269788a8f
feat: support claude agent SDK-style structured outputs in the OpenCode SDK ( #8161 )
...
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Dax Raad <d@ironbay.co>
2026-02-12 04:54:05 +00:00
Aiden Cline
8c7b35ad05
tweak: compaction check ( #13214 )
2026-02-11 21:43:04 +00:00
Aiden Cline
006d673ed2
tweak: make read tool offset 1 indexed instead of 0 to avoid confusion that could be caused by line #s being 1 based ( #13198 )
2026-02-11 14:02:30 -06:00
Aiden Cline
0fd6f365be
fix(core): ensure compaction is more reliable, add reserve token buffer to ensure that input window has enough room to compact ( #12924 )
...
Co-authored-by: James Lal <james@littlebearlabs.io>
2026-02-10 19:55:22 -06:00
Dax
8bdf6fa359
fix: show helpful message when free usage limit is exceeded ( #13005 )
2026-02-10 19:04:10 +00:00
Adam
659f15aa9b
fix(app): no changes in review pane
2026-02-10 11:53:33 -06:00
Peter Dave Hello
87795384de
chore: fix typos and GitHub capitalization ( #12852 )
2026-02-10 06:53:38 -06:00