Skip to content

Keep the composer editable during TUI startup - #38642

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/fe04a85cfbbcff21ff87fa81fd17474827858575
Aug 14, 2026
Merged

Keep the composer editable during TUI startup#38642
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/fe04a85cfbbcff21ff87fa81fd17474827858575

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 14, 2026

Copy link
Copy Markdown

Keep the composer editable during TUI startup

Why

Configuration and app-server initialization can take time before the main TUI is ready, leaving users unable to begin drafting a prompt.

What changed

  • Show a provisional composer while startup work runs and carry its text, cursor position, paste state, and attachments into the initialized chat.
  • Limit the provisional composer to safe editing and cancellation, and quarantine input around session pickers, approvals, and other actionable startup screens.
  • Preserve configuration validation before terminal checks and recover terminal state cleanly from startup failures and caught panics.

Testing

  • Cover startup editing, multiline and large pastes, keymaps, cancellation, session-picker handoff, approval boundaries, and draft restoration.
  • Verify non-interactive launches report configuration errors before terminal errors.

## Why

Configuration and app-server initialization can take time before the main TUI is ready, leaving users unable to begin drafting a prompt.

## What changed

- Show a provisional composer while startup work runs and carry its text, cursor position, paste state, and attachments into the initialized chat.
- Limit the provisional composer to safe editing and cancellation, and quarantine input around session pickers, approvals, and other actionable startup screens.
- Preserve configuration validation before terminal checks and recover terminal state cleanly from startup failures and caught panics.

## Testing

- Cover startup editing, multiline and large pastes, keymaps, cancellation, session-picker handoff, approval boundaries, and draft restoration.
- Verify non-interactive launches report configuration errors before terminal errors.

GitOrigin-RevId: fe04a85cfbbcff21ff87fa81fd17474827858575
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/fe04a85cfbbcff21ff87fa81fd17474827858575 branch from 12a4e4a to a0bed4b Compare August 14, 2026 20:31
@copyberry
copyberry Bot merged commit a0bed4b into main Aug 14, 2026
28 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/fe04a85cfbbcff21ff87fa81fd17474827858575 branch August 14, 2026 20:32
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 14, 2026
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.

1 participant