Skip to content

fix: preserve cancelled run terminal events - #445

Merged
SaladDay merged 1 commit into
mainfrom
codex/bug038-cancel-terminal-events
Sep 10, 2026
Merged

fix: preserve cancelled run terminal events#445
SaladDay merged 1 commit into
mainfrom
codex/bug038-cancel-terminal-events

Conversation

@SaladDay

Copy link
Copy Markdown
Collaborator

A cancelled run could later record run.failed or run.completed when its connector finished, leaving contradictory lifecycle history. Ignore those late terminal records once cancellation is persisted, and serialize the status check with cancellation. Diagnostic events and existing history remain available.

Scope: run event persistence only. No API, streaming, retry, or authorization changes.

Validation: make sqlc-generate, make check, and isolated PostgreSQL regression tests for both terminal event types, active/cancelled runs, preserved diagnostics and sequence numbers, unknown runs, and concurrent status-update locking. A fresh independent review found no actionable issues. Local Docker remained stopped; database tests used a separate remote test database.

@SaladDay
SaladDay merged commit a16db06 into main Sep 10, 2026
13 checks passed
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.

1 participant