You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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:
TaskNotes attaches basesData (with app) to the cached TaskInfo when a task is rendered in a Bases view.
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.
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.
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.
Activity
konstantinopolka commentedon Nov 10, 2026
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.getreturns aTaskInfowhosebasesDatais a Bases entry that holdsapp, and the run fails with:The failure is then masked by the run logger:
Cause:
basesData(withapp) to the cached TaskInfo when a task is rendered in a Bases view.obsidian-bases-expression'sfromJsrecursively converts every object without cycle detection. Any$exprreferencingstepsconverts the whole steps map, includingbasesData, and overflows.runLogService.writeDetailJSON.stringifies the same TaskInfo, so detail logs are lost and the circular notice masks the real error.A local fix that works: skip
basesDatainfromJs/Gtand in thewriteDetailserializer. 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 tofromJs. Happy to send a PR.Merge pull request #23 from callumalpass/fix/22-circular-step-output
callumalpass commentedon Nov 10, 2026
Thanks @konstantinopolka, that diagnosis was spot on and saved a lot of digging. This is now fixed in three places:
basesData.fromJsgets a cycle guard as an extra safeguard.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.