Skip to content

fix(tui): preserve active session after provider logout - #3212

Merged
sailist merged 1 commit into
MoonshotAI:mainfrom
sailist:bug-024-08-14-logout-default-model-missing
Aug 24, 2026
Merged

fix(tui): preserve active session after provider logout#3212
sailist merged 1 commit into
MoonshotAI:mainfrom
sailist:bug-024-08-14-logout-default-model-missing

Conversation

@sailist

@sailist sailist commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Related Issue

No linked GitHub issue; this fixes the tracked provider logout session regression.

Problem

Logging out of the provider used by the active TUI session cleared the selected model and closed the session. This discarded usable session state and prevented persisted model aliases from following the existing resume behavior.

What changed

  • Keep the active TUI session open when a provider is removed or logged out.
  • Refresh the provider and model catalogs without clearing session-owned runtime state.
  • Continue clearing config-derived model state when no session exists, so new sessions still require an explicitly configured model.
  • Cover active-session and session-less logout behavior with regression tests.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue (external PRs: the issue must have a maintainer's /approve).
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Aug 24, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 56446cb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Aug 24, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@56446cb
npx https://pkg.pr.new/@moonshot-ai/kimi-code@56446cb

commit: 56446cb

@sailist
sailist merged commit a664226 into MoonshotAI:main Aug 24, 2026
16 checks passed
@github-actions github-actions Bot mentioned this pull request Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant