Skip to content

Live startup fails: taskDrive is assigned without Cordis provide #1120

Closed

Description

@cursor

Written-by: Dev

Environment

Real dsh web host with plugin ds-bot = FlyBot core at a188fa2 (#1115, which closed #1109).

Steps to reproduce

  1. Start dsh web with the FlyBot core plugin at a188fa2.
  2. 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

  1. added
    bugSomething isn't working
    area:automationScheduled tasks and automation
    on Oct 25, 2026
  2. self-assigned this
    on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:automationScheduled tasks and automationbugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions