Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

test(settings): pin the auto permission-mode default

enes5c830167636c
diff --git a/src/shared/default-settings.test.ts b/src/shared/default-settings.test.ts
index 2bfb93776..323db8c16 100644
--- a/src/shared/default-settings.test.ts
+++ b/src/shared/default-settings.test.ts
@@ -5,4 +5,11 @@ describe('DEFAULT_SETTINGS', () => {
it('enables git auto-fetch by default', () => {
expect(DEFAULT_SETTINGS.gitAutoFetch).toBe(true)
})
+
+ it('defaults to auto permission mode for new and existing users', () => {
+ // Deliberate behavior change: auto mode ensures Claude sessions start with
+ // permission auto-grants enabled. This reaches existing users via
+ // { ...DEFAULT_SETTINGS, ...saved } hydration. Do not change without a decision.
+ expect(DEFAULT_SETTINGS.claudePermissionMode).toBe('auto')
+ })
})