Skip to content

test(tui): handle auth restriction prompt - #147729

Merged
RomneyDa merged 1 commit into
mainfrom
fix/qa-tui-auth-restrictions
Sep 14, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/qa-tui-auth-restrictions

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Summary

  • drive the current model-restriction prompt after saving a manifest-discovered provider credential
  • preserve the existing credential-redaction and persisted-profile assertions

Problem

The maturity TUI recovery producer timed out after entering the synthetic provider API key because the auth flow now asks whether model restrictions should be changed before it reports completion.

Verification

  • exact tui-local-runtime-recovery-pty evidence producer: pass
  • focused built-CLI PTY test: 1 passed, 27 skipped
  • node scripts/check-changed.mjs
  • local autoreview through P2: clean

Run: https://github.com/openclaw/openclaw/actions/runs/34681094383

@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 14, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 10:21 PM ET / September 14, 2026, 02:21 UTC.

ClawSweeper review

What this changes

Updates the terminal authentication test to accept the existing model-restriction prompt before checking credential persistence and resumed chat.

Merge readiness

✅ Ready for maintainer review

Keep open: current main still needs this focused test repair, and no actionable patch defect was found. The maintainer-authored PR is also protected from automated closure.

Priority: P3
Reviewed head: 46681fef16c303d3077f1c25b585ed68c7818228

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-supported test repair preserves meaningful assertions and introduces no identified correctness defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored test repair; the body reports focused built-CLI passes, while the linked older workflow is not after-fix evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored test repair; the body reports focused built-CLI passes, while the linked older workflow is not after-fix evidence.
Evidence reviewed 7 items Verified introduced change: The pinned introduction delta adds only a wait for the restriction choice and an Enter keypress; credential-redaction, persisted-profile, model-selection, and subsequent-request assertions remain intact.
Existing prompt contract: prepareProviderModelAccess defaults to keep, and completeProviderModelAccess awaits that selection after credentials are persisted. The CLI documentation independently describes this choice.
Still necessary on fetched main: Fetched main sends the API key and immediately waits for authentication completion without answering the intervening prompt.
Findings None None.
Security None None.

How this fits together

The local terminal interface launches a CLI authentication flow and resumes when it exits. This terminal test exercises that flow with a synthetic provider, then checks credential redaction, SQLite persistence, and continued chat.

flowchart LR
  A[Terminal test] --> B[Local authentication command]
  B --> C[Save synthetic credential]
  C --> D[Model restriction prompt]
  D --> E[Keep current restrictions]
  E --> F[Resume terminal chat]
  F --> G[Check persistence and response]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +2. Total +2 across 1 file.

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

Review metrics

None.

Technical review

Best possible solution:

Keep the existing terminal scenario aligned with the real authentication prompts while preserving its credential and resumed-chat assertions.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: the current-main terminal test leaves an awaited restriction prompt unanswered before expecting authentication completion; no test was executed during this review.

Is this the best way to solve the issue?

Yes. Waiting for the visible prompt and accepting its existing keep default repairs the test interaction without weakening assertions or changing production policy.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against d63e4e2713a8.

Labels

Label changes:

  • add P3: This is a narrowly scoped test maintenance repair with no production behavior change.
  • 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 external-contributor proof gate does not apply to this MEMBER-authored test repair; the body reports focused built-CLI passes, while the linked older workflow is not after-fix evidence.

Label justifications:

  • P3: This is a narrowly scoped test maintenance repair with no production behavior change.
  • 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 external-contributor proof gate does not apply to this MEMBER-authored test repair; the body reports focused built-CLI passes, while the linked older workflow is not after-fix evidence.

Evidence

What I checked:

  • Verified introduced change: The pinned introduction delta adds only a wait for the restriction choice and an Enter keypress; credential-redaction, persisted-profile, model-selection, and subsequent-request assertions remain intact. (src/tui/tui-pty-local.e2e.test.ts:1888, 46681fef16c3)
  • Existing prompt contract: prepareProviderModelAccess defaults to keep, and completeProviderModelAccess awaits that selection after credentials are persisted. The CLI documentation independently describes this choice. (src/commands/models/auth-model-policy.ts:104, 46681fef16c3)
  • Still necessary on fetched main: Fetched main sends the API key and immediately waits for authentication completion without answering the intervening prompt. (src/tui/tui-pty-local.e2e.test.ts:1887, d63e4e2713a8)
  • Validation evidence distinguished: The PR body reports a passing recovery producer and focused built-CLI test. The linked Maturity scorecard run instead belongs to an earlier revision and concluded failure; it does not independently establish an after-fix pass. (182741019dfd)
  • Feature-history routing: Current-main history records Peter Steinberger's recent terminal-adapter work and Ayaan Zaidi's model-access prompt work. Exact introduction attribution was not established because historical blobs needed by blame were unavailable. (src/commands/models/auth-model-policy.ts:104, 047c925cff7e)
  • Inspection boundaries: The working tree remained clean and diff whitespace validation passed. Tests were not executed under the read-only contract. Release-file inspection could not load its historical blob, and GitHub canonical search was rejected by the limited API route; neither establishes supersession. (46681fef16c3)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Ayaan Zaidi: 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.

@RomneyDa
RomneyDa merged commit 229553a into main Sep 14, 2026
151 checks passed
@RomneyDa
RomneyDa deleted the fix/qa-tui-auth-restrictions branch September 14, 2026 06:56
vincentkoc added a commit that referenced this pull request Sep 14, 2026
* commit '8e6fe8e02ddb51bfec4e80071f0f2adcae4cf098': (47 commits)
  refactor: simplify Gateway health response parsing (#147834)
  fix: avoid Gateway stalls when renaming sessions (#147869)
  refactor(plugins): reuse worker optional-method validation (#147925)
  refactor(infra): remove unreachable firewall diagnostic fallback (#147882)
  fix(ui): open attached automations from session hovercards (#147749)
  refactor(reply): share usage-bar numeric coercion (#147863)
  fix(doctor): report warnings for keyed agent configs (#123058)
  perf(plugins): reuse complete registry comparisons (#147893)
  fix(workboard): await lifecycle sweep completion in tests (#147950)
  fix: reduce stalls when browsing large session inventories (#147911)
  refactor(onboard): share custom model definition (#147915)
  feat(ios): collapse completed chat work above replies (#148002)
  fix(voice-call): retain state runtime for deferred streams (#147689)
  test(qa): compare Telegram entities semantically (#147752)
  fix(plugins): preserve runtime scope for deferred CLI actions (#147688)
  test(qa): keep Slack progress marker visible (#147748)
  test(qa): finish channel picker prompts (#147730)
  test(tui): handle auth restriction prompt (#147729)
  fix(qa): retain onboarding prompts across redraw bursts (#147687)
  fix(qa): seed Teams ambiguous timeout deterministically (#147686)
  ...
vincentkoc added a commit to SunnyShu0925/openclaw that referenced this pull request Sep 14, 2026
* commit '069710f909f0a7158777d0fc0bf1eab84e20c699': (45 commits)
  refactor(infra): consolidate update campaign reset ownership (openclaw#146555)
  refactor: simplify Gateway health response parsing (openclaw#147834)
  fix: avoid Gateway stalls when renaming sessions (openclaw#147869)
  refactor(plugins): reuse worker optional-method validation (openclaw#147925)
  refactor(infra): remove unreachable firewall diagnostic fallback (openclaw#147882)
  fix(ui): open attached automations from session hovercards (openclaw#147749)
  refactor(reply): share usage-bar numeric coercion (openclaw#147863)
  fix(doctor): report warnings for keyed agent configs (openclaw#123058)
  perf(plugins): reuse complete registry comparisons (openclaw#147893)
  fix(workboard): await lifecycle sweep completion in tests (openclaw#147950)
  fix: reduce stalls when browsing large session inventories (openclaw#147911)
  refactor(onboard): share custom model definition (openclaw#147915)
  feat(ios): collapse completed chat work above replies (openclaw#148002)
  fix(voice-call): retain state runtime for deferred streams (openclaw#147689)
  test(qa): compare Telegram entities semantically (openclaw#147752)
  fix(plugins): preserve runtime scope for deferred CLI actions (openclaw#147688)
  test(qa): keep Slack progress marker visible (openclaw#147748)
  test(qa): finish channel picker prompts (openclaw#147730)
  test(tui): handle auth restriction prompt (openclaw#147729)
  fix(qa): retain onboarding prompts across redraw bursts (openclaw#147687)
  ...
vincentkoc added a commit to nvtoroy/openclaw that referenced this pull request Sep 14, 2026
* commit '4ddb9ed21245eaca9f243e555a5ec070aaaf0dad': (113 commits)
  fix: avoid Gateway stalls when renaming sessions (openclaw#147869)
  refactor(plugins): reuse worker optional-method validation (openclaw#147925)
  refactor(infra): remove unreachable firewall diagnostic fallback (openclaw#147882)
  fix(ui): open attached automations from session hovercards (openclaw#147749)
  refactor(reply): share usage-bar numeric coercion (openclaw#147863)
  fix(doctor): report warnings for keyed agent configs (openclaw#123058)
  perf(plugins): reuse complete registry comparisons (openclaw#147893)
  fix(workboard): await lifecycle sweep completion in tests (openclaw#147950)
  fix: reduce stalls when browsing large session inventories (openclaw#147911)
  refactor(onboard): share custom model definition (openclaw#147915)
  feat(ios): collapse completed chat work above replies (openclaw#148002)
  fix(voice-call): retain state runtime for deferred streams (openclaw#147689)
  test(qa): compare Telegram entities semantically (openclaw#147752)
  fix(plugins): preserve runtime scope for deferred CLI actions (openclaw#147688)
  test(qa): keep Slack progress marker visible (openclaw#147748)
  test(qa): finish channel picker prompts (openclaw#147730)
  test(tui): handle auth restriction prompt (openclaw#147729)
  fix(qa): retain onboarding prompts across redraw bursts (openclaw#147687)
  fix(qa): seed Teams ambiguous timeout deterministically (openclaw#147686)
  refactor(mcp): load OAuth only when credentials are needed (openclaw#147884)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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: XS 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