Skip to content

fix: timeout and failure lose run results/state #917

Closed

Description

@EVWorth

Gaps that remain once #916 merges:

  1. A timeout loses completed results. When a script hits the query timeout, execute_query returns timeout_error without a statement index, so the results of the statements that already finished are dropped. feat: report completed results and transaction state #916 keeps them on a normal failure (QueryError.completedResults) but not on a timeout. Fix: carry the index and the completed results on the timeout path too.
  2. A failed run doesn't report transaction state. transaction is set only on a successful run's last result, so after a failure the frontend still guesses from the SQL. Fix: run the same probe after a failed run on a session and add transaction to QueryError. This costs one round trip on the error path.
  3. The mock's new fields have no tests. src/dev/mock/handlers/query.ts emits completedResults and transaction, but no test covers either.
  4. The docs describe db-down wrongly. .claude/skills/integration-tests/SKILL.md:58, docs/design/TESTING_STRATEGY.md:144 and CONTRIBUTING.md:102 say just db-down stops the containers. It removes them, and after fix: just db-down leaks the containers' data volumes #914 their data volumes too.

Activity

  1. added
    bug
    on Oct 29, 2026
  2. added 3 commits that reference this issue on Oct 30, 2026
    3f6a64a
    9c15c40
    fd6fd7a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions