Skip to content

Use app-server metadata for TUI session restoration - #43360

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/c9d13e1e56ea2139d3e96344d72ca9ee2de73396
Sep 7, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 7, 2026 •

Copy link
Copy Markdown

Use app-server metadata for TUI session restoration

What changed

  • Carry the working directory from thread/list and thread/read in session selections, and use app-server metadata to resolve resume and fork directories.
  • Use the model reported by thread reads and thread-started notifications when restoring session state.
  • Remove TUI helpers that read session IDs, working directories, and models directly from rollout files or the state database. Picker selection now requires a thread ID in the selected row.

Testing

Extend picker coverage to verify that selections preserve the working directory, and add a snapshot asserting that switching to a read thread displays the server-reported model.

## What changed

- Carry the working directory from `thread/list` and `thread/read` in session selections, and use app-server metadata to resolve resume and fork directories.
- Use the model reported by thread reads and thread-started notifications when restoring session state.
- Remove TUI helpers that read session IDs, working directories, and models directly from rollout files or the state database. Picker selection now requires a thread ID in the selected row.

## Testing

Extend picker coverage to verify that selections preserve the working directory, and add a snapshot asserting that switching to a read thread displays the server-reported model.

GitOrigin-RevId: c9d13e1e56ea2139d3e96344d72ca9ee2de73396
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/c9d13e1e56ea2139d3e96344d72ca9ee2de73396 branch from 4cfeb90 to 694b631 Compare September 7, 2026 05:00
@copyberry
copyberry Bot merged commit 694b631 into main Sep 7, 2026
15 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/c9d13e1e56ea2139d3e96344d72ca9ee2de73396 branch September 7, 2026 05:01
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 7, 2026

This branch was previously deployed

1 inactive 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.