···7979## Code Guidelines
80808181- Target macOS 26.0+, Swift 6.2+
8282+- Before doing a big feature or when planning, consult with pfw (pointfree) skills on TCA, Observable best practices first.
8283- Use `@ObservableState` for TCA feature state; use `@Observable` for non-TCA shared stores; never `ObservableObject`
8384- Always mark `@Observable` classes with `@MainActor`
8485- Modern SwiftUI only: `foregroundStyle()`, `NavigationStack`, `Button` over `onTapGesture()`
8586- When a new logic changes in the Reducer, always add tests
8787+- In unit tests, never use `Task.sleep`; use `TestClock` (or an injected clock) and drive time with `advance`.
8688- Prefer Swift-native APIs over Foundation where they exist (e.g., `replacing()` not `replacingOccurrences()`)
8789- Avoid `GeometryReader` when `containerRelativeFrame()` or `visualEffect()` would work
8890- Do not use NSNotification to communicate between reducers.
···2525 isOn: $store.automaticallyArchiveMergedWorktrees
2626 )
2727 .help("Archive worktrees automatically when their pull requests are merged.")
2828+ VStack(alignment: .leading) {
2929+ Toggle(
3030+ "Prompt for branch name during creation",
3131+ isOn: $store.promptForWorktreeCreation
3232+ )
3333+ .help("Ask for branch name and base ref before creating a worktree.")
3434+ Text("When enabled, you choose the branch name and where it branches from before creating the worktree.")
3535+ .foregroundStyle(.secondary)
3636+ }
2837 }
2938 }
3039 .formStyle(.grouped)