Skip to content

fix: preserve provider models and clear stop errors - #76

Merged
TimInTech merged 1 commit into
mainfrom
fix/provider-model-and-recorder-error
Oct 29, 2026
Merged

TimInTech merged 1 commit into
mainfrom
fix/provider-model-and-recorder-error

Conversation

@TimInTech

Copy link
Copy Markdown
Owner

Resolves the remaining actionable review findings from the repository notifications. Provider switches now retain separate OpenAI and OpenRouter model IDs across saves and restarts, and a successful retry clears stale recorder-stop errors. Adds regression coverage for both paths.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T17:35:22.389539Z 7a0da6b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7a0da6bbac

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/blitztext_linux.py
Comment on lines +578 to +581
if previous_model_provider in {"openai", "openrouter"}:
remembered_models[previous_model_provider] = model_field.text().strip()
self._model_provider = provider
if provider in {"openai", "openrouter"}:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Restore custom-provider models when switching back in settings

When settings are opened with a custom endpoint, switching to OpenAI or OpenRouter and then back to Custom replaces the original model with the other provider's model. Although _model_by_provider is initialized with the custom model, this handler neither remembers edits made for Custom nor restores its saved entry. For example, a custom endpoint using llama3.2 ends up with openai/gpt-4o-mini after an OpenRouter round trip; saving persists that incompatible model and subsequent requests can fail. Include Custom in the model preservation and restoration logic while retaining provider-specific defaults for OpenAI and OpenRouter.

Useful? React with 👍 / 👎.

@TimInTech
TimInTech merged commit fc627d0 into main Oct 29, 2026
12 checks passed
@TimInTech
TimInTech deleted the fix/provider-model-and-recorder-error branch October 29, 2026 17:36
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