Commit Graph

70 Commits

Author SHA1 Message Date
Dax Raad 02ff0a1779 sync 2026-01-31 01:58:20 -05:00
Patrick Schiel e6e94b5d59 fix: handle redirected_statement treesitter node in bash permissions (#6737) 2026-01-30 16:11:45 -06:00
Aiden Cline 5be2bcf5c9 feat: dynamically resolve AGENTS.md files from subdirectories as agent explores them (#10678) 2026-01-26 10:49:41 -05:00
Aiden Cline b29d5ee105 test: fix 2026-01-24 23:42:12 -05:00
Aiden Cline 25644f2948 test: fix 2026-01-24 23:41:47 -05:00
Britt 16c9f5b8a4 fix(web): construct apply_patch metadata before requesting permission (#10422) 2026-01-24 12:00:21 -06:00
Aiden Cline 96e8e691b9 rm filetime assertions from patch tool 2026-01-20 00:32:29 -06:00
zerone0x 710b42f910 fix(tool): treat .fbs files as text instead of images (#9276)
Co-authored-by: Claude <noreply@anthropic.com>
2026-01-18 13:17:49 -06:00
GitHub Action f67c381bc8 chore: generate 2026-01-18 06:42:13 +00:00
Bowen Dwelle cb4625cc62 feat(tool): increase question header and label limits (#9201) 2026-01-18 00:41:36 -06:00
Aiden Cline 088d592c09 feat: apply_patch tool for openai models (#9127) 2026-01-18 00:35:09 -06:00
Aiden Cline 2c56a3bb14 test: fix read test 2026-01-12 15:49:31 -06:00
Aiden Cline 8f93012aeb fix: ensure plurals are properly handled (#8070) 2026-01-12 15:21:01 -06:00
Dax Raad 48070e0f8d core: extract external directory validation to shared utility to reduce code duplication across tools 2026-01-10 18:49:42 -05:00
Aiden Cline 31d9a72d45 test: add larger image test for read tool 2026-01-07 23:01:02 -06:00
Aiden Cline 1bccb5e488 feat: write truncated tool outputs to files (#7239) 2026-01-07 17:25:00 -06:00
Aiden Cline 513dce744f core: remove hardcoded .env read block and use new permissions model instead 2026-01-04 01:49:49 -06:00
Aiden Cline fb2dbbab9b fix: ensure new permissions changes work for special case bash commands like rm, cd, etc 2026-01-01 17:27:23 -06:00
Dax e839c1522d 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
Aiden Cline 50acb2a11a test: add more tests to make sure that cwd is locked for read tool 2025-12-26 14:30:05 -06:00
lif a07dfc8d2a fix: handle Windows CRLF line endings in grep tool (#5948)
Co-authored-by: Claude <noreply@anthropic.com>
2025-12-22 22:26:15 -06:00
Buck Evan 3d9414838e fix(read): narrow .env file blocking to not block .envrc (#5654)
Co-authored-by: Claude <noreply@anthropic.com>
2025-12-22 08:37:43 -06:00
Aiden Cline 5c7a021e61 ignore: add bash tests 2025-12-10 15:07:40 -06:00
Aiden Cline 476e3ca9f0 tweak: make bash give agent more awareness of cwd, bump default timeout, drop max timeout (#5140) 2025-12-06 23:55:07 -06:00
Aiden Cline 358593ddaa ignore: todo fix test case 2025-11-19 15:18:21 -06:00
Aiden Cline 491c26bae3 ignore: flaky test be a lil less flaky plz 2025-11-19 14:46:06 -06:00
Aiden Cline 692984a2a4 ignore: fix hanging test 2025-11-19 14:38:12 -06:00
Dax Raad d3473ee7c7 ci 2025-11-11 01:59:10 -05:00
GitHub Action 9855771157 chore: format code 2025-11-08 01:59:02 +00:00
Dax Raad a1f2e6bf93 flaky test 2025-11-06 13:05:53 -05:00
Dax Raad 2bd3f72eb6 fix tests 2025-11-06 11:42:46 -05:00
Aiden Cline aeef860dab chore: rm hanging test 2025-11-06 10:39:32 -06:00
Dax fd63884d0b OpenTUI is here (#2685) 2025-10-31 15:07:36 -04:00
Dax Raad bfd17abe16 test cleanup 2025-10-24 09:29:38 -04:00
Dax Raad c338173f7a core: make patch tool more reliable and consistent with other editing tools
The patch tool now works seamlessly alongside other file editing tools with improved
error handling and a more intuitive permission system. Users will experience:

- More reliable patch application with better error messages
- Consistent permission prompts that match other editing tools
- Smoother integration when applying complex multi-file changes
- Better feedback on what changes are being made before applying patches

This refactoring leverages the robust patch parsing engine while making the tool
feel native to the opencode workflow, reducing friction when making bulk changes
to your codebase.
2025-10-01 06:45:43 -04:00
Dax Raad fc1cf01a26 ci: improve test coverage 2025-09-27 03:04:42 -04:00
Dax Raad 56d0e8acbf sync 2025-09-27 02:53:20 -04:00
Dax Raad 41065c3353 ignore: rework bootstrap so server lazy starts it 2025-09-19 05:11:29 -04:00
Dax bbe1d61875 support custom tools (#2668) 2025-09-18 03:58:21 -04:00
Dax Raad 22fd365bf1 ignore: fix event type gen 2025-09-17 01:17:56 -04:00
Dax 0a4df97382 Upgrade to Zod v4 (#2605)
Co-authored-by: GitHub Action <action@github.com>
2025-09-15 03:12:07 -04:00
Zack Jackson 37893ed24c feat: add dynamic tool registration for plugins and external services (#2420) 2025-09-08 16:25:04 -04:00
Dax aea78046d0 Refactor to support multiple instances inside single opencode process (#2360)
This release has a bunch of minor breaking changes if you are using opencode plugins or sdk

1. storage events have been removed (we might bring this back but had some issues)
2. concept of `app` is gone - there is a new concept called `project` and endpoints to list projects and get the current project
3. plugin receives `directory` which is cwd and `worktree` which is where the root of the project is if it's a git repo
4. the session.chat function has been renamed to session.prompt in sdk. it no longer requires model to be passed in (model is now an object)
5. every endpoint takes an optional `directory` parameter to operate as though opencode is running in that directory
2025-09-01 17:15:49 -04:00
Dax 2a13b1b81e Add agent-level permissions with whitelist/blacklist support (#1862) 2025-08-12 11:39:39 -04:00
Dax Raad 1cc168f826 show combined output of bash tool progressively 2025-08-11 01:23:00 -04:00
Yordis Prieto 12172203d7 chore: enhance bash command tests with config mock and timeout adjustments (#1486)
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
2025-08-01 14:14:54 -04:00
adamdotdevin 3c8930192f fix: test 2025-07-31 10:10:34 -05:00
adamdotdevin a0f82ecef8 fix: test 2025-07-31 10:07:58 -05:00
Dax 50c93a349f use treesitter to parse bash commands and catch commands that go outside of cwd (#1443) 2025-07-30 20:57:52 -04:00
Yordis Prieto f74cd37818 fix: update glob pattern and path in tool test (#1436) 2025-07-30 15:42:13 -05:00