Enable Claude Code integration by default (#247)
This commit is contained in:
parent
75dec40335
commit
ff11ba0309
2 changed files with 3 additions and 3 deletions
|
|
@ -2418,7 +2418,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 {
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue