Skip to content

tui: fix codex header vertical shift at startup#12956

Draft
rhan-oai wants to merge 9 commits intomainfrom
codex/loading
Draft

tui: fix codex header vertical shift at startup#12956
rhan-oai wants to merge 9 commits intomainfrom
codex/loading

Conversation

@rhan-oai
Copy link
Collaborator

@rhan-oai rhan-oai commented Feb 26, 2026

Remove redundant flush_active_cell, logically handled by add_box_history.

Before

Screen.Recording.2026-02-23.at.7.39.10.PM.mov

After

codex.loading.mov

@github-actions
Copy link
Contributor

github-actions bot commented Feb 26, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@rhan-oai rhan-oai changed the title [codexMitigate Codex Header Shifting at Startup tui: fix codex header vertical shift at startup Feb 26, 2026
@rhan-oai
Copy link
Collaborator Author

@codex review

Copy link
Contributor

@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

if let Some(cell) = session_info_cell.take() {
self.active_cell = Some(cell);
}

P2 Badge Bump revision after replacing placeholder session header

When merged_header is true, apply_session_info_cell replaces active_cell with the real session info but no longer flushes or increments active_cell_revision. active_cell_transcript_key() uses that revision for live-tail cache invalidation, so an already-open transcript overlay (Ctrl+T) can keep rendering the stale placeholder header until another active-cell mutation happens.

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

@rhan-oai
Copy link
Collaborator Author

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Feb 27, 2026
@rhan-oai
Copy link
Collaborator Author

@codex review

Copy link
Contributor

@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: 6b560a46be

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

self.pending_shutdown_exit_thread_id = None;
}
if let EventMsg::SessionConfigured(session) = &event.msg
&& let Some(first_cell) = self.transcript_cells.first_mut()
Copy link
Contributor

Choose a reason for hiding this comment

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

P1 Badge Search transcript for loading header before replacing it

handle_active_thread_event only replaces transcript_cells.first_mut() when a SessionConfigured arrives. But start_fresh_session_with_summary_hint appends a new placeholder header via insert_startup_header even when prior transcript cells exist (e.g. /new). In that case the placeholder is not index 0, so it never gets replaced and the UI can keep showing loading indefinitely.

Useful? React with 👍 / 👎.

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