refactor: close the final provider-architecture audit items - #2698
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 5, 2026, 11:53 PM ET / August 6, 2026, 03:53 UTC. ClawSweeper reviewWhat this changesThis PR moves Claude-specific PTY watchdog, executable-override, and probe-directory rules into its provider descriptor, and tightens the provider-architecture audit with exact suppressions for newly recognized references. Merge readinessKeep open for normal owner sign-off: the PR is a focused provider-launch refactor with no discrete correctness defect found, while VISION.md classifies broad refactors as sign-off work. Priority: P3 Review scores
Verification
How this fits togetherCodexBar starts provider CLIs through a shared pseudo-terminal runner. Provider descriptors supply CLI metadata that determines how the runner resolves an executable, helper watchdog, and safe working directory before collecting usage output. flowchart LR
A[Provider descriptor] --> B[PTY launch metadata]
C[CLI probe request] --> D[Shared PTY runner]
B --> D
D --> E[Executable and working directory selection]
E --> F[Provider CLI]
F --> G[Usage and version output]
Decision needed
Why: The source supports the refactor’s correctness, but VISION.md reserves broad refactors for explicit human approval rather than automated cleanup. Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Merge the descriptor-owned launch model after owner sign-off and successful focused/macOS test coverage, retaining exact anchored audit suppressions as the guard against future policy drift. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a refactor PR, not a report of broken externally reproducible behavior. Is this the best way to solve the issue? Yes. The descriptor configuration preserves the prior Claude-specific launch inputs while removing the shared runner’s direct Claude dependency, and the audit suppressions are exact-anchor checked. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 770ec06d2fc4. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Provider architecture resolutions
ProviderTTYLaunchConfigon each provider descriptor instead of hard-coding Claude in the shared runner.useProviderProbeWorkingDirectoryand carry the descriptor-derived behavior through provider version detection and its focused tests.StatusItemController+ClaudeSwapMenu.swiftinto the Claude provider-owned source directory.Scanner tightening
UsageProvider.<case>references while excluding matching derived instance aliases.🤖 Generated with Claude Code