Skip to content

Defer startup NUX impressions until startup succeeds#22587

Merged
etraut-openai merged 1 commit into
mainfrom
etraut/tui-defer-nux-impression
May 14, 2026
Merged

Defer startup NUX impressions until startup succeeds#22587
etraut-openai merged 1 commit into
mainfrom
etraut/tui-defer-nux-impression

Conversation

@etraut-openai

@etraut-openai etraut-openai commented May 14, 2026

Copy link
Copy Markdown
Collaborator

Why

This is a follow-up to #22573. This problem was surfaced in a code review comment that I missed before merging the previous PR.

Fresh-session startup could prepare a model-availability NUX before app_server.start_thread(&config) completed. If thread startup then failed, the TUI never rendered the tooltip, but prepare_startup_tooltip_override(...) had already persisted one of the limited impressions.

What Changed

  • Move startup tooltip preparation inside the fresh-thread startup branch, after start_thread(...) succeeds.
  • Keep resume/fork paths unchanged.
  • Remove the now-redundant should_prepare_startup_tooltip_override(...) helper and its gate test.

@etraut-openai etraut-openai marked this pull request as ready for review May 14, 2026 01:25
@etraut-openai etraut-openai changed the title [codex] Defer startup NUX impressions until startup succeeds [codex] Preserve startup NUX impressions on failed thread start May 14, 2026
@etraut-openai etraut-openai changed the title [codex] Preserve startup NUX impressions on failed thread start Defer startup NUX impressions until startup succeeds May 14, 2026
@etraut-openai etraut-openai merged commit 6a225e4 into main May 14, 2026
31 checks passed
@etraut-openai etraut-openai deleted the etraut/tui-defer-nux-impression branch May 14, 2026 04:03
@github-actions github-actions Bot locked and limited conversation to collaborators May 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants