Skip to content

[Bug]: Regression of #3742: Codex thread/resume rejects persisted subagent activity kind #8322

Description

@kevvykevwin

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Open an existing Codex-backed thread in T3 Code Alpha.
  2. Restart T3 Code.
  3. Reopen the same thread and send another message.
  4. Retry after the first failure.

The affected thread is:
2d62072c-8127-4986-b3e6-d1f3b3b77608

Expected behavior

T3 Code resumes the persisted Codex thread and starts the next turn. If an older persisted item is incompatible, T3 Code should migrate it or provide a recovery path that preserves the conversation.

Actual behavior

Every attempt to continue this thread fails before the turn begins. Restarting T3 Code does not repair the thread. A newly created thread works, but the affected conversation cannot be continued. This appears to be a regression or narrower variant of #3742. That issue rejected the entire subAgentActivity item and was closed after PR #3036 regenerated the Codex schema. This failure reaches the nested kind field and rejects its persisted value.

Impact

Blocks work completely

Version or commit

T3 Code Alpha: 0.0.34 (bundle version 0.0.34)

Environment

macOS 26.5.1 (25F80) T3 Code Alpha 0.0.34 Codex CLI 0.150.0 Provider: Codex Runtime mode: full access

Logs or stack traces

ProviderAdapterProcessError: Provider adapter process error (codex) for thread 2d62072c-8127-4986-b3e6-d1f3b3b77608: Invalid payload for method 'thread/resume' during 'decode-payload'

Caused by:

SchemaError: Expected "started" | "interacted" | "interrupted"
  at ["thread"]["turns"][0]["items"][18]["kind"]

Three failed startSession attempts used the persisted resume cursor:

2026-08-26 15:32:05 MDT — trace 33495ffcf98222ea04b186ea3fef3fec
2026-08-26 15:32:28 MDT — trace ef3d3615247f735b116ab1abc0381775
2026-08-26 15:35:14 MDT — trace a30a45e45edd5fa509aa4475312551c6

provider.resume_cursor.source=persisted
provider.resume_cursor.present=true

Screenshots, recordings, or supporting files

Screenshot 2026-08-26 at 15.49.25.png
Screenshot 2026-08-26 at 15.49.33.png

Workaround

Create a new thread in the same project and manually provide a handoff summary. Restarting the application alone does not recover the affected thread.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaving incorrectly.needs-triageIssue needs maintainer review and initial categorization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions