Skip to content

fix(gateway/ui): record model auth unavailability reasons; gate composers only on actionable auth failures - #131697

Merged
steipete merged 6 commits into
mainfrom
claude/bottom-right-auth-issue-10432b
Aug 28, 2026
Merged

steipete merged 6 commits into
mainfrom
claude/bottom-right-auth-issue-10432b

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The chat composer (and the new-session Start gate) shows "Authentication failed. Review the provider credential or sign-in, then retry." and hard-disables sending whenever every catalog entry for the selected model reports available: false. That boolean conflates four distinct producer states with different correct operator responses:

  1. No credential at all for the route's provider (the auth-cold case fix: auth-cold gateways hide all models and dead-end the operator #123130 intended to catch — setup genuinely needed).
  2. Credentials present but rejected/unusable — expired token without refresh, invalid material, live provider rejection.
  3. Transient cooldown — profiles cooling down after rate limits or provider errors; self-heals, sends can still succeed.
  4. Unknown availability folded to false by the default projection (e.g. a native CLI runtime account that has not been read yet).

Observed in production: a gateway with a valid OpenAI OAuth profile showed the "Authentication failed" banner on a session whose runs were succeeding — a transient state rendered as a false, actionless auth claim with a dead-ended composer on the default path.

Why This Change Was Made

Record the fact at its producer; read it where needed. The availability evaluator (src/agents/model-auth-availability.ts) now records why an entry is unavailable as a closed reason — missing-auth, auth-failed, or cooldown (with the earliest known retry time) — and models.list projects it additively (unavailableReason, unavailableUntil on ModelChoiceSchema; emitted only when the projected available is false). A live provider catalog auth-rejected outcome still outranks a stats cooldown ("stored credentials prove presence, not acceptance") and clears any stale retry deadline. The native-CLI-runtime path now delegates the whole auth evaluation to the runtime provider instead of merging booleans, preserving the distinction between a missing credential and an account not yet read.

The Control UI reads the reason instead of reconstructing credential state:

State Composer / New Session Copy
missing-auth Disabled "No provider credential is configured for this model. Set it up in Model Setup." (setup funnel kept)
auth-failed Disabled Existing "Authentication failed…" guidance — now always accurate
cooldown Enabled No banner; run outcomes stay visible in the transcript
no reason (unknown) Enabled No banner

Alongside, the shared unusable-window classification now distinguishes an active auth_permanent disable from transient cooldowns (previously combined), with red-first regression coverage. The auth-cold Model Setup funnel from #123130 is intact; picker options still disable on available: false.

User Impact

  • No more false "Authentication failed" claims (and dead composers) during transient provider cooldowns or for indeterminate native-runtime accounts. Sending stays possible; a real failure surfaces visibly in the transcript where the operator can act.
  • Auth-cold operators get honest copy naming the actual problem (no credential) with the Model Setup path.
  • Additive protocol fields only; no config changes, no migrations, UI ships with its gateway.

Evidence

Before — model in transient cooldown, composer falsely disabled with an auth claim:

before cooldown

After — same cooldown state: no banner, message sent, run completed:

after cooldown

After — missing credential (auth-cold): honest copy + Model Setup funnel:

after missing auth

After — genuine auth rejection: existing copy, now accurate:

after auth failed

Captures are from the deterministic mock-gateway rig (real Control UI in Chromium); every capture was opened and inspected. Cooldown/unknown scenarios send a real chat.send and display the completed assistant response.

Live-gateway proof (isolated OPENCLAW_STATE_DIR, dedicated port, this branch's dist):

  • No credential: models.list → {"id":"claude-fable-5","available":false,"unavailableReason":"missing-auth"}; composer disabled with the new copy and Model Setup link.
  • Deliberately invalid Anthropic key, rejected live by the provider during catalog discovery: {"available":false,"unavailableReason":"auth-failed"}; composer disabled with the (now accurate) auth banner. The live rejection correctly outranks a subsequently scripted stats cooldown.
  • Genuine transient cooldown recorded through the production failure writer (rate_limit): {"id":"grok-4","available":false,"unavailableReason":"cooldown","unavailableUntil":1787907366124}; composer stayed enabled with no banner, a real send dispatched, and the transcript showed the visible run outcome (HTTP 400: "Incorrect API key provided…").
  • Native CLI runtime rows with an unread account stay reason-less (available:false, no unavailableReason) and do not block the composer.

Tests: 628 scoped tests across 18 files (evaluator + reasons, route selection, five models.list suites, protocol schema, seven UI suites, two browser e2e suites) — all passing; every new regression case was captured failing on pre-fix code first (evaluator reasons, gateway projection, schema, submit gates, browser cooldown/unknown send paths, permanent-vs-transient classification). node scripts/check-changed.mjs green; pnpm ui:i18n:baseline produced no baseline change (English-only copy addition). Rebased onto current main; full changed-gate re-run green post-rebase.

Production LOC: +275/−124 (net +151) — the additive reason/timestamp capability across evaluator, wire schema, and UI; tests +968/−419 (includes two pure size-gate extractions).

Record missing credentials, unusable auth, and cooldown separately from unknown availability. Carry native runtime auth facts and retry times through the additive models.list projection without changing protocol versions.
Read producer availability reasons in chat and new-session gates. Preserve Model Setup for missing credentials, keep accurate rejection copy, and allow sending during cooldown or unknown availability. Keep unavailable picker options disabled.
Keep permanently rejected profiles and inline credentials actionable without a retry timestamp. Use only viable transient profiles for the earliest recovery time, preserving explicit profile retry behavior.
Extract the existing submit-gate suite and shared draft fixture to stay within the file-size limit. Supply registered CLI metadata through the existing test boundary so availability checks do not cold-load executable plugin setup code.
@clawsweeper

clawsweeper Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review August 28, 2026 09:19
@steipete
steipete requested a review from a team as a code owner August 28, 2026 09:19
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime agents Agent runtime and tooling size: XL maintainer Maintainer-authored PR labels Aug 28, 2026
@steipete steipete closed this Aug 28, 2026
@steipete steipete reopened this Aug 28, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: needs maintainer proof decision A ClawSweeper-authored PR needs a maintainer proof capture or override decision. labels Aug 28, 2026
@clawsweeper

clawsweeper Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 28, 2026, 5:47 AM ET / 09:47 UTC.

ClawSweeper review

What this changes

The branch adds model-unavailability reasons to Gateway catalog entries and blocks Chat and New Session only for missing or rejected credentials.

Merge readiness

⛔ Blocked until stronger real behavior proof is added - 2 items remain

No blocking finding. The PR preserves the auth-cold recovery path while carrying the producer-recorded availability distinction through the catalog, avoiding false authentication claims and recoverable-send dead ends.

Priority: P1
Reviewed head: 5d5398e946a38ebd63bdf24ef5df0f5b5cfe3e94

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) PR readiness rating was derived from proof quality, review findings, security review, and reviewer confidence.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: ClawSweeper live verification failed on the reviewed terminal surface. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: ClawSweeper live verification failed on the reviewed terminal surface. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 8 items PR checkout and introduced scope: The detached checkout is the PR head; its introduced range has 30 changed files and 1,277 additions / 546 deletions, with no whitespace errors.
Producer-owned availability classification: The evaluator distinguishes missing credentials, permanent authentication rejection, and temporary cooldown before the UI sees catalog data; active permanent disables are intentionally not treated as cooldowns.
Gateway projection preserves the classification: models.list retains the complete auth evaluation and projects optional reason and retry fields only for unavailable entries, instead of collapsing the result to a boolean before Control UI consumes it.
Findings None None.
Security None None.

Live Verification

Command: pnpm test:ui:e2e -- ui/src/e2e/chat-composer-redesign.e2e.test.ts

Result: FAIL (failed) — step 1 expect_output keeps missing-auth model availability honest in the composer and picker: terminal command failed with exit status 1: "pnpm test:ui:e2e -- ui/src/e2e/chat-composer-redesign.e2e.test.ts"

[failure]
terminal command failed with exit status 1: "pnpm test:ui:e2e -- ui/src/e2e/chat-composer-redesign.e2e.test.ts"

[command 1 combined output]
$ node --import ./scripts/tsx.mjs scripts/ensure-playwright-chromium.mts && node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --confi
gLoader runner -- ui/src/e2e/chat-composer-redesign.e2e.test.ts
[ui-e2e] Using system Chromium at /usr/bin/chromium-browser.
Downloading FFmpeg (playwright ffmpeg v1011) from https://cdn.playwright.dev/dbazure/download/playwright/builds/ffmpeg/1011/ffmpeg-linux.zip
2.3 MiB [====================] 100% 0.0s
FFmpeg (playwright ffmpeg v1011) downloaded to /tmp/clawsweeper-live-proof-131697-KzUkuK/profile/cache/ms-playwright/ffmpeg-1011

 RUN  v4.1.11 /tmp/clawsweeper-live-proof-131697-KzUkuK/target

 ↓  ui-e2e  ui/src/e2e/chat-composer-redesign.e2e.test.ts › Control UI chat composer redesign › keeps 'missing-auth' model availability honest in the composer a
nd picker
 ↓  ui-e2e  ui/src/e2e/chat-composer-redesign.e2e.test.ts › Control UI chat composer redesign › keeps 'auth-failed' model availability honest in the composer an
d picker
 ↓  ui-e2e  ui/src/e2e/chat-composer-redesign.e2e.test.ts › Control UI chat composer redesign › keeps 'cooldown' model availability honest in the composer and p
icker
 ↓  ui-e2e  ui/src/e2e/chat-composer-redesign.e2e.test.ts › Control UI chat composer redesign › keeps undefined model availability honest in the composer and pi
cker
 ↓  ui-e2e  ui/src/e2e/chat-composer-redesign.e2e.test.ts › Control UI chat composer redesign › keeps offline status in one bounded composer row
 ↓  ui-e2e  ui/src/e2e/chat-composer-redesign.e2e.test.ts › Control UI chat composer redesign › keeps mobile picker panels above an attachment-expanded composer
 ↓  ui-e2e  ui/src/e2e/chat-composer-redesign.e2e.test.ts › Control UI chat composer redesign › keeps the model in the bottom bar, session settings in the heade
r, and holds send beside the microp
… output truncated …
herProcessWithTimeoutOrCreate()', '  - [pid=8834][err] #14 0x557a624683
0a ProcessSingleton::NotifyOtherProcessOrCreate()', '  - [pid=8834][err] #15 0x557a612a7b97 ChromeProcessSingleton::NotifyOtherProcessOrCreate()', '  - [pid=883
4][err] #16 0x557a5c7d5f4f ChromeMainDelegate::PostEarlyInitialization()', '  - [pid=8834][err] #17 0x557a61ff8c79 content::ContentMainRunnerImpl::RunBrowser()'
, '  - [pid=8834][err] #18 0x557a61ff8943 content::ContentMainRunnerImpl::Run()', '  - [pid=8834][err] #19 0x557a61ff5f25 content::RunContentProcess()', '  - [p
id=8834][err] #20 0x557a61ff6157 content::ContentMain()', '  - [pid=8834][err] #21 0x557a5c7d55da ChromeMain', '  - [pid=8834][err] #22 0x7f9761e2a1ca (/usr/lib
/x86_64-linux-gnu/libc.so.6+0x2a1c9)', '  - [pid=8834][err] #23 0x7f9761e2a28b __libc_start_main', '  - [pid=8834][err] #24 0x557a5c7d502a _start', '  - [pid=88
34][err]   r8: 00001a98000794d9  r9: 000000000000108e r10: 0000000000000008 r11: 0000000000000246', '  - [pid=8834][err]  r12: 0000000000000006 r13: 00000000000
01167 r14: 0000000000000016 r15: 00007ffcbf41da10', '  - [pid=8834][err]   di: 0000000000002282  si: 0000000000002282  bp: 00007ffcbf41d8c0  bx: 000000000000228
2', '  - [pid=8834][err]   dx: 0000000000000006  ax: 0000000000000000  cx: 00007f9761e9ec0c  sp: 00007ffcbf41d880', '  - [pid=8834][err]   ip: 00007f9761e9ec0c
efl: 0000000000000246 cgf: 002b000000000033 erf: 0000000000000000', '  - [pid=8834][err]  trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000', '
 - [pid=8834][err] [end of stack trace]', '  - [pid=8834] ‹gracefully close start›', '  - [pid=8834] ‹kill›', '  - [pid=8834] ‹will force kill›', '  - [pid=8834
] ‹process did exit: exitCode=null, signal=SIGABRT›', '  - [pid=8834] starting temporary directories cleanup', '  - [pid=8834] finished temporary directories cl
eanup', '  - [pid=8834] ‹gracefully close end›' ] }%0A
[vitest] FAILED (exit 1)
[test] FAILED (exit 1)
[ELIFECYCLE] Command failed with exit code 1.

Assertions:

  • FAIL expect_output: keeps missing-auth model availability honest in the composer and picker
  • FAIL expect_output: Test Files

How this fits together

The Gateway turns provider and credential availability into the models.list catalog used by Control UI. Chat and New Session consume that catalog to direct credential recovery or allow a send whose runtime outcome remains visible.

flowchart LR
  A[Provider credentials and runtime state] --> B[Model availability evaluator]
  B --> C[Gateway model catalog]
  C --> D[Control UI model selection]
  D --> E{Availability reason}
  E -->|Missing or rejected auth| F[Block with setup guidance]
  E -->|Cooldown or unknown| G[Allow send and show outcome]
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: ClawSweeper live verification failed on the reviewed terminal surface. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Complete next step (P2) - This active maintainer-authored repair has no discrete automated follow-up identified.
Agent review details

Security

None.

PR surface

Source +373, Tests +349, Docs +1, Other +8. Total +731 across 30 files.

View PR surface stats
Area Files Added Removed Net
Source 14 497 124 +373
Tests 14 771 422 +349
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 1 8 0 +8
Total 30 1277 546 +731

Review metrics

Metric Value Why it matters
Production versus test LOC production +275/-124; tests/test support +968/-419; generated/docs +34/-3 The production growth carries the Gateway-to-Control-UI availability contract, while most movement is focused coverage and test-fixture extraction.
Catalog contract 2 optional fields added; 0 config or migration changes The additive reason and retry-time fields are consumed by the bundled Control UI without altering stored operator configuration.

Technical review

Best possible solution:

Keep one producer-owned availability reason in models.list, with both composer surfaces using the shared resolver and retaining coverage for missing auth, rejection, cooldown, and unknown states.

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

Yes—source and the included evaluator and browser-test matrix define the four availability states, though this read-only review did not execute them.

Is this the best way to solve the issue?

Yes. Recording the distinction at the evaluator and protocol boundary avoids UI inference and gives both composer surfaces one mapping.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 4ef3b14275f4.

Labels

Label changes:

  • add P1: The repair targets false authentication gating that can prevent default Chat and New Session workflows from progressing for real operators.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦞 diamond lobster.
  • add status: needs maintainer proof decision: A ClawSweeper-authored PR needs a maintainer proof capture or override decision. Needs stronger real behavior proof before merge: ClawSweeper live verification failed on the reviewed terminal surface. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Label justifications:

  • P1: The repair targets false authentication gating that can prevent default Chat and New Session workflows from progressing for real operators.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦞 diamond lobster.
  • status: needs maintainer proof decision: A ClawSweeper-authored PR needs a maintainer proof capture or override decision. Needs stronger real behavior proof before merge: ClawSweeper live verification failed on the reviewed terminal surface. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

  • PR checkout and introduced scope: The detached checkout is the PR head; its introduced range has 30 changed files and 1,277 additions / 546 deletions, with no whitespace errors. (5d5398e946a3)
  • Producer-owned availability classification: The evaluator distinguishes missing credentials, permanent authentication rejection, and temporary cooldown before the UI sees catalog data; active permanent disables are intentionally not treated as cooldowns. (src/agents/model-auth-availability.ts:449, 5d5398e946a3)
  • Gateway projection preserves the classification: models.list retains the complete auth evaluation and projects optional reason and retry fields only for unavailable entries, instead of collapsing the result to a boolean before Control UI consumes it. (src/gateway/server-methods/models-list-result.ts:79, 5d5398e946a3)
  • Additive protocol and bundled-client contract: The protocol defines optional closed availability-reason and retry-time fields, and the generated Swift Gateway client and Control UI types carry matching optional properties. (packages/gateway-protocol/src/schema/agents-models-skills.ts:61, 5d5398e946a3)
  • Shared UI gate behavior: The shared resolver returns actionable messages only for missing credentials and confirmed auth failure; chat and New Session both use that result, while cooldown and unknown availability permit a send. (ui/src/lib/chat/model-select-state.ts:181, 5d5398e946a3)
  • Focused regression coverage and documented behavior: Evaluator, projection, submit-gate, picker, and Chromium E2E coverage exercise missing-auth, auth-failed, cooldown, and unknown states; Control UI documentation describes the same distinctions. (ui/src/e2e/chat-composer-redesign.e2e.test.ts:10, 5d5398e946a3)

Likely related people:

  • steipete: Current history attributes the evaluator, Gateway projection, and shared UI resolver changes to Peter Steinberger, who also authored the related auth-cold repair. (role: feature owner and recent area contributor; confidence: high; commits: 095407918623, cc5805e8ea18, 75f6ac1bfc25; files: src/agents/model-auth-availability.ts, src/gateway/server-methods/models-list-result.ts, ui/src/lib/chat/model-select-state.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add after-fix proof from a real setup, such as a short recording, terminal output, linked artifact, or redacted logs.

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

Copy link
Copy Markdown
Contributor Author

After-fix proof from a real setup (per the rank-up move), plus attribution for the failed ClawSweeper live verification.

Live-gateway proof (real setup)

Isolated dev gateway built from this branch (OPENCLAW_STATE_DIR scratch dir, own port, dist-backed CLI + served Control UI, build stamp 7bd26fc722ad), driven through the real dashboard in Chromium. All four availability states exercised end to end:

1. No credential configured (missing-auth) — agent default anthropic/claude-fable-5, empty auth store:

$ openclaw gateway call models.list --params '{"agentId":"main"}'
{"id":"claude-fable-5","available":false,"unavailableReason":"missing-auth"}

Composer disabled with "No provider credential is configured for this model. Set it up in Model Setup." and the working setup link.

2. Genuine provider rejection (auth-failed) — deliberately invalid Anthropic API key, rejected live by the provider during catalog discovery:

{"id":"claude-fable-5","available":false,"unavailableReason":"auth-failed"}

Composer disabled with the existing "Authentication failed…" copy — now only shown when it is true. A subsequently scripted stats cooldown did not override the live rejection (presence isn't acceptance).

3. Transient cooldown (cooldown) — recorded through the production failure writer (markAuthProfileFailure, reason rate_limit; log: auth profile failure state updated: … reason=rate_limit window=cooldown):

{"id":"grok-4","available":false,"unavailableReason":"cooldown","unavailableUntil":1787907366124}

Composer stayed enabled with no banner; a real send dispatched against the provider and the transcript showed the visible run outcome (HTTP 400: "Incorrect API key provided. You can obtain an API key from https://console.x.ai.") — no dead composer, no false auth claim.

4. Reason-less unknown — native CLI runtime rows with an unread account stay available:false with no unavailableReason and do not block the composer:

{"reason":null,"count":7,"sample":"claude-cli/claude-opus-5"}
{"reason":"missing-auth","count":222,"sample":"anthropic/claude-fable-5"}

ClawSweeper live-verification failure attribution

The review's live run crashed before executing any test: the sandbox's system Chromium aborted at startup (SIGABRT in ProcessSingleton::NotifyOtherProcessOrCreate — visible in the review's own output; every test shows as skipped ↓). The same suite is green on this exact head in CI (checks-ui-e2e lanes, run 33159816632-series on 5d5398e) and passes locally (chat-composer-redesign.e2e.test.ts 7/7, control-ui-auth-transports.e2e.test.ts 3/3 against a real gateway). The failure is environmental, not a proof gap in the change.

@steipete
steipete merged commit d6e1f01 into main Aug 28, 2026
255 checks passed
@steipete
steipete deleted the claude/bottom-right-auth-issue-10432b branch August 28, 2026 10:18
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 29, 2026
…sers only on actionable auth failures (openclaw#131697)

* fix(gateway): preserve model auth unavailability reasons

Record missing credentials, unusable auth, and cooldown separately from unknown availability. Carry native runtime auth facts and retry times through the additive models.list projection without changing protocol versions.

* fix(ui): gate composers only on actionable auth failures

Read producer availability reasons in chat and new-session gates. Preserve Model Setup for missing credentials, keep accurate rejection copy, and allow sending during cooldown or unknown availability. Keep unavailable picker options disabled.

* fix(gateway): distinguish permanent auth rejection from cooldown

Keep permanently rejected profiles and inline credentials actionable without a retry timestamp. Use only viable transient profiles for the earliest recovery time, preserving explicit profile retry behavior.

* test: isolate submit gates and native runtime availability fixtures

Extract the existing submit-gate suite and shared draft fixture to stay within the file-size limit. Supply registered CLI metadata through the existing test boundary so availability checks do not cold-load executable plugin setup code.

* chore(protocol): regenerate Swift gateway models for availability reasons

* test(gateway): expect availability reasons in models.list projections
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XL status: needs maintainer proof decision A ClawSweeper-authored PR needs a maintainer proof capture or override decision.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant