Skip to content

Reduce stack usage in async TUI tests - #52959

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/7bbf2020a5ec12bae8e0365ddf5641deef93b544
Oct 10, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Reduce stack usage in async TUI tests

Why

Large test futures can occupy their caller's stack frame even when passed directly to Box::pin.

What changed

  • Add a non-inlined box_future helper and boxed_future! macro to construct and box futures outside the caller's poll frame. Use them for heavyweight TUI fixtures and test scenarios.
  • Return the shared App fixture as Box<App> to keep it on the heap.
  • Treat ConnectionAborted as a closed connection in the realtime speech test server, alongside BrokenPipe and ConnectionReset.

## Why

Large test futures can occupy their caller's stack frame even when passed directly to `Box::pin`.

## What changed

- Add a non-inlined `box_future` helper and `boxed_future!` macro to construct and box futures outside the caller's poll frame. Use them for heavyweight TUI fixtures and test scenarios.
- Return the shared `App` fixture as `Box<App>` to keep it on the heap.
- Treat `ConnectionAborted` as a closed connection in the realtime speech test server, alongside `BrokenPipe` and `ConnectionReset`.

GitOrigin-RevId: 7bbf2020a5ec12bae8e0365ddf5641deef93b544
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/7bbf2020a5ec12bae8e0365ddf5641deef93b544 branch from ece5c23 to 47bcb3a Compare October 10, 2026 18:50
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-10T18:50:46.618025Z ece5c23 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 47bcb3a into main Oct 10, 2026
13 of 19 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/7bbf2020a5ec12bae8e0365ddf5641deef93b544 branch October 10, 2026 18:50
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 10, 2026
@gosslukasz
gosslukasz deployed to issue-triage October 10, 2026 18:53 — with Image GitHub Actions Active
@gosslukasz
gosslukasz deployed to issue-triage October 10, 2026 18:53 — with Image GitHub Actions Active
@gosslukasz
gosslukasz deployed to issue-triage October 10, 2026 18:53 — with Image GitHub Actions Active
@gerardoyxy
gerardoyxy deployed to issue-triage October 10, 2026 18:56 — with Image GitHub Actions Active
@gerardoyxy
gerardoyxy deployed to issue-triage October 10, 2026 18:56 — with Image GitHub Actions Active
@gerardoyxy
gerardoyxy deployed to issue-triage October 10, 2026 18:56 — with Image GitHub Actions Active
@denikatsman
denikatsman deployed to issue-triage October 10, 2026 18:57 — with Image GitHub Actions Active
@denikatsman
denikatsman deployed to issue-triage October 10, 2026 18:57 — with Image GitHub Actions Active
@denikatsman
denikatsman deployed to issue-triage October 10, 2026 18:57 — with Image GitHub Actions Active
@denikatsman
denikatsman deployed to issue-triage October 10, 2026 18:58 — with Image GitHub Actions Active
@MyAIPlugins
MyAIPlugins deployed to issue-triage October 10, 2026 19:13 — with Image GitHub Actions Active
@MyAIPlugins
MyAIPlugins deployed to issue-triage October 10, 2026 19:13 — with Image GitHub Actions Active
@MyAIPlugins
MyAIPlugins deployed to issue-triage October 10, 2026 19:13 — with Image GitHub Actions Active
@MyAIPlugins
MyAIPlugins deployed to issue-triage October 10, 2026 19:14 — with Image GitHub Actions Active

This branch was successfully deployed

1 active deployment
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