Skip to content

[codex] Apply managed new-thread defaults in TUI#29916

Closed
hefuc-oai wants to merge 1 commit into
codex/managed-new-thread-model-defaultfrom
codex/tui-managed-new-thread-model-default
Closed

[codex] Apply managed new-thread defaults in TUI#29916
hefuc-oai wants to merge 1 commit into
codex/managed-new-thread-model-defaultfrom
codex/tui-managed-new-thread-model-default

Conversation

@hefuc-oai

Copy link
Copy Markdown
Contributor

Summary

  • apply models.new_thread defaults before rendering and starting fresh TUI threads
  • preserve explicit codex --model and -c launch overrides
  • reapply managed defaults for /new while leaving resume and fork flows unchanged

Why

The TUI starts from an already merged Config, so a model persisted in config.toml was forwarded through thread/start as though it were an explicit per-thread choice. That prevented the managed new-thread default from becoming the initial TUI selection.

This keeps the precedence explicit launch choice > managed new-thread default > persisted user default, matching the App behavior.

Depends on #29683.

Validation

  • just test -p codex-tui managed_new_thread_defaults::tests
  • just test -p codex-tui fresh_session_config_uses_managed_new_thread_model_default
  • just test -p codex-tui fresh_session_config_uses_current_service_tier
  • just test -p codex-tui — 2,939 passed; two unrelated guardian feature-flag tests failed identically on the base branch
  • just fix -p codex-tui
  • just fmt

@hefuc-oai hefuc-oai force-pushed the codex/managed-new-thread-model-default branch from 74f4b29 to 24bdeb4 Compare June 24, 2026 22:56
@hefuc-oai hefuc-oai force-pushed the codex/tui-managed-new-thread-model-default branch from 6f3e7dd to 6d6e1c8 Compare June 24, 2026 23:00
@hefuc-oai hefuc-oai force-pushed the codex/tui-managed-new-thread-model-default branch from 6d6e1c8 to 9bac348 Compare June 24, 2026 23:40
@hefuc-oai hefuc-oai closed this Jun 26, 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