mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-11 14:10:50 +02:00
The paperclip callback bridge reset the active startup-step store for the whole worker start. That also unparented the awaited queue-directory setup execs, which are startup work and must keep the `bridge.paperclip` step. Move the store reset to the long-lived poll loop inside the worker. The `makeDir` setup now keeps the active step, so its `sandbox.exec` spans stay parented with the correct `criticalPath` flag. The loop still runs with an empty store, so each run-time exec span opens unparented. Add a regression test that reads the active step during setup and during the first poll, and proves the boundary sits at the loop, not the whole worker. Co-authored-by: Paperclip <noreply@paperclip.ing>