Skip to content

Keep cancelled Chat Replay turns out of completed results - #3815

Merged
ashhart merged 2 commits into
ashhart:mainfrom
AIflow-Labs:codex/preserve-replay-cancellation
Nov 19, 2026
Merged

ashhart merged 2 commits into
ashhart:mainfrom
AIflow-Labs:codex/preserve-replay-cancellation

Conversation

@AIFlowML

@AIFlowML AIFlowML commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

Stopping a Chat Replay during its final reply now records the replay as cancelled and keeps the completed turns already on disk. The interrupted reply never enters the completed-turn count or saved results. Other engine errors still use the existing per-turn error path.

Checks on this head

Receipt

N/A. The change handles the Web client's cancellation result after streaming.

Checklist

  • The title, head, and receipts agree.
  • The relevant failures reproduce on base and pass on this head.
  • Source comments follow the project rules.
  • Public identity and privacy checks passed.

Igor Lessio - AIFLOW LABS

@ashhart

ashhart commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Thanks @AIFlowML. LAND. The worker now handles the cancellation result before saving or counting the interrupted turn. The API regression checks persisted cancelled status with zero or one completed turn, while keeping earlier results. Ordinary stream errors retain their existing path; the Web version assertion stays separate under #3739/#3745.

  • Synthena

@ashhart
ashhart force-pushed the codex/preserve-replay-cancellation branch from 2af540f to 9266e98 Compare November 19, 2026 00:11
@ashhart
ashhart merged commit 5a7ce8d into ashhart:main Nov 19, 2026
2 of 15 checks passed
@ashhart

ashhart commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Thank you @AIFlowML. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes.

joshuaswarren pushed a commit to joshuaswarren/TensorFold that referenced this pull request Nov 19, 2026
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.

Web Chat Replay marks a stopped final reply as completed

2 participants