fix: allow execute runtime tools by default

This commit is contained in:
lofyer
2026-08-11 13:07:36 +08:00
parent aff3b82998
commit fde18c1568
4 changed files with 17 additions and 13 deletions
+3 -1
View File
@@ -994,7 +994,7 @@ describe('ContinueHostAdapter', () => {
expect(killed).toBe(true)
})
it('returns audit metadata for auto-approved agent tools', async () => {
it('uses auto mode and returns audit metadata for agent tools', async () => {
const distribution = await createDistribution()
let launchArgs: string[] = []
const permissionBodies: unknown[] = []
@@ -1115,6 +1115,7 @@ describe('ContinueHostAdapter', () => {
new AbortController().signal,
authorize,
{
workMode: 'execute',
onEvent: (event) => {
streamEvents.push(event)
}
@@ -1159,6 +1160,7 @@ describe('ContinueHostAdapter', () => {
},
{ type: 'text', delta: 'TOOLS_OK' }
])
expect(launchArgs).toContain('--auto')
expect(launchArgs).not.toContain('--readonly')
expect(authorize).toHaveBeenCalledWith(
expect.objectContaining({ toolName: 'Bash' })