Commit Graph

759 Commits

Author SHA1 Message Date
Aiden Cline b3cb3a21ce fix: parallel edits sometimes would override each other (#23483) 2026-04-20 00:14:21 -05:00
Dax Raad c901654658 core: fix session compaction test to properly enable prune config option 2026-04-19 19:53:43 -04:00
Dax Raad 8890f79f60 Merge branch 'nxl/improve-compaction-strategy' into dev 2026-04-19 19:38:46 -04:00
Aiden Cline 2408ee6785 test: fix bedrock test (#23351) 2026-04-18 17:46:15 -05:00
Kit Langton 32c3017b00 fix: detect attachment mime from file contents (#23291) 2026-04-18 11:59:08 -04:00
opencode-agent[bot] f0051d95cb chore: generate 2026-04-18 15:21:48 +00:00
Dax Raad 0a1c0663e9 core: support OTEL_RESOURCE_ATTRIBUTES environment variable for custom telemetry attributes
Users can now pass custom OpenTelemetry resource attributes via the OTEL_RESOURCE_ATTRIBUTES environment variable (comma-separated key=value format). These attributes are automatically included in all telemetry data sent from both the main process and workspace environments, enabling better observability integration with existing monitoring systems that rely on custom resource tags.
2026-04-18 11:20:29 -04:00
Dax Raad e438ce9c50 tui: fix sync loading indicator to properly show loading state on startup 2026-04-18 10:39:10 -04:00
Dax Raad 08710de30f 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] db322bdb85 chore: generate 2026-04-18 05:49:37 +00:00
Dax Raad ed50480ba1 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
Aiden Cline 5264cffe42 fix: make skills logic more token efficient (#23253) 2026-04-17 23:51:16 -05:00
opencode-agent[bot] caf95068a8 chore: generate 2026-04-18 02:03:30 +00:00
Kit Langton cdc1e5daf3 feat(effect-zod): add ZodPreprocess annotation for pre-parse transforms (#23222) 2026-04-18 02:02:37 +00:00
Kit Langton f8327dea11 refactor: remove ambient instance reads from lsp (#23023) 2026-04-17 21:47:59 -04:00
opencode-agent[bot] 665a86a320 chore: generate 2026-04-18 00:56:33 +00:00
Kit Langton bb98729bb5 feat(effect-zod): translate Schema.withDecodingDefault into zod .default() (#23207) 2026-04-17 20:55:38 -04:00
Kit Langton 39c717ab2a feat(effect-zod): translate well-known filters into native Zod methods (#23209) 2026-04-17 20:50:36 -04:00
Kit Langton 1762028f59 refactor(v2): tag session unions and exhaustively match events (#23201) 2026-04-18 00:29:26 +00:00
Kit Langton 0fd839cd9f feat(effect-zod): transform support + walk memoization + flattened checks (#23203) 2026-04-18 00:29:26 +00:00
Kit Langton 7bedccacce refactor(server): align route-span attrs with OTel semantic conventions (#23198) 2026-04-18 00:29:26 +00:00
Kit Langton abe67f0140 feat(effect-zod): add catchall (StructWithRest) support to the walker (#23186) 2026-04-18 00:29:26 +00:00
Kit Langton 4ca91ab698 feat(server): auto-tag route spans with route params (session.id, message.id, …) (#23189) 2026-04-18 00:29:26 +00:00
Kit Langton d3ec3f6cd6 feat(effect-zod): add tuple support; migrate config/plugin to Effect Schema (#23178) 2026-04-17 21:06:55 +00:00
opencode-agent[bot] 57908d0e67 chore: generate 2026-04-17 20:47:05 +00:00
Kit Langton eb2a78fd0f feat(effect-zod): translate Schema.check filters into zod .superRefine + promote LSP refinement to Effect layer (#23173) 2026-04-17 20:46:05 +00:00
Kit Langton b895e66465 fix(opencode): normalize provider metadata and tag otel runs (#23140) 2026-04-17 15:22:08 -04:00
Dax 99871ed954 refactor: consolidate npm exports and trace flock acquisition (#23151) 2026-04-17 18:58:37 +00:00
Dax Raad 0b8e65bacb test: align plugin loader npm mocks
- switch plugin loader tests to the effect npm module
- return Option.none() for mocked npm entrypoints
- keep test fixtures aligned with the current Npm.add contract
2026-04-17 14:33:02 -04:00
Dax Raad f05db05a03 trace npm fully 2026-04-17 14:08:45 -04:00
James Long bc5ef2be93 fix(core): add historical sync on workspace connect (#23121) 2026-04-17 13:30:09 -04:00
Ismail Ghallou 10db5e78c0 feat: add LLM Gateway provider (#7847)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-04-17 10:29:31 -05:00
James Long cfc87d84a6 refactor(core): move server routes around to clarify workspacing (#23031) 2026-04-17 02:06:20 -04:00
Aiden Cline 0fce19f42c chore: delete filetime module (#22999) 2026-04-16 23:31:21 -05:00
Brendan Allan 118a2b3939 Merge branch 'dev' into nxl/improve-compaction-strategy 2026-04-17 11:53:17 +08:00
James Long 53e47bc9ca 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] 65372e02b9 chore: generate 2026-04-17 02:34:07 +00:00
Dax 8e9172e230 refactor: make formatter config opt-in (#22997) 2026-04-17 02:33:09 +00:00
Dax 31baaf507b fix: prefer real undo filenames over /dev/null (#23006) 2026-04-16 22:25:43 -04:00
Dax 103d30f53a refactor: split config parsing steps (#22996) 2026-04-17 01:57:43 +00:00
Kit Langton af93eb5041 refactor: convert Flag namespace to const object with getters (#22984) 2026-04-17 01:57:21 +00:00
Kit Langton 898e6243f4 refactor: eliminate account/ barrel, route consumers to sibling files (#22995) 2026-04-17 01:55:50 +00:00
Kit Langton 05240cfc2e refactor: normalize AccountRepo to canonical Effect service pattern (#22991) 2026-04-17 01:43:57 +00:00
Kit Langton 8ffb5340aa refactor: unwrap ConfigMCP namespace + self-reexport (#22948) 2026-04-16 19:52:04 -04:00
Kit Langton 44e80315df refactor: collapse plugin barrel into plugin/index.ts (#22914) 2026-04-16 20:37:13 +00:00
Kit Langton 2902acc08c fix: remove 10 more unnecessary as any casts in opencode core (#22882) 2026-04-16 20:11:05 +00:00
Kobi Hudson 61f887383c fix(opencode): drop max_tokens for OpenAI reasoning models on Cloudflare AI Gateway (#22864)
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2026-04-16 15:01:21 -05:00
Aiden Cline 359d134354 tweak: set display 'summarized' by default for opus 4.7 thorugh messages api (#22873) 2026-04-16 14:12:43 -05:00
Dax d354d5fb04 fix(test): make plugin loader theme source path separator-safe (#22870) 2026-04-16 14:45:17 -04:00
Dax Raad 85ff86fe9e core: modularize config parsing to improve maintainability
Extract error handling, parsing logic, and variable substitution into dedicated
modules. This reduces duplication between tui.json and opencode.json parsing
and makes the config system easier to extend for future config formats.
2026-04-16 13:29:03 -04:00