oficina / equipo Public

Keep Mac history pane-only and verify hosted palette accessibility

Paul Campbell pushed by claude agent, operated by paul@keymail.dev bc22bdb6fe4c735428bdfa4b0aab891678562726 parent b0dbb83
6 files changed, +90 −11
  • docs/superpowers/plans/CONTROLLER-REPORT-native-share-followups.md +37 −0
  • native/apple/Sources/EquipoKit/MacPower/MacJumpIndex.swift +2 −0
  • native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift +2 −2
  • native/apple/Tests/EquipoKitTests/MacPowerReviewTests.swift +38 −6
  • native/apple/Tests/EquipoKitTests/MacPowerTests.swift +4 −1
  • native/apple/Tests/EquipoKitTests/MacWorkspaceTests.swift +7 −2

CI cancelled — superseded by a newer push — run details

CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/native__share-followups: Type  Size Avail | ext4   96G   85G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   85G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 1.6s
ci-box: codex: fetched and verified in 3.4s
ci-box: codex-code-mode-host: fetched and verified in 1.4s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.4s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.9s
ci-box: pi: installed and verified in 7.6s
ci-box: opencode: installed and verified in 2.3s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.8s
ci-box: clone deepened in 4.1s
ci-box: file times set from content: 3172 files, 211 directories
ci-box: ready in 17.8s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipotest	0.145s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  1.2s
+ go list -export -test -tags testbuild -f  ./...
  0.6s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  0.3s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-24 15:56:00 +0000 UTC

go run github.com/zricethezav/gitleaks/v8@v8.30.1 version
version is set by build process
=== check ===
--- shard 0 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-work: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$' ./internal/headless

amadan: job cancelled — a newer push superseded it
--- shard 1 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-review: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

amadan: job cancelled — a newer push superseded it
--- shard 2 of 29 ---

amadan: job cancelled — a newer push superseded it
--- shard 3 of 29 ---

amadan: job cancelled — a newer push superseded it
--- shard 4 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-guards: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_step_refused$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless

amadan: job cancelled — a newer push superseded it
--- shard 5 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-rest: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$|^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$|^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$|^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$|^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_step_refused$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless

amadan: job cancelled — a newer push superseded it
--- shard 6 of 29 ---

amadan: job cancelled — a newer push superseded it
--- shard 7 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard

amadan: job cancelled — a newer push superseded it
--- shard 8 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-thin: ./internal/runner/thin
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/runner/thin

amadan: job cancelled — a newer push superseded it
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner

amadan: job cancelled — a newer push superseded it
--- shard 10 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-plans: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner

amadan: job cancelled — a newer push superseded it
--- shard 11 of 29 ---

amadan: job cancelled — a newer push superseded it
--- shard 12 of 29 ---

amadan: job cancelled — a newer push superseded it
--- shard 13 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard

amadan: job cancelled — a newer push superseded it
--- shard 14 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard

amadan: job cancelled — a newer push superseded it
--- shard 15 of 29 ---

amadan: job cancelled — a newer push superseded it
--- shard 16 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard

amadan: job cancelled — a newer push superseded it
--- shard 17 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard

amadan: job cancelled — a newer push superseded it
--- shard 18 of 29 ---

amadan: job cancelled — a newer push superseded it
--- shard 19 of 29 ---

amadan: job cancelled — a newer push superseded it
--- shard 20 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79

amadan: job cancelled — a newer push superseded it
--- shard 21 of 29 ---

amadan: job cancelled — a newer push superseded it
--- shard 22 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79

amadan: job cancelled — a newer push superseded it
--- shard 23 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 23: make test-quarantine
python3 scripts/ci-test.py quarantine
quarantine: 12 tests from scripts/ci-quarantine.txt; a failure is retried once, and a pass on the retry is reported as a flake

amadan: job cancelled — a newer push superseded it
--- shard 24 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 24: make runner-host
python3 scripts/runner-prerequisites.py
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks

amadan: job cancelled — a newer push superseded it
--- shard 25 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard

amadan: job cancelled — a newer push superseded it
--- shard 26 of 29 ---

amadan: job cancelled — a newer push superseded it
--- shard 27 of 29 ---

amadan: job cancelled — a newer push superseded it
--- shard 28 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard

amadan: job cancelled — a newer push superseded it
diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-native-share-followups.md b/docs/superpowers/plans/CONTROLLER-REPORT-native-share-followups.md
index 7e990ec7..6a3f0e78 100644
--- a/docs/superpowers/plans/CONTROLLER-REPORT-native-share-followups.md
+++ b/docs/superpowers/plans/CONTROLLER-REPORT-native-share-followups.md
@@ -71,3 +71,40 @@ preview; an omitted attachments field in a valid request correctly means zero.
Final restored-code runs passed: 10 EarlierShareTests and the Mac Service test
with all four cases. The final test logs are final-core.log and final-service.log.
No copy questions remain.
+
+## Landed Mac power follow-ups
+
+At the controller's request, normally merged origin/main 91be0d17 and folded
+Fable's three small Mac follow-ups into this same branch before resuming slice 8.
+
+Task opens no longer enter MacNavigationHistory, preserving both the pane history
+and its forward entries while the inspector stays open. Updated model and
+workspace tests assert Back/Forward change panes rather than replay task opens.
+
+TaskScreen.ReadKey now includes the context's object identity. The mounted-screen
+regression replaces a context for the same task without manually loading it.
+It waits for the fresh model to load and verifies its Merge confirmation becomes
+a real attached sheet. Before the fix, both the read and visible sheet assertions
+failed. Removing the identity again kills the test.
+
+The palette accessibility source-text assertions are replaced by Fable's hosted
+probe as a regression test. It enables accessibility in the root environment,
+mounts an NSHostingView in a window, lays it out, then walks actual Objective-C
+accessibility attributes. It asserts an AXGroup named Jump to… and AXButtons
+named Not now and Open in New Window. It does not claim scroll-area result rows
+enumerate. No AXUIElement API, Accessibility permission, simulator or spoken
+VoiceOver session is needed. The prior empty-tree attempt remains in the red log
+for context; it lacked the accessibilityEnabled environment value.
+
+Narrow command:
+timeout 240 swift test --package-path native/apple --jobs 4 --filter 'MacPowerReviewTests|MacWorkspaceTests|MacPowerTests'
+
+Mutations: history-task-entry (put task opens back in history), context-read
+(remove context identity from the read key), palette-children (remove .contain).
+
+All three Mac mutations died. In palette-children.log, removing .contain produced
+the exact old defect: both AXButton labels were Jump to… instead of their own
+names. The final restored-code run added
+serviceReceivesInputAndReportsPreparationFailure to the Mac filter and passed
+27 tests across the three suites plus the parameterized Service test.
+String parity (336), check-share.py and git diff --check pass after the merge.
diff --git a/native/apple/Sources/EquipoKit/MacPower/MacJumpIndex.swift b/native/apple/Sources/EquipoKit/MacPower/MacJumpIndex.swift
index c449e2b5..757c6368 100644
--- a/native/apple/Sources/EquipoKit/MacPower/MacJumpIndex.swift
+++ b/native/apple/Sources/EquipoKit/MacPower/MacJumpIndex.swift
@@ -92,6 +92,8 @@ public struct MacJumpIndex {
public var canBack: Bool { index > 0 }
public var canForward: Bool { index + 1 < entries.count }
public func go(_ destination: MacDestination) {
+ // The inspector persists independently of pane navigation.
+ if case .task = destination { return }
guard current != destination else { return }
entries = Array(entries.prefix(index + 1)); entries.append(destination); index += 1
}
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift b/native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift
index e4c6d1f0..28c8d98e 100644
--- a/native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift
+++ b/native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift
@@ -84,7 +84,7 @@ public struct TaskScreen: View {
if (ProcessInfo.processInfo.environment["EQUIPO_TASK_FIXTURE"] ?? "").hasPrefix("changes") { tab = .changes }
}
#endif
- .task(id: ReadKey(revision: model.session.task(model.taskID)?.revision, cursor: macContext == nil ? nil : model.session.cursor)) { await load() }
+ .task(id: ReadKey(revision: model.session.task(model.taskID)?.revision, cursor: macContext == nil ? nil : model.session.cursor, context: macContext.map { ObjectIdentifier($0) })) { await load() }
.refreshable { await model.session.refresh(); await load() }
.sheet(item: $model.confirmation) { confirm in TaskConfirmationSheet(model: model, confirmation: confirm) }
.sheet(isPresented: $model.moving) { TaskMoveSheet(model: model) }
@@ -93,7 +93,7 @@ public struct TaskScreen: View {
.onChange(of: model.decision.card?.id) { model.directionNote = "" }
}
- private struct ReadKey: Equatable { let revision: Int64?; let cursor: Int64? }
+ private struct ReadKey: Equatable { let revision: Int64?; let cursor: Int64?; let context: ObjectIdentifier? }
private func load() async {
if let macContext { await macContext.load() } else { await model.load() }
}
diff --git a/native/apple/Tests/EquipoKitTests/MacPowerReviewTests.swift b/native/apple/Tests/EquipoKitTests/MacPowerReviewTests.swift
index 471a6923..84465d7c 100644
--- a/native/apple/Tests/EquipoKitTests/MacPowerReviewTests.swift
+++ b/native/apple/Tests/EquipoKitTests/MacPowerReviewTests.swift
@@ -64,10 +64,11 @@ import Testing
defer { if let sheet = window.attachedSheet { window.endSheet(sheet) }; window.orderOut(nil); window.contentView = nil; window.close() }
try await Task.sleep(for: .milliseconds(150))
let fresh = MacTaskContext(session: detail.session, taskID: detail.taskID)
- await fresh.load()
+ #expect(fresh.detail.loaded == nil)
host.rootView = TaskScreen(context: fresh)
host.layoutSubtreeIfNeeded()
- try await Task.sleep(for: .milliseconds(150))
+ for _ in 0..<30 where fresh.detail.loaded == nil { try await Task.sleep(for: .milliseconds(50)) }
+ #expect(fresh.detail.loaded != nil)
await fresh.perform(.merge)
for _ in 0..<30 where window.attachedSheet == nil { try await Task.sleep(for: .milliseconds(50)) }
#expect(window.attachedSheet != nil)
@@ -117,12 +118,43 @@ import Testing
_ = workspace.index.results("Swipe")
#expect(workspace.indexGeneration == generation + 1)
}
- @Test func presentationContractsKeepChildrenAndUseTheCurrentContext() throws {
+ @Test func hostedPaletteKeepsFooterAccessibilityLabels() async throws {
+ let detail = try TaskDetailModelTests.model(TaskDetailServer())
+ let workspace = MacWorkspace(app: EquipoAppModel(store: MemorySecretStore()), session: detail.session)
+ let host = NSHostingView(rootView: MacJumpPalette(workspace: workspace).environment(\.accessibilityEnabled, true))
+ host.frame = NSRect(x: 0, y: 0, width: 620, height: 520)
+ let window = NSWindow(contentRect: host.frame, styleMask: [.borderless], backing: .buffered, defer: false)
+ window.isReleasedWhenClosed = false
+ window.contentView = host; window.orderBack(nil)
+ defer { window.orderOut(nil); window.contentView = nil; window.close() }
+ for _ in 0..<10 { host.layoutSubtreeIfNeeded(); host.displayIfNeeded(); try await Task.sleep(for: .milliseconds(40)) }
+ // SwiftUI's accessibility nodes expose Objective-C selectors without
+ // necessarily advertising NSAccessibilityProtocol conformance.
+ func attribute(_ node: NSObject, _ name: String) -> Any? {
+ let selector = NSSelectorFromString(name)
+ guard node.responds(to: selector) else { return nil }
+ return node.perform(selector)?.takeUnretainedValue()
+ }
+ var buttons: [String] = [], groups: [String] = [], visited: Set<ObjectIdentifier> = []
+ func walk(_ node: NSObject) {
+ guard visited.insert(ObjectIdentifier(node)).inserted, visited.count < 1000 else { return }
+ let role = attribute(node, "accessibilityRole") as? String
+ if let label = attribute(node, "accessibilityLabel") as? String {
+ if role == "AXButton" { buttons.append(label) }
+ if role == "AXGroup" { groups.append(label) }
+ }
+ for name in ["accessibilityChildren", "accessibilityContents", "accessibilityVisibleChildren", "accessibilityChildrenInNavigationOrder"] {
+ for child in (attribute(node, name) as? [NSObject]) ?? [] { walk(child) }
+ }
+ }
+ walk(host)
+ #expect(groups.contains(EquipoStrings.text("native.mac.jump")))
+ #expect(buttons.contains(EquipoStrings.text("chat.card.not_now")))
+ #expect(buttons.contains(EquipoStrings.text("native.mac.open_window")))
+ }
+ @Test func presentationContractsKeepContextAndWindowCommandWiring() throws {
let sources = URL(fileURLWithPath: #filePath).deletingLastPathComponent().deletingLastPathComponent().deletingLastPathComponent().appendingPathComponent("Sources")
let palette = try String(contentsOf: sources.appendingPathComponent("EquipoMac/MacJumpPalette.swift"), encoding: .utf8)
- #expect(palette.contains(".accessibilityElement(children: .contain)\n .accessibilityLabel"))
- for key in ["chat.card.not_now", "native.mac.open_window"] { #expect(palette.contains("Button(EquipoStrings.text(\"" + key + "\")")) }
- #expect(palette.contains("Text(result.title)"))
#expect(palette.contains("guard Self.canActivate(firstResponder: NSApp.keyWindow?.firstResponder)"))
let screen = try String(contentsOf: sources.appendingPathComponent("EquipoKit/UI/Screens/TaskDetailScreen.swift"), encoding: .utf8)
#expect(screen.contains("macContext?.detail ?? ownedModel!"))
diff --git a/native/apple/Tests/EquipoKitTests/MacPowerTests.swift b/native/apple/Tests/EquipoKitTests/MacPowerTests.swift
index e248e448..23c64a7e 100644
--- a/native/apple/Tests/EquipoKitTests/MacPowerTests.swift
+++ b/native/apple/Tests/EquipoKitTests/MacPowerTests.swift
@@ -35,10 +35,13 @@ import Testing
@Test func historyDoesNotRepeatAndNewNavigationDropsForward() {
let history = MacNavigationHistory()
history.go(.pane(.tasks)); history.go(.task("a")); history.go(.task("a"))
- #expect(history.back() == .pane(.tasks))
#expect(history.back() == .pane(.conversation))
#expect(history.back() == nil)
#expect(history.forward() == .pane(.tasks))
+ #expect(!history.canForward)
+ history.back(); history.go(.task("b"))
+ #expect(history.canForward)
+ #expect(history.forward() == .pane(.tasks))
history.go(.project("p")); #expect(history.forward() == nil)
}
@Test func paletteAndMenuReuseTaskRulesAndConfirmBeforeWriting() async throws {
diff --git a/native/apple/Tests/EquipoKitTests/MacWorkspaceTests.swift b/native/apple/Tests/EquipoKitTests/MacWorkspaceTests.swift
index f4dd6b86..1f14cb99 100644
--- a/native/apple/Tests/EquipoKitTests/MacWorkspaceTests.swift
+++ b/native/apple/Tests/EquipoKitTests/MacWorkspaceTests.swift
@@ -16,8 +16,13 @@ import Testing
#expect(two.context?.taskID == "other")
one.go(.project("project")); #expect(one.pane == .projects); #expect(one.projectID == "project")
one.back(); #expect(one.context?.taskID == detail.taskID); #expect(one.pane == .conversation)
- one.back(); #expect(one.pane == .conversation); #expect(one.inspector)
- one.forward(); #expect(one.inspector)
+ #expect(!one.history.canBack)
+ one.forward(); #expect(one.pane == .projects); #expect(one.inspector)
+ #expect(!one.history.canForward)
+ one.back(); one.go(.task("another"))
+ #expect(one.history.canForward)
+ one.forward(); #expect(one.pane == .projects)
+ #expect(one.context?.taskID == "another")
one.newMessage(); #expect(one.pane == .conversation); #expect(one.composerFocus == 1)
#expect(two.context?.taskID == "other")
}