# @cursor/sdk local runtime: /goal creates an ACTIVE goal, but the run ends instead of continuing (CLI continues)

**URL:** <https://forum.cursor.com/t/cursor-sdk-local-runtime-goal-creates-an-active-goal-but-the-run-ends-instead-of-continuing-cli-continues/178961>\
**Category:** Bug Reports\
**Tags:** cursor-sdk, long-running-agents, cli\
**Created:** [November 21, 2026, 3:48pm UTC](https://forum.cursor.com/t/cursor-sdk-local-runtime-goal-creates-an-active-goal-but-the-run-ends-instead-of-continuing-cli-continues/178961 "2026-11-21T15:48:25Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [November 23, 2026, 10:02pm UTC](https://forum.cursor.com/t/cursor-sdk-local-runtime-goal-creates-an-active-goal-but-the-run-ends-instead-of-continuing-cli-continues/178961/12 "2026-11-23T22:02:14Z")

</div>

Hey @svecherenko_yieldmo,

A fix for local SDK runs ending with the `/goal` still active has landed and will be included in an upcoming release of `@cursor/sdk`. With it, when a local run finishes a turn and the goal is still active, the SDK starts the next turn on its own (the same way the CLI does) and keeps going until the goal is complete or paused.

Until that release is out, the `agent.send("Continue the active goal")` loop is still the way to go. Once a version newer than 1.4.2 is available, it’s worth updating and running your repro again. Goal events in `run.stream()` aren’t part of this change.

Let me know if the goal still stalls after updating.

---

_[View the full topic](https://forum.cursor.com/t/cursor-sdk-local-runtime-goal-creates-an-active-goal-but-the-run-ends-instead-of-continuing-cli-continues/178961)._
