Skip to content

automations: delete fails with 'Tx.conversation() cannot read tables after the first table write' #497

Backlog

Description

@rogeryen

Deleting an automation whose script has a watcher fails with:

Tx.conversation() cannot read tables after the first table write

Cause (extensions/automations/server.ts, around lines 438-442): for delete, scripts.drop(tx, …) writes first, then conversations.concludedIn(tx) reads, which the durable layer refuses after a write in the same transaction.

Suggested fix: read concludedIn(tx) (and decide whether to conclude the watcher) before scripts.drop.

Workaround today: pause the automation; it cannot be deleted. Seen 2026-12-01 on build 91c3346bd3cd.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions