mirror of
https://github.com/garrytan/gstack.git
synced 2026-05-05 05:05:08 +02:00
fix: update sidebar-security test for Write tool addition
The fallback allowedTools string now includes Write, matching the
sidebar-agent.ts change from commit 68dc957.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -115,6 +115,6 @@ describe('Sidebar prompt injection defense', () => {
|
||||
|
||||
test('sidebar-agent falls back to defaults if queue has no args', () => {
|
||||
// Backward compatibility: if old queue entries lack args, use defaults
|
||||
expect(AGENT_SRC).toContain("'--allowedTools', 'Bash,Read,Glob,Grep'");
|
||||
expect(AGENT_SRC).toContain("'--allowedTools', 'Bash,Read,Glob,Grep,Write'");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user