diff --git a/Sources/cmuxApp.swift b/Sources/cmuxApp.swift index 24841d432b02..1a2ccbc296c3 100644 --- a/Sources/cmuxApp.swift +++ b/Sources/cmuxApp.swift @@ -2400,7 +2400,7 @@ enum AppearanceSettings { enum ClaudeCodeIntegrationSettings { static let hooksEnabledKey = "claudeCodeHooksEnabled" - static let defaultHooksEnabled = false + static let defaultHooksEnabled = true static func hooksEnabled(defaults: UserDefaults = .standard) -> Bool { if defaults.object(forKey: hooksEnabledKey) == nil { diff --git a/cmuxTests/GhosttyConfigTests.swift b/cmuxTests/GhosttyConfigTests.swift index e2978e55c585..2d674ce229ea 100644 --- a/cmuxTests/GhosttyConfigTests.swift +++ b/cmuxTests/GhosttyConfigTests.swift @@ -162,7 +162,7 @@ final class GhosttyConfigTests: XCTestCase { ) } - func testClaudeCodeIntegrationDefaultsToDisabledWhenUnset() { + func testClaudeCodeIntegrationDefaultsToEnabledWhenUnset() { let suiteName = "cmux.tests.claude-hooks.\(UUID().uuidString)" guard let defaults = UserDefaults(suiteName: suiteName) else { XCTFail("Failed to create isolated user defaults suite") @@ -173,7 +173,7 @@ final class GhosttyConfigTests: XCTestCase { } defaults.removeObject(forKey: ClaudeCodeIntegrationSettings.hooksEnabledKey) - XCTAssertFalse(ClaudeCodeIntegrationSettings.hooksEnabled(defaults: defaults)) + XCTAssertTrue(ClaudeCodeIntegrationSettings.hooksEnabled(defaults: defaults)) } func testClaudeCodeIntegrationRespectsStoredPreference() {