Skip to content

Kanban Moves Cause Workflow Failures #22

Closed

Description

@rougeayrn

Using the Kanban-default view, dragging tasks to change status will cause status changed workflows to fail in a circular structure, never completing the workflow.

20261006_075926.jpg

Could we get this remedied?

Note: Error message generated using a modified auto-start-time-tracking script used to add a tag instead of start time.

Activity

  1. konstantinopolka commented on Nov 10, 2026

    @konstantinopolka

    Confirming this with a root cause on TaskNotes 4.17.0 / TaskNotes Workflows 0.1.4 / Obsidian 1.15.0.

    Repro: edit (or Kanban-move) a task that has been rendered in a Bases view. The metadata trigger fires, task.get returns a TaskInfo whose basesData is a Bases entry that holds app, and the run fails with:

    ExpressionError: Maximum call stack size exceeded
      at ... (expression evaluator)
      at Dl -> tp -> Il -> TS -> runStep
    

    The failure is then masked by the run logger:

    Converting circular structure to JSON
      --> starting at object with constructor 'o'
      | property 'appMenuBarManager' -> object with constructor 'o'
      --- property 'app' closes the circle
    

    Cause:

    1. TaskNotes attaches basesData (with app) to the cached TaskInfo when a task is rendered in a Bases view.
    2. obsidian-bases-expression's fromJs recursively converts every object without cycle detection. Any $expr referencing steps converts the whole steps map, including basesData, and overflows.
    3. runLogService.writeDetail JSON.stringifies the same TaskInfo, so detail logs are lost and the circular notice masks the real error.

    A local fix that works: skip basesData in fromJs/Gt and in the writeDetail serializer. A proper fix could strip non-serializable internal fields from step outputs before they enter the expression context and run log, or add a cycle guard to fromJs. Happy to send a PR.

  2. added a commit that references this issue on Nov 10, 2026
  3. callumalpass commented on Nov 10, 2026

    @callumalpass
    Owner

    Thanks @konstantinopolka, that diagnosis was spot on and saved a lot of digging. This is now fixed in three places:

    All three are already done, so there's no need for a PR, but thank you for offering. Thanks also to @rougeayrn for the report. Updating to TaskNotes Workflows 0.1.5 should fix the Kanban failures.

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