Commit Graph

157 Commits

Author SHA1 Message Date
Dax Raad ac12364c27 ignore: 2025-10-06 23:25:01 -04:00
Dax Raad cb40e8c622 core: restore bash command security validation to prevent accidental directory traversal
The permission validation that prevents commands from accessing paths outside the project directory was accidentally disabled, which could allow commands like 'cd ../' to escape the workspace. This restores the security check that keeps your commands safely contained within your project boundaries.
2025-10-06 23:24:18 -04:00
Dax Raad 87f71e2183 core: improve session API reliability with proper input validation 2025-10-06 19:37:44 -04:00
Dax Raad fb6713c2b8 Update todo tool to use centralized Todo module 2025-10-06 18:54:05 -04:00
Dax Raad b7e953c077 Add missing files and fix type aliases for opentui features 2025-10-06 18:53:35 -04:00
Aiden Cline 140f1a0600 fix: add timeout message if command times out (#2986) 2025-10-05 23:55:01 -05:00
Mani Sundararajan 6d6fc43bb5 fix: file references & grep tool for windows (#2980) 2025-10-05 14:32:07 -05: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 8ad4813f46 overhaul file search and support @ mentioning directories 2025-10-01 03:37:01 -04:00
Dax Raad adab4bcddf core: improve webfetch tool content negotiation and format handling 2025-09-28 17:57:50 -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
Timo Clasen 76f06b08cb fix(tool): follow symlinks when looking for tools (#2809) 2025-09-26 16:01:08 -05:00
Dax Raad ce124c7a87 fix task tool ui disappearing once done 2025-09-19 01:09:52 -04:00
Dax bbe1d61875 support custom tools (#2668) 2025-09-18 03:58:21 -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
Aiden Cline 740207016c tweak: make bash permissions key off of command pattern (#2592) 2025-09-14 09:01:57 -05:00
Kenn Costales 1d3c6c6257 fix: fix wrong tool references LS and Agent (#2466) 2025-09-14 08:53:50 -05:00
Dax 7d8d63faff Session management and prompt handling improvements (#2577)
Co-authored-by: GitHub Action <action@github.com>
2025-09-13 05:46:14 -04:00
Dax Raad b2e2d36010 reduce LSP verbosity 2025-09-11 12:54:12 -04:00
Dax Raad 7b91d612f6 remove block anchor edit 2025-09-11 12:53:10 -04:00
Dax Raad e3bf324ea9 ci: format 2025-09-09 23:44:04 -04:00
Zack Jackson 37893ed24c feat: add dynamic tool registration for plugins and external services (#2420) 2025-09-08 16:25:04 -04:00
Aiden Cline b585e4f92d tweak: reenable todowrite & todoread for qwen models (#2499) 2025-09-08 13:21:16 -05:00
spoons-and-mirrors 52dea9cb75 tweak(edit): separate edit tool error message with clearer guidance to avoid llm doom editing loop (#2051) 2025-09-05 12:36:13 -04:00
Aiden Cline 5ab2b8c70f fix: webfetch prompt mistake (#2424) 2025-09-04 13:35:25 -05:00
Aiden Cline a024ba1645 tweak: update ls tool to use rg (#2367) 2025-09-02 10:40:20 -05: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
Aiden Cline c1fdcb458c fix: bash tool description (#2260) 2025-08-26 13:42:01 -05:00
Vincent Bernat 26b025bb4c fix: ignore case when checking Qwen in model ID for todos (#2122) 2025-08-20 14:44:27 -05:00
Aiden Cline 68b2a02e14 fix: better binary file detection (#2025) 2025-08-17 17:59:51 -05:00
adamdotdevin dddc968bb2 feat(tui): navigate child sessions (subagents) 2025-08-15 10:16:08 -05:00
Yuu Toriyama 7ef8f34c1b Fix: Error [ERR_DLOPEN_FAILED] (#1546) 2025-08-13 19:49:14 +00:00
Matt Cook 15caad5835 fix: grammatical error in agent launch example (by Opencode) (#1897) 2025-08-13 12:25:38 -05:00
adamdotdevin 565ff387fe fix: allow attachments outside cwd, and support svg 2025-08-13 10:36:50 -05:00
adamdotdevin bf7fd99b2a fix: update read tool description to exclude binary/image files 2025-08-13 10:13:57 -05:00
Aiden Cline 978e8f4c48 fix: permission prompting issues (#1884) 2025-08-13 06:34:06 -05:00
Aiden Cline 71b2eed2d9 fix: task tool prompt (#1887) 2025-08-12 23:41:12 -04:00
Dax Raad 42d2410553 bash truncate character max instead of line max 2025-08-12 16:14:40 -04:00
Dax Raad 15fb3d7607 disable todo tools for qwen models to improve compatibility 2025-08-12 18:56:26 +00:00
Dax Raad b5fe770876 limit bash tool to 1000 lines of output 2025-08-12 14:51:13 -04:00
Dax 2a13b1b81e Add agent-level permissions with whitelist/blacklist support (#1862) 2025-08-12 11:39:39 -04:00
Dax Raad c71917db94 remove git bash tool coauthor message 2025-08-11 18:36:06 +00:00
cvzakharchenko 00ffe89f8e Issue 1676: Don't eat up the last newline in a multi-line replacement (#1777) 2025-08-11 06:55:45 -05:00
Dax Raad 1cc168f826 show combined output of bash tool progressively 2025-08-11 01:23:00 -04:00
Aiden Cline bb5396263c feat: webfetch permission support (#1772) 2025-08-10 08:00:44 -05:00
Aiden Cline d88272d466 feat: eslint lsp (#1744) 2025-08-09 11:04:58 -05:00
Dax Raad d408886e43 renable todo tool 2025-08-07 21:47:37 -04:00
Dax Raad e46ecf67d9 looser todo tool schema 2025-08-07 21:47:37 -04:00
Dax 77c101d742 Merge agent and mode into one (#1689)
The concept of mode has been deprecated, there is now only the agent field in the config.

An agent can be cycled through as your primary agent with <tab> or you can spawn a subagent by @ mentioning it. if you include a description of when to use it, the primary agent will try to automatically use it

Full docs here: https://opencode.ai/docs/agents/
2025-08-07 16:32:12 -04:00