Repository navigation
refactor(tests): retain transport-driven auth dismissal coverage - #140430
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
|
Codex review: needs maintainer review before merge. Reviewed September 6, 2026, 4:40 PM ET / 20:40 UTC. ClawSweeper reviewWhat this changesRemove a redundant macOS provider sign-in test and two DEBUG-only helpers, while checking error dismissal in the existing transport-driven tests. Merge readiness✅ Ready for maintainer review Keep open: this is a focused, useful cleanup with no identified correctness defect. The retained coverage preserves the removed assertions, and the maintainer-authored, protected PR is not eligible for cleanup closure. Priority: P3 Review scores
Verification
How this fits togetherThe macOS onboarding model translates Gateway wizard replies into provider setup progress, errors, and dismissal state. Its tests feed simulated transport replies through the Gateway connection and inspect the resulting model and sheet. flowchart LR
A[Provider setup action] --> B[Onboarding model]
B --> C[Gateway connection]
D[Simulated wizard replies] --> C
C --> E[Terminal error handling]
E --> F[Copyable error sheet]
F --> G[Cancel clears dismissed state]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceOther -51. Total -51 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep terminal-error dismissal coverage at the transport-driven onboarding boundary without private state-installation helpers. Do we have a high-confidence way to reproduce the issue? Not applicable: this is test consolidation, not a reported runtime defect; source inspection establishes the overlapping coverage. Is this the best way to solve the issue? Yes: extending the existing transport-driven test preserves the dismissal invariant while removing helpers used only by the redundant test. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f6c36b651f43. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…ig-ref * origin/main: (31 commits) docs(web): split the Control UI page into task pages (#140437) fix: tool_search rejects calls that send both query and queries (#140310) fix(update): preserve rollback and truthful serving reports (#140419) fix: restore context when CLI recovery starts a fresh session (#140294) refactor(tests): retain transport-driven auth dismissal coverage (#140430) fix: stop unfinished subagents before resetting a conversation (#140417) fix(models): cap configured output at the final context window (#140436) refactor(mcp): reuse transport config normalization (#140439) test(gateway): preserve saved config in auth reload fixture (#140433) fix(plugins): inherit active config for embedded agent runs (#140435) refactor(tui): remove test-only shutdown timer hooks (#140432) fix(agents): preserve channel silent-reply guidance (#138345) fix(tasks): cancel resumed yielded subagent tasks (#140410) refactor(doctor): share compaction config traversal (#140330) fix(doctor): restore LINE and Mattermost account promotion (#136045) docs: remove the empty release-sections nav group (#140427) fix(tooling): omit Codex machine squash credit (#140420) chore(ui): refresh control ui locales (#140384) refactor(plugin-sdk): reuse native approval input contracts (#140415) fix: silent model WebSocket streams hang past the idle timeout (#140335) ... # Conflicts: # docs/web/control-ui.md
What Problem This Solves
A native onboarding test directly installs private auth state to check error dismissal, duplicating stronger transport-driven coverage and retaining two DEBUG-only methods solely for that shortcut.
Why This Change Was Made
Remove the redundant direct-state test and its two test-only methods. Add the explicit cleared-error assertion to the existing transport-driven terminal-failure dismissal cases, which already verify the copyable error, inactive session, idle state, and sheet actions.
User Impact
No release behavior or visual change. Net removal: 30 test lines and 21 DEBUG-only source lines, counted separately. Real request and cancellation ordering coverage remains intact.
Evidence
The retained transport-driven cases cover terminal errors and dismissal through the existing session fixtures. Local structural checks passed; Swift formatting/lint comparison found no new diagnostics relative to the baseline. Independent review through P2 passed. Exact-head macOS CI passed, including the Swift release build and native test job. No AppKit tests or app were executed on the operator desktop.