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.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
import { describe, expect, it } from 'vitest'
import { DEFAULT_SETTINGS } from './types'
import { DEFAULT_WORKTREE_PATH_TEMPLATE } from './worktree'
describe('DEFAULT_SETTINGS', () => {
it('enables git auto-fetch by default', () => {
expect(DEFAULT_SETTINGS.gitAutoFetch).toBe(true)
})
it('ships pty shadow clients ON, so the kill switch is a real one', () => {
// Default OFF would mean the mechanism never runs in the field and the flag proves nothing;
// default ON means a field report can be answered with "turn it off", and that instruction
// reaches existing installs through the { ...DEFAULT_SETTINGS, ...saved } merge.
expect(DEFAULT_SETTINGS.ptyShadowClients).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')
})
it('uses the shared worktree path template default', () => {
expect(DEFAULT_SETTINGS.worktreePathTemplate).toBe(DEFAULT_WORKTREE_PATH_TEMPLATE)
})
it('keeps finished subagent cards on the canvas by default', () => {
// Default OFF is the whole compatibility promise of the setting: with it off, a finished card
// still waits for the turn boundary, exactly as before the feature.
expect(DEFAULT_SETTINGS.autoHideFinishedSubagentCards).toBe(false)
})
it('ships copy-on-select OFF, so an update never starts rewriting the clipboard', () => {
// Issue #759: opt-in on purpose — silently changing what is on the clipboard is a surprise.
expect(DEFAULT_SETTINGS.copyOnSelect).toBe(false)
})
it('does not offer to close a project after its last session by default (issue #848)', () => {
// Opt-in: not everyone closes their last session when they are done with a project, so an
// install that never turns this on must never see the question.
expect(DEFAULT_SETTINGS.offerCloseProjectOnLastSession).toBe(false)
})
it('keeps common identifier and path characters inside terminal word selections', () => {
expect(DEFAULT_SETTINGS.terminalWordSeparator).not.toMatch(/[-_/.]/)
})
})