Skip to content

Avoid redundant reads and screen clears when switching side chats - #60675

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/a07f161ec86b0ae51250c5a0156402d328c42bdf
Nov 10, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/a07f161ec86b0ae51250c5a0156402d328c42bdf

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Avoid redundant reads and screen clears when switching side chats

Why

A live parent thread continues receiving lifecycle notifications while its side chat has focus, so returning to it does not need another liveness read.

What changed

  • Skip the parent liveness read when returning from a side chat while the parent is still attached and online. Keep the read when reattachment is needed.
  • Stop scheduling a deferred screen clear when handling a transcript reset that preserves the screen.

Testing

Add regression coverage for parent thread/read requests with and without reattachment, and assert that side-chat navigation leaves no deferred screen clear.

…0675)

## Why

A live parent thread continues receiving lifecycle notifications while its side chat has focus, so returning to it does not need another liveness read.

## What changed

- Skip the parent liveness read when returning from a side chat while the parent is still attached and online. Keep the read when reattachment is needed.
- Stop scheduling a deferred screen clear when handling a transcript reset that preserves the screen.

## Testing

Add regression coverage for parent `thread/read` requests with and without reattachment, and assert that side-chat navigation leaves no deferred screen clear.

GitOrigin-RevId: a07f161ec86b0ae51250c5a0156402d328c42bdf
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/a07f161ec86b0ae51250c5a0156402d328c42bdf branch from 1b3d6db to ad3d352 Compare November 10, 2026 22:33
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-10T22:33:25.673899Z 1b3d6db 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.

@copyberry
copyberry Bot merged commit ad3d352 into main Nov 10, 2026
8 of 23 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/a07f161ec86b0ae51250c5a0156402d328c42bdf branch November 10, 2026 22:33
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 10, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — ad3d3521 Deployed Nov 10, 2026 by daddevv via Identify potential duplicates (all issues) #62673
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.

5 participants