Commit Graph

59 Commits

Author SHA1 Message Date
Dax 9fdf25c750 Refactor agent loop (#4412) 2025-11-17 10:57:18 -05:00
GitHub Action 9855771157 chore: format code 2025-11-08 01:59:02 +00:00
Dax Raad ed8913324e big format 2025-11-06 13:03:12 -05:00
Dax Raad 140189f0f2 tui: add copy last assistant message to session menu 2025-11-03 16:47:18 -05:00
Dax Raad c12135adde core: add optional dirs parameter to file search API
Allow users to exclude directories from file search results by setting dirs=false parameter in /find/file endpoint
2025-11-03 11:53:41 -05:00
Haris Gušić e529308281 fix: grep failing when pattern started with a dash 2025-10-31 17:20:22 -05:00
Dax fd63884d0b OpenTUI is here (#2685) 2025-10-31 15:07:36 -04:00
Haris Gušić ba2660ec3e fix: Opencode hangs after exit (#3481)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2025-10-30 23:57:58 -05:00
Aiden Cline 977339adab Revert "fix: Explicitly exit CLI to prevent hanging subprocesses (#3083)"
This reverts commit 5f0e46c51c.
2025-10-27 01:30:13 -05:00
Haris Gušić 5f0e46c51c fix: Explicitly exit CLI to prevent hanging subprocesses (#3083)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2025-10-27 00:03:10 -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
Haris Gušić 6d5fe56b87 fix: Opencode fails with ENOENT posix_spawn '/usr/bin/rg' (#3396) 2025-10-23 18:05:01 -05:00
kcrommett bb7dd9391b tweak: adjust file api to encode images (#3292) 2025-10-21 00:52:39 -05:00
Dax Raad a0844a6b85 core: use platform-specific watcher backends for better file system monitoring 2025-10-09 18:29:18 -04:00
Dax Raad 21e2f45f77 core: replace chokidar with @parcel/watcher for better performance and cross-platform support 2025-10-09 18:21:38 -04:00
Dax Raad c50d7a4275 ignore: add common build and framework directories to ignore list 2025-10-09 16:35:56 -04:00
Dax Raad 92f106f740 ignore: improve file ignore performance and cross-platform support
- Replace glob patterns with Set lookup for common folders to speed up matching
- Use path.sep for cross-platform compatibility on Windows/Unix systems
- Add comprehensive test coverage for nested and non-nested folder matching
- Simplify implementation by removing unnecessary caching complexity
2025-10-09 15:54:01 -04:00
Dax Raad d0008024f1 core: fix file search limit handling and ensure File module initialization 2025-10-02 00:18:18 -04:00
Dax Raad 8cd3078df4 core: improve file search reliability and performance 2025-10-02 00:09:02 -04:00
Dax Raad 8ad4813f46 overhaul file search and support @ mentioning directories 2025-10-01 03:37:01 -04:00
Adam 0d05ab5be7 wip: watch select .git files in watcher 2025-09-25 14:41:31 -05:00
Adam 0425aa413a wip: desktop file updates 2025-09-23 11:41:15 -05:00
Dax 760c0fee65 feat: improve file watcher with chokidar and better ignore patterns (#2621)
Co-authored-by: GitHub Action <action@github.com>
2025-09-16 00:17:10 -04:00
Dax 6a654abbc2 feat: add desktop/web app package (#2606)
Co-authored-by: adamdotdevin <2363879+adamdottv@users.noreply.github.com>
Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
Co-authored-by: GitHub Action <action@github.com>
2025-09-15 03:28:08 -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
Dax Raad e3bf324ea9 ci: format 2025-09-09 23:44:04 -04:00
Adam 6e7fed27df fix: file read response 2025-09-05 15:58:56 -05:00
Adam ce7bc4d770 fix: better file/content return 2025-09-04 12:39:49 -05:00
Adam 2f0d8cb0e5 fix: worktree file/content never includes patch 2025-09-04 06:10:07 -05:00
Adam ae66b4411c fix: file.list relative to root 2025-09-02 06:20:08 -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
Netanel Draiman e0db411788 fix: replace isomorphic-git status with direct git diff for worktree support (#1706)
Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
2025-08-28 18:15:26 -05:00
Adam 4746d88a53 feat: include ignored files 2025-08-28 10:49:45 -05:00
Adam 8e22caf277 feat: file list api 2025-08-27 15:28:03 -05:00
Dax Raad 0de957a2f0 real life totally configurabl ai subasians
publish / publish (push) Has been cancelled
2025-07-24 21:21:02 -04:00
Dax Raad 877cbfc45b wip: fix type errors 2025-07-24 17:38:11 -04:00
Clay Warren 9b94c9c57f feat: Replace unzip with @zip.js/zip.js for Windows compatibility (#662) 2025-07-24 16:49:04 -04:00
Dax Raad dc7b9cd0a8 disable filewatcher, fixes file descriptor leak
publish / publish (push) Has been cancelled
2025-07-10 15:58:45 -04:00
adamdottv c5610af3a2 feat(tui): move logging to server logs 2025-07-09 08:16:10 -05:00
Dax Raad 31974e1b6e big rework of LSP system 2025-07-08 18:14:49 -04:00
strager 2ebf959895 fix(tool): fix ripgrep invocation on Windows (#700)
Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
2025-07-08 15:36:26 -05:00
adamdottv ea7c1f7ea6 fix: include symlinks in ripgrep searches 2025-07-08 10:02:19 -05:00
Dax 9cad702612 v2 message format and upgrade to ai sdk v5 (#743)
publish / publish (push) Has been cancelled
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Liang-Shih Lin <liangshihlin@proton.me>
Co-authored-by: Dominik Engelhardt <dominikengelhardt@ymail.com>
Co-authored-by: Jay V <air@live.ca>
Co-authored-by: adamdottv <2363879+adamdottv@users.noreply.github.com>
2025-07-07 15:53:43 -04:00
Dax Raad e5275df48e use full filepath
publish / publish (push) Has been cancelled
2025-07-04 17:58:03 -04:00
Dax Raad 89821f3f69 flag for disabling file watcher 2025-07-03 10:37:08 -04:00
adamdottv cbae63697e feat(tui): file viewer, select messages 2025-07-02 16:08:11 -05:00
Dax Raad 7822227eec fix filewatcher not closing cleanly
publish / publish (push) Has been cancelled
2025-07-02 11:15:12 -04:00
Dax Raad b181a35ca5 improve ripgrep download
publish / publish (push) Has been cancelled
2025-07-01 22:39:17 -04:00
Dax Raad c6166de726 ignore: read deleted files 2025-07-01 20:45:50 -04:00
Dax Raad 7b0edfa712 ignore: add file status command 2025-07-01 20:44:12 -04:00