Commit graph

151 commits

Author SHA1 Message Date
Dallin Romney
814cc205fb fix: unify cwd and add missing case 2025-11-27 02:29:13 -08:00
Dallin Romney
462e7168bd fix: terminal cwd tests 2025-11-24 15:12:20 -08:00
Continue Agent
857903aa5b Add test coverage for runTerminalCommand cwd handling with non-file URIs
Tests verify that the fix correctly:
- Filters for file:// URIs before calling fileURLToPath
- Falls back to HOME/USERPROFILE/cwd/tmpdir when no file URIs exist
- Handles various workspace configurations (empty, non-file URIs, mixed)
- Works across different remote environments (local, WSL, dev-container)

Co-authored-by: nate <nate@continue.dev>

Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <noreply@continue.dev>
2025-11-24 21:56:19 +00:00
Dallin Romney
4837ef1352 fix: only set cwd to file URI if file uri found 2025-11-24 13:49:29 -08:00
Dallin Romney
7c369e0ac9 fix: only set cwd to file URI if found 2025-11-24 13:49:10 -08:00
Dallin Romney
1d15c7c3df
Merge pull request #8298 from continuedev/pe/read-file-errs
feat: allow file reads outside IDE workspace (w/ permission)
2025-10-20 10:50:38 -07:00
Patrick Erichsen
ee439faa38 fix tests 2025-10-17 11:21:55 -07:00
Patrick Erichsen
0670852a15 Update viewSubdirectory.vitest.ts 2025-10-17 11:02:14 -07:00
Patrick Erichsen
9388bd251f update subdirectory logic 2025-10-17 10:25:37 -07:00
Patrick Erichsen
c6780c095f Update fetchUrlContent.vitest.ts 2025-10-17 10:18:30 -07:00
Patrick Erichsen
48cef4256d add vitest for fetchUrlContent 2025-10-17 10:00:17 -07:00
Patrick Erichsen
4d747796e0 feat: return fetch errors to agent 2025-10-16 19:00:24 -07:00
Patrick Erichsen
ad2fd48124 Merge main branch and resolve conflicts
- Combined resolveInputPath approach with new ContinueError system
- Updated error handling to use ContinueError with appropriate error reasons
- Maintained improved error messages from pe/read-file-errs branch
2025-10-16 16:00:29 -07:00
Patrick Erichsen
4903f3ab94 add tool call policy evaluation 2025-10-16 15:56:31 -07:00
Patrick Erichsen
9b908d8ecd prettier 2025-10-14 15:48:35 -07:00
Patrick Erichsen
77a8db7f63 use specific ConitnueError for tool calls 2025-10-14 14:55:00 -07:00
Patrick Erichsen
1d7da38a66 fix: log correct tool call error from gui 2025-10-14 14:40:09 -07:00
Dallin Romney
c75262e692 ruleFile -> sourceFile 2025-09-29 16:05:05 -07:00
Dallin Romney
11d84b3b16 feat: empty diff tool result message 2025-09-10 19:26:50 -07:00
chezsmithy
acbba9b7d0 fix: 🐛 Fixes based on reviewer comments 2025-09-09 10:14:09 -07:00
chezsmithy
58cb7815ca feat: Add ability to stop foreground terminal commands 2025-09-09 10:12:59 -07:00
Tomasz Stefaniak
5604b299b3 Merge branch 'main' into tomasz/con-3679 2025-09-03 15:35:37 -07:00
Tomasz Stefaniak
259cbc25f8
Merge pull request #7421 from continuedev/tomasz/con-3680
Create dynamic tool policies and implement dynamic policy for terminal tool
2025-09-03 14:13:25 -07:00
Tomasz Stefaniak
c00bbd78b1 improv: move terminal security to separate package 2025-09-03 12:47:08 -07:00
Tomasz Stefaniak
606df7e0b6 test: echo 2025-09-03 10:27:46 -07:00
Tomasz Stefaniak
5d2b4725a2 test: echo 2025-09-03 10:27:00 -07:00
chezsmithy
c596f8b872 fix: 🐛 Remove head tool and move range tool to experimental 2025-08-27 23:06:39 -07:00
chezsmithy
7ffc6fb67d fix: 🎨 Prettier and Linting 2025-08-27 22:27:15 -07:00
chezsmithy
820822196b feat: ✨ Add range and head tools for file operations 2025-08-27 22:27:15 -07:00
Tomasz Stefaniak
6bcf040dee fix: formatting 2025-08-27 15:29:55 -07:00
Tomasz Stefaniak
9c7adc5b60 feat: evaluateTerminalCommandSecurity command 2025-08-27 15:28:19 -07:00
Tomasz Stefaniak
136044b05b feat: check for dangerous commands 2025-08-27 14:18:40 -07:00
Tomasz Stefaniak
a7ceb4e033 test: dynamic policy evaluation 2025-08-26 15:37:02 -07:00
Dallin Romney
1c5df69a3f
fix: grep escaped chars and empty results (#7323)
* fix: grep search escape and better truncation warnings

* fix: grep search tweaks

* fix: grep no results

* Fix: url test
2025-08-25 07:20:26 -07:00
Tomasz Stefaniak
db3b757ffe
Merge pull request #7302 from continuedev/dallin/prevent-unsafe-file-reads
feat: prevent unsafe file reads
2025-08-21 17:24:10 -07:00
Dallin Romney
fe16983203 fix: install core dependencies for cli 2025-08-21 15:43:35 -07:00
Dallin Romney
400fefc1e3 fix: prevent security file reads cleanup 2025-08-21 14:18:53 -07:00
Dallin Romney
30c4cc1469 feat: prevent unsafe file reads 2025-08-21 13:40:03 -07:00
chezsmithy
f9c734f251 fix: 🐛 Fix lsTool Exclusions 2025-08-20 23:17:50 -07:00
chezsmithy
6e0775b0ce fix: 🐛 Fix rebase issues 2025-08-08 00:07:55 -07:00
chezsmithy
33b23ae09e fix: 🎨 Fix typescript error 2025-08-08 00:05:26 -07:00
chezsmithy
c78db09037 fix: 🎨 Prettier fixes 2025-08-08 00:05:22 -07:00
chezsmithy
e7d82a6290 fix: 🐛 Fix terminal use without a workspace 2025-08-07 23:56:31 -07:00
Shawn Smith
1ef2c0da01
fix: 🐛 Use login shell and powershell (#6850)
* fix: 🐛 Use a login shell so IntelliJ gets PATH etc, also switch to powershell on windows

* fix: 🐛 Fix foreground spawning

* fix: 🎨 Prettier
2025-07-29 13:03:58 -07:00
Nate
85ba04a4c7 improve error message for failed read file tool 2025-07-23 23:27:34 -07:00
Dallin Romney
1ee5c54151 feat: more thorough tool arg checking utils with tests 2025-07-21 15:31:52 +02:00
Dallin Romney
6af35548c8 fix: throw error if tool call args are missing 2025-07-20 14:13:15 +02:00
QiuYang Shen
a000397160 avoid garbled Chinese when call runTerminalCommandTool in windows 2025-07-13 19:00:52 +08:00
Dallin Romney
f260ea0abc
Merge pull request #6439 from continuedev/dallin/limit-web-tool-output
Truncate large agent tool output
2025-07-07 12:18:58 -07:00
Dallin Romney
559faae153 use exported diff lines limit 2025-07-07 11:24:19 -07:00