Skip to content

Refresh stale provider and model TUI states - #1827

Merged
Aaronontheweb merged 6 commits into
devfrom
fix/provider-oauth-state-refresh
Aug 9, 2026
Merged

Refresh stale provider and model TUI states#1827
Aaronontheweb merged 6 commits into
devfrom
fix/provider-oauth-state-refresh

Conversation

@Aaronontheweb

@Aaronontheweb Aaronontheweb commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Refresh the provider OAuth page after each visible state change.
  • Show the authorization URL and user code after the request starts.
  • Load model roles after the configuration becomes available.
  • Replace the model list when the user selects a different provider.
  • Add headless tests for each stale-screen defect.
  • Extend the native model-manager tape with a provider switch.

Root cause

PR #1804 added keyed layouts to preserve stateful controls.

The provider OAuth key ignored visible OAuth state revisions. The layout reused the original start-screen child.

The model page created its RoleOverview child before its view model loaded the configuration. The state did not change after the load.

The model picker entered DiscoverModels before it cleared the prior probe result. The layout cached the prior provider's DiscoverList child.

The new probe updated the data under the same key. The keyed layout correctly retained its existing child, which contained stale models.

Validation

  • Provider-manager tests passed 55 tests.
  • Model-manager tests passed 24 tests.
  • The solution build passed with zero warnings and zero errors.
  • dotnet slopwatch analyze passed.
  • pwsh ./scripts/Add-FileHeaders.ps1 -Verify passed.
  • git diff --check passed.
  • ./scripts/smoke/run-smoke.sh light passed 23 tapes and 9 scenarios.
  • The model-manager tape showed both configured roles.
  • The tape changed the selected provider from alpha-models to bravo-models.
  • A local binary swap passed the runtime health checks.

Fixes #1825
Fixes #1829

@Aaronontheweb Aaronontheweb changed the title Refresh provider OAuth device flow states Refresh stale provider and model TUI states Aug 9, 2026
@Aaronontheweb Aaronontheweb added bug Something isn't working providers Provider integrations and capability detection across OpenAI-compatible backends. tui Terminal UI (Termina) issues UX/DX UI / UX / DX friction issue or user-facing annoyances. labels Aug 9, 2026

private static ILayoutNode BuildLoading()
{
return new TextNode(" Loading model configuration...")
@Aaronontheweb
Aaronontheweb merged commit e656c0f into dev Aug 9, 2026
21 checks passed
@Aaronontheweb
Aaronontheweb deleted the fix/provider-oauth-state-refresh branch August 9, 2026 03:11
@Aaronontheweb Aaronontheweb mentioned this pull request Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working providers Provider integrations and capability detection across OpenAI-compatible backends. tui Terminal UI (Termina) issues UX/DX UI / UX / DX friction issue or user-facing annoyances.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Model manager shows configured roles as not set Provider reauthorization remains on the OAuth start screen

1 participant