Repository navigation
refactor(macos): remove final private test seams - #122202
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 11, 2026, 11:30 PM ET / August 12, 2026, 03:30 UTC. ClawSweeper reviewWhat this changesThis macOS cleanup deletes private DEBUG-only test facades and shallow smoke tests, rewrites the Quick Chat lifecycle test around existing dependency injection, and refreshes generated i18n line metadata. Merge readinessKeep open for normal maintainer review: current main still contains the DEBUG-only Quick Chat and Tailscale test seams this branch removes, while the retained lifecycle test observes the existing monitor and hotkey injection boundary. No blocking patch defect was found. Priority: P3 Review scores
Verification
How this fits togetherQuick Chat is a macOS menu-bar feature whose lifecycle installs monitors and a keyboard shortcut; the app’s settings can enable or disable it. The Tailscale settings view receives the app-owned status service through SwiftUI’s environment and renders its state for operators. flowchart LR
A[Mac app lifecycle] --> B[Quick Chat controller]
B --> C[Monitor and hotkey dependencies]
C --> D[Lifecycle regression test]
E[Settings window] --> F[Environment Tailscale service]
F --> G[Tailscale controls]
Before merge
Agent review detailsSecurityNone. PR surfaceOther -152. Total -152 across 9 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the focused deletion-based cleanup, then merge after exact-head macOS checks finish successfully and maintainer review confirms the retained lifecycle boundary remains sufficient. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR is a test-seam cleanup rather than a report of a user-visible failure; the relevant behavior is inspected directly in source and focused tests. Is this the best way to solve the issue? Yes. Reusing the controller’s existing monitor and hotkey injections preserves observable lifecycle coverage while deleting test-only production state and the parallel Tailscale service path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 69983f80113a. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Land-ready proof for
Production delta is -46 lines; source test support is -64; tests are -42; generated inventory has 17 metadata replacements. The non-generated patch is net -152 lines, with no known proof gaps. |
|
Merged via squash.
|
* test(macos): remove final private test seams * chore(macos): refresh native i18n inventory
What Problem This Solves
The macOS test target still carried an unconditional placeholder, body-only probes, no-op assertions, and private Quick Chat/Tailscale state façades whose only purpose was making tests reach implementation details.
Why This Change Was Made
Delete the inert and strict-subset tests, remove Tailscale's DEBUG service/state injection path, and rewrite the valuable Quick Chat lifecycle regression through its existing monitor and hotkey dependency injections. The test now observes installs, removals, token clearing, visibility, and enablement directly; no replacement production seam is added. The native i18n source inventory is regenerated canonically because deleting the Tailscale helper block shifts line metadata for existing strings; no localization text changes.
User Impact
No intended user-visible change. Quick Chat lifecycle and Tailscale runtime behavior are unchanged, while the macOS app and test target carry less private testing state and duplicated smoke coverage.
Evidence
swift build --package-path apps/macos --target OpenClaw: passed.pnpm native:i18n:verify: passed with 5,370 entries andchanged=false; the generated diff contains 17 Tailscale line-number updates and no source-text changes.git diff --check: clean.AI-assisted maintenance cleanup; the lifecycle effects, caller graph, generated inventory, and retained platform contracts were reviewed directly.