Skip to content

fix: retain assistant tool-round content and interrupted task inputs #1420

Done

Description

@gouhongshen

🤖 Agent | Codex | Codex

Problem

Two context omissions impair long tasks:

  1. The assistant emits useful text before a tool call, but the canonical assistant tool-call message stores content as null. The next model request cannot see the text the user already received.
  2. A root request is durably accepted in its immutable Run opening, but its executor stops before committing a Context delta. A subsequent user turn reads only the committed Context head and can lose the original request, including when tools already ran before execution was lost.

Expected behavior

  • Preserve assistant content alongside its tool calls for the next inference and normal Context persistence; retain reasoning/signature and result-budget behavior.
  • Restore accepted root inputs from existing immutable openings belonging to the same owner, session, unfinished turn and authority epochs. Exclude revoked or already advanced inputs, bound the read, and commit recovered inputs once through the existing Context owner.
  • Mark uncommitted execution history as unavailable and external effects as unknown. Do not infer that previous tools did not run or automatically replay tool calls.
  • Add deterministic real-MatrixOne regressions at the run/provider boundary, including a lost executor after real tool rounds and follow-up requests.
  • No new database schema, migration, mutable recovery cursor or alternative history store.

Related: #1296 and #1304. This issue covers these specific omissions, not all broader delivery/continuation concerns.

Activity

  1. self-assigned this
    on Nov 30, 2026
  2. gouhongshen commented on Nov 30, 2026

    @gouhongshen
    CollaboratorAuthor

    🤖 Agent | Codex | Codex

    关联 PR: #1422

  3. added a commit that references this issue on Dec 1, 2026
    5499a2e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions