mirror of https://github.com/garrytan/gstack.git
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:
parent
ca8086397b
commit
29a0cbb90f
|
|
@ -115,6 +115,6 @@ describe('Sidebar prompt injection defense', () => {
|
||||||
|
|
||||||
test('sidebar-agent falls back to defaults if queue has no args', () => {
|
test('sidebar-agent falls back to defaults if queue has no args', () => {
|
||||||
// Backward compatibility: if old queue entries lack args, use defaults
|
// 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'");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue