Skip to content

feat: persist composer model and reasoning effort selections#94

Merged
Dimillian merged 5 commits intomainfrom
codex/github-mention-reasoning-effort-resets-to-medium
Jan 18, 2026
Merged

feat: persist composer model and reasoning effort selections#94
Dimillian merged 5 commits intomainfrom
codex/github-mention-reasoning-effort-resets-to-medium

Conversation

@Dimillian
Copy link
Owner

Motivation

  • Remember the last model and reasoning effort used in the composer so new threads default to the last selections and users don't lose their configured reasoning level when switching chats.

Description

  • Added lastComposerModelId and lastComposerReasoningEffort to the frontend AppSettings (src/types.ts) and to the backend settings struct (src-tauri/src/types.rs) with default handling and serde names.
  • Initialized the default settings in useAppSettings (src/features/settings/hooks/useAppSettings.ts) to include the new fields.
  • Updated useModels (src/features/models/hooks/useModels.ts) to accept preferredModelId and preferredEffort and to seed/retain selections using existing, preferred, or default values when refreshing the model list.
  • Wired the saved preferences into the app root (src/App.tsx) by passing appSettings.lastComposerModelId and appSettings.lastComposerReasoningEffort into useModels and adding an effect to persist changes via queueSaveSettings when the composer selection changes.

Testing

  • Ran npm run lint, which produced an informational warning about the TypeScript version used by @typescript-eslint but completed without blocking changes.
  • Ran npm run typecheck (tsc --noEmit) and it completed successfully.

Codex Task

@Dimillian Dimillian changed the title Persist composer model and reasoning effort selections feat: persist composer model and reasoning effort selections Jan 18, 2026
@Dimillian
Copy link
Owner Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

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: 70d8d14e26

ℹ️ 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".

@Dimillian Dimillian merged commit 3448b58 into main Jan 18, 2026
2 checks passed
gersmann pushed a commit to gersmann/codex-monitor-web that referenced this pull request Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant