Skip to content

refactor(tests): retain transport-driven auth dismissal coverage - #140430

Merged
steipete merged 1 commit into
mainfrom
codex/test-native-auth-dismissal
Sep 6, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/test-native-auth-dismissal

Conversation

@steipete

@steipete steipete commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

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.

@clawsweeper

clawsweeper Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added the app: macos App: macos label Sep 6, 2026
@steipete
steipete marked this pull request as ready for review September 6, 2026 20:35
@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Sep 6, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Sep 6, 2026
@clawsweeper

clawsweeper Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 6, 2026, 4:40 PM ET / 20:40 UTC.

ClawSweeper review

What this changes

Remove 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
Reviewed head: d67d8e3932423b99a917dedd3218a983454469cb

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused cleanup preserves meaningful assertions and introduces no identified defect; native CI remains ordinary validation.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied MEMBER association exempts this maintainer cleanup from contributor runtime proof; simulated transport tests exercise dismissal, but no native execution result is claimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied MEMBER association exempts this maintainer cleanup from contributor runtime proof; simulated transport tests exercise dismissal, but no native execution result is claimed.
Evidence reviewed 7 items Introduced scope verified: The merge-base-to-head diff removes only two DEBUG helpers and their direct-state test, then adds the cleared-error assertion. Release-path implementation is unchanged.
Retained behavioral assertions: The parameterized cancellation test covers auth and preparation, terminal failure replies, request failure, and cancellation ordering. It checks the retained provider option, copyable error, retired session, idle state, sheet actions, and dismissal clearing both the option and error.
Same dismissal owner: Terminal errors retire the session while retaining the error; cancellation without a session calls clearProviderAuth, which clears the option and error synchronously. The retained tests reach that same path through decoded wizard replies.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Other -51. Total -51 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 1 52 -51
Total 2 1 52 -51

Review metrics

None.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This removes redundant test machinery without changing released behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied MEMBER association exempts this maintainer cleanup from contributor runtime proof; simulated transport tests exercise dismissal, but no native execution result is claimed.

Label justifications:

  • P3: This removes redundant test machinery without changing released behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied MEMBER association exempts this maintainer cleanup from contributor runtime proof; simulated transport tests exercise dismissal, but no native execution result is claimed.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 1fde67b into main Sep 6, 2026
129 checks passed
@steipete
steipete deleted the codex/test-native-auth-dismissal branch September 6, 2026 20:59
@steipete

steipete commented Sep 6, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 6, 2026
…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
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant