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
{{ message }}
Repository navigation
Live startup fails: taskDrive is assigned without Cordis provide #1120
Real dsh web host with plugin ds-bot = FlyBot core at a188fa2 (#1115, which closed #1109).
Steps to reproduce
Start dsh web with the FlyBot core plugin at a188fa2.
Wait for the Main Bot setup.
Actual
Startup throws before any Bot loads:
bot (ds-bot): Error: cannot set property "taskDrive" without provide
at Module.install (.../core/src/host/task-drive.js:224)
at createRuntime (.../core/index.js:95)
The UI stays on "Setting up your Main Bot…". core/test/task-drive.test.js still passes because the test context allows a plain assignment.
Expected
The host finishes activating. taskDrive is registered with Cordis provide (the same path as flybot: ctx.provide, then ctx.reflect.provide, then ctx.set, then a plain property). Tests can still read ctx.taskDrive.settled(), .consider(), and set .now.
Where it sits
core/src/host/task-drive.js ends with ctx.taskDrive = { now, settled, consider }. Cordis 4's context proxy throws on that write once the plugin fiber is active. provideFlyBot in core/index.js already handles this for flybot.
Suggested direction
Register the handle with provide instead of removing the test API.
Claim: branch cursor/task-drive-provide-deab. This unblocks live use of #1115 / #1109.
Activity