Skip to content

fix(app-server): archiveConversation resolves rollout path by conversationId - #11905

Closed
twentyOne2x wants to merge 1 commit into
openai:mainfrom
twentyOne2x:codex/fix-archive-missing-rollout-path
Closed

twentyOne2x wants to merge 1 commit into
openai:mainfrom
twentyOne2x:codex/fix-archive-missing-rollout-path

Conversation

@twentyOne2x

Copy link
Copy Markdown

Problem

  • Some clients can end up with threads that have a conversationId but no usable rolloutPath (e.g. partial thread creation failures). In that state, archiveConversation fails and the thread cannot be archived from the UI.

Fix

  • Make ArchiveConversationParams.rolloutPath optional (nullable/omittable).
  • In the app-server handler for archiveConversation, fall back to resolving the rollout path from disk via conversationId when rolloutPath is missing or when the provided path fails.
  • Regenerate vendored protocol schema fixtures.

Tests

  • cargo test -p codex-app-server-protocol
  • cargo test -p codex-app-server archive_conversation_without_rollout_path_resolves_by_id

Related

@github-actions

github-actions Bot commented Feb 16, 2026 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@twentyOne2x

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Feb 16, 2026
@twentyOne2x

Copy link
Copy Markdown
Author

recheck

@twentyOne2x

Copy link
Copy Markdown
Author

Context: some clients create threads that end up with missing/null rolloutPath (e.g. thread creation fails partway), which makes v1 archiveConversation unusable and leaves unarchivable “zombie” threads in the UI.

This PR makes rolloutPath optional in ArchiveConversationParams and falls back to resolving the rollout path from disk using conversationId.

Tested:

  • cargo test -p codex-app-server-protocol
  • cargo test -p codex-app-server archive_conversation_without_rollout_path_resolves_by_id

(Also regenerated schema fixtures via cargo run -p codex-app-server-protocol --bin write_schema_fixtures.)

@etraut-openai

Copy link
Copy Markdown
Contributor

We've updated our contribution guidelines to indicate that we're no longer accepting unsolicited code contributions. All code contributions are by invitation only. To read more about why we've taken this step, please refer to this announcement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants