Skip to content

Avoid redundant TUI subagent metadata requests - #34234

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/604742b3cb495da12c97908d7a0ffa4ebc6a6da3
Jul 19, 2026
Merged

Avoid redundant TUI subagent metadata requests#34234
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/604742b3cb495da12c97908d7a0ffa4ebc6a6da3

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 19, 2026

Copy link
Copy Markdown

Avoid redundant TUI subagent metadata requests

What changed

  • Skip loaded-subagent backfills for fresh and forked threads, which cannot have pre-existing descendants.
  • Keep the backfill after resuming a thread so agent navigation is populated immediately.
  • Reuse thread status collected during backfill when opening the agent picker, avoiding duplicate thread/read requests while preserving liveness from live event channels.

Testing

  • Add a WebSocket-backed session lifecycle test that records app-server requests across fork, fresh-session, resume, and agent-picker flows.

## What changed

- Skip loaded-subagent backfills for fresh and forked threads, which cannot have pre-existing descendants.
- Keep the backfill after resuming a thread so agent navigation is populated immediately.
- Reuse thread status collected during backfill when opening the agent picker, avoiding duplicate `thread/read` requests while preserving liveness from live event channels.

## Testing

- Add a WebSocket-backed session lifecycle test that records app-server requests across fork, fresh-session, resume, and agent-picker flows.

GitOrigin-RevId: 604742b3cb495da12c97908d7a0ffa4ebc6a6da3
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/604742b3cb495da12c97908d7a0ffa4ebc6a6da3 branch from 6cb20d4 to 678157a Compare July 19, 2026 21:41
@copyberry
copyberry Bot merged commit 678157a into main Jul 19, 2026
32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/604742b3cb495da12c97908d7a0ffa4ebc6a6da3 branch July 19, 2026 21:42
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 19, 2026
@caunt
caunt temporarily deployed to issue-triage July 19, 2026 22:05 — with GitHub Actions Inactive
@caunt
caunt temporarily deployed to issue-triage July 19, 2026 22:05 — with GitHub Actions Inactive
@caunt
caunt temporarily deployed to issue-triage July 19, 2026 22:05 — with GitHub Actions Inactive
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.