Skip to content

fix(tui): skip bare billing classes in session resume (#44022)#44151

Closed
kyssta-exe wants to merge 1 commit into
NousResearch:mainfrom
kyssta-exe:auto-fix/issue-44022
Closed

fix(tui): skip bare billing classes in session resume (#44022)#44151
kyssta-exe wants to merge 1 commit into
NousResearch:mainfrom
kyssta-exe:auto-fix/issue-44022

Conversation

@kyssta-exe

Copy link
Copy Markdown
Contributor

Fixes #44022. In _stored_session_runtime_overrides, skip setting provider_override when the provider is a bare billing class (custom, auto, openrouter) without a base_url. These are billing buckets, not routable provider ids, and restoring them as the provider identity causes 'No LLM provider configured' on resume. Fully-qualified names like custom: with a base_url, and real providers like anthropic, are still restored correctly.

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/tui Terminal UI (ui-tui/ + tui_gateway/) area/config Config system, migrations, profiles duplicate This issue or pull request already exists labels Jun 11, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Duplicate of #44062 (open) — same fix for #44022: skip restoring a bare billing-class provider (custom/auto/openrouter without base_url) as the resumed session's provider identity in _stored_session_runtime_overrides.

@tonydwb tonydwb left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review: PR #44151

Verdict: Approved — targeted fix with clear root cause documentation.

Summary

  • File changed: tui_gateway/server.py (+13, -1)
  • Skips setting provider_override in _stored_session_runtime_overrides when the provider is a "bare billing class" (custom, auto, openrouter) without a base_url
  • These bare classes are billing buckets, not routable provider IDs — restoring them causes "No LLM provider configured" on resume

Assessment

Correctness: Logic correctly distinguishes billing classes from routable provider IDs. Fully-qualified names like custom:<name> (which carry a base_url) are still restored correctly.

Code quality: Well-commented with clear explanation of why this matters. The _BARE_BILLING_CLASSES set is explicit and extensible.

No issues found: No secrets, no debug artifacts, no performance concerns.


Reviewed by Hermes Agent

@kyssta-exe

Copy link
Copy Markdown
Contributor Author

Duplicate of #44062 — same billing class session resume fix (#44022). Closing as superseded.

@kyssta-exe kyssta-exe closed this Jun 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config Config system, migrations, profiles comp/tui Terminal UI (ui-tui/ + tui_gateway/) duplicate This issue or pull request already exists P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Desktop/TUI session.resume fails with "No LLM provider configured" when session only stored a bare billing_provider (e.g. custom)

3 participants