Skip to content

Allow recovery commands when the current thread is unavailable - #46566

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2f5589d615276eb50c69490829dc042bba3f12a9
Sep 19, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 19, 2026 •

Copy link
Copy Markdown

Allow recovery commands when the current thread is unavailable

Why

An unavailable thread blocked slash commands even while the server remained connected, preventing users from starting or resuming a conversation and accessing local commands.

What changed

  • Allow explicitly supported recovery and local commands, including /new, /clear, /resume, /status, and /copy, through configured submit keys when the current thread is unavailable.
  • Keep other drafts and attachments intact, require commands to occupy a single line, and expand collapsed pastes without dispatching them on the same keypress. Disconnected input remains restricted to editing.
  • Clear stale review and MCP startup activity and recover prompts awaiting turn start into the retained input queue so recovery commands can proceed.

Testing

Add composer and app tests for command routing, custom submit bindings, blocked draft preservation, paste expansion, and /new and /clear creating writable sessions despite stale activity.

## Why

An unavailable thread blocked slash commands even while the server remained connected, preventing users from starting or resuming a conversation and accessing local commands.

## What changed

- Allow explicitly supported recovery and local commands, including `/new`, `/clear`, `/resume`, `/status`, and `/copy`, through configured submit keys when the current thread is unavailable.
- Keep other drafts and attachments intact, require commands to occupy a single line, and expand collapsed pastes without dispatching them on the same keypress. Disconnected input remains restricted to editing.
- Clear stale review and MCP startup activity and recover prompts awaiting turn start into the retained input queue so recovery commands can proceed.

## Testing

Add composer and app tests for command routing, custom submit bindings, blocked draft preservation, paste expansion, and `/new` and `/clear` creating writable sessions despite stale activity.

GitOrigin-RevId: 2f5589d615276eb50c69490829dc042bba3f12a9
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/2f5589d615276eb50c69490829dc042bba3f12a9 branch from 5e67981 to ef9f3d0 Compare September 19, 2026 01:46
@copyberry
copyberry Bot merged commit ef9f3d0 into main Sep 19, 2026
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/2f5589d615276eb50c69490829dc042bba3f12a9 branch September 19, 2026 01:46
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 19, 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