Skip to content

fix(lang): forward observe through the worker bridge - #2252

Merged
davidfarah2003 merged 1 commit into
Cotal-AI:mainfrom
drakeo338:claude/2239-fix
Sep 29, 2026
Merged

davidfarah2003 merged 1 commit into
Cotal-AI:mainfrom
drakeo338:claude/2239-fix

Conversation

@drakeo338

Copy link
Copy Markdown
Contributor

Fixes #2239.

The worker bridge only forwarded a fixed list of effect handler methods, and observe was not on it. A waitUntil run hosted by a manager therefore failed with "host.options.handler.observe is not a function". This adds observe to the forwarded list, with a smoke check that fails without the fix, and a patch changeset for @cotal-ai/lang.

Checked on the committed HEAD: pnpm build:emit passes and the lang smoke run passes (42 of 42; the two new checks fail against the previous bridge.ts).

The bridge forwards only the handler methods listed in METHODS, and
observe was missing. A run hosted by a manager goes through the bridge,
so a waitUntil failed on its first observation with L4000
"host.options.handler.observe is not a function". The walker cells and
the in-process differential suite never cross the bridge, so nothing
caught it.

Adds observe to METHODS; the worker-side proxy and the host-side
dispatch guard both derive from it. Adds a smoke cell that runs a
waitUntil program through runInWorker with a bridged handler, and a
patch changeset for @cotal-ai/lang.

Fixes Cotal-AI#2239.
@davidfarah2003
davidfarah2003 merged commit 4229e53 into Cotal-AI:main Sep 29, 2026
21 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lang: waitUntil fails on every hosted run, because the engine bridge does not forward observe

2 participants