Commit Graph

73 Commits

Author SHA1 Message Date
GitHub Action e073efbb02 chore: format code 2025-12-07 19:08:48 +00:00
secretninjaman 28ffb333fb fix: use basename for shell detection to support non-standard paths (#5205)
Co-authored-by: Ayato French <a@ayatofrench.com>
2025-12-07 13:08:26 -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
Shantur Rathore 2f082043cf tweak: bash tool improve output metadata for agent consumption, fix small timeout issue (#5131) 2025-12-05 13:56:56 -06:00
Shantur Rathore 6688105bbb tweak: bash tool messages regarding timeouts and truncation more clear for agent (#5066) 2025-12-04 11:33:00 -06:00
Aiden Cline b92584490f fix bash tool wsl 2025-11-23 12:29:15 -06:00
Aiden Cline db7561eef0 tweak: bash tool behavior w/ /bin/zsh 2025-11-21 16:30:00 -06:00
Ivan Starkov 5fb8afcb67 fix: make bash tool respect $SHELL (#3494)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
2025-11-21 14:33:04 -06:00
cc-bjojac 5920c3a90e Make the MAX_OUTPUT_LENGTH in bash.ts overridable by OPENCODE_EXPERIMENTAL_BASH_MAX_OUTPUT_LENGTH (#4497)
Co-authored-by: Björn Jacobs <bjoern.jacobs.ext@bundesanzeiger.de>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
2025-11-20 10:45:13 -06:00
Aiden Cline 500b5d85b4 fix: make external_directory permission wildcarding more sane 2025-11-19 12:55:02 -06:00
Aiden Cline 010146569f fix: make bash tool use external_directory perm 2025-11-19 12:31:34 -06:00
Dax Raad 7642ca7066 use bash description as task title 2025-11-19 13:23:29 -05:00
Aiden Cline 5ac956b845 fix windows bash tool issue 2025-11-18 14:06:45 -06:00
Albert O'Shea 56f211ffd9 feat: nix support for the nix folks (#3924)
Co-authored-by: opencode <opencode@sst.dev>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
2025-11-18 00:46:49 -06:00
Keath Milligan 27c035a2f7 fix: handle Git Bash path mapping on windows (#4380) 2025-11-17 01:06:44 -06:00
GitHub Action 9855771157 chore: format code 2025-11-08 01:59:02 +00:00
Stephen Collings bbd2f1cebd fix: Provide OPENCODE & AGENT env vars (#3843)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2025-11-04 04:01:22 +00:00
Dax fd63884d0b OpenTUI is here (#2685) 2025-10-31 15:07:36 -04:00
Aiden Cline 89ab6fcdae fix: bash permission case 2025-10-31 00:52:46 -05:00
Aiden Cline 28acb94b3f fix: ensure timeout param passed to bash tool is positive 2025-10-28 17:32:39 -05:00
Jérôme Benoit 0787f01d1d chore: cleanup versioned zod imports (#3460)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
2025-10-26 14:50:41 -05:00
Aiden Cline 02b8363659 add flag wildcard parsing support for bash tool (#3390) 2025-10-23 13:35:09 -05:00
Aiden Cline 8183017e9b sync 2025-10-16 17:49:02 -05:00
Aiden Cline 38f1364b4f fix: bash hangs & orphans (#3225) 2025-10-16 14:39:36 -05:00
Aiden Cline 11d1eb5ccf Revert "fix: spawns hanging (#3192)"
This reverts commit 18fb335e6d.
2025-10-15 15:20:14 -05:00
Aiden Cline 18fb335e6d fix: spawns hanging (#3192) 2025-10-15 13:01:54 -05:00
Tommy D. Rossi c015ced81f fix: rg hanging forever when run in bash, waiting for stdin (#3103)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2025-10-11 23:24:48 -05: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 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
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
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
Yuu Toriyama 7ef8f34c1b Fix: Error [ERR_DLOPEN_FAILED] (#1546) 2025-08-13 19:49:14 +00:00
Aiden Cline 978e8f4c48 fix: permission prompting issues (#1884) 2025-08-13 06:34:06 -05:00
Dax Raad 42d2410553 bash truncate character max instead of line max 2025-08-12 16:14:40 -04: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 1cc168f826 show combined output of bash tool progressively 2025-08-11 01:23:00 -04:00
Aiden Cline 4fa81b899d permissions disallow support (#1627) 2025-08-05 19:14:28 -05:00
Dax Raad 4693b55dba ci: ignore 2025-08-03 15:38:39 -04:00
Dax Raad d5dacdb63c fix bash tool not showing stderr 2025-08-03 15:34:52 -04:00
Dax Raad 2cadf5a093 fix bash tool getting stuck on interactive commands 2025-08-03 13:52:50 -04:00
Dax Raad 1fc92d91c0 ci: ignore 2025-08-03 10:42:52 -04:00
Dax Raad dfcff892a1 fix shell error 128 2025-08-03 10:30:23 -04:00
Aiden Cline b9c143096b fix: bash tool errors for chmod (#1502) 2025-08-01 09:10:09 -05:00
Dax Raad 88842a633e better guarding against bash commands that go outside of cwd 2025-07-31 21:42:30 -04:00
Dax Raad f4254751e6 improve wildcard matching for permissions 2025-07-31 20:40:05 -04:00
Dax Raad 4c849f6a63 fix issue with some bash commands asking for permission 2025-07-31 18:35:51 -04:00
Dax Raad 82c0dcc62d wip: permissions 2025-07-31 17:19:56 -04:00