@@ -492,6 +492,29 @@ func TestConfig_setupAgentsWithDisabledTools(t *testing.T) {
492 assert.Equal(t, []string{"glob", "ls", "sourcegraph", "view"}, taskAgent.AllowedTools)
492 assert.Equal(t, []string{"glob", "ls", "sourcegraph", "view"}, taskAgent.AllowedTools)
495+func TestConfig_setupAgentsWithEveryReadOnlyToolDisabled(t *testing.T) {
498+ DisabledTools: []string{
509+ coderAgent, ok := cfg.Agents["coder"]
511+ assert.Equal(t, []string{"bash", "download", "edit", "multiedit", "fetch", "write"}, coderAgent.AllowedTools)
513+ taskAgent, ok := cfg.Agents["task"]
515+ assert.Equal(t, []string{}, taskAgent.AllowedTools)
495func TestConfig_configureProvidersWithDisabledProvider(t *testing.T) {
518func TestConfig_configureProvidersWithDisabledProvider(t *testing.T) {
496 knownProviders := []catwalk.Provider{
519 knownProviders := []catwalk.Provider{