Skip to content

Evaluate upstream runtime stack #649-#653 - #16

Draft
bruno320x wants to merge 8 commits into
integration/upstream-prsfrom
incoming/upstream-runtime-stack-649-653
Draft

bruno320x wants to merge 8 commits into
integration/upstream-prsfrom
incoming/upstream-runtime-stack-649-653

Conversation

@bruno320x

Copy link
Copy Markdown
Owner

Compatibility PR for the complete stacked runtime series spacedriveapp#649→spacedriveapp#650→spacedriveapp#651→spacedriveapp#652→spacedriveapp#653. This branch is a preserved snapshot of upstream HEAD b8bf034. It is not intended for blind merge if conflicts exist; it provides a stable review/diff target for the semantic port into integration/upstream-prs.

- SpawnWorkerTool now loads the full task record, comments, revisions, and
  attempt history and injects it into worker prompts, with a new
  task_context_number for read-only reference spawns that don't claim the task
- Task binding now checks the task's revision to avoid racing a spawn against
  a concurrent task edit
- OpenCode session creation and part updates now flow into ApiState so the
  frontend gets live transcript and session events
- README rewrite pitching the "multi-threaded" positioning; new local-whisper
  design doc
Route now resolves a registry miss against durable state instead of
reporting everything as not found. A terminal worker returns its outcome,
a nonterminal row without live controls returns unavailable, and only an
unknown ID is an error.

Cancellation carries a reason again. The cancel watch channel holds
Option<Arc<str>> rather than bool, so the supervisor records the
requester's wording on the terminal outcome.

Worker tool calls are counted by the hook against the registry entry.
Counting them in the API event forwarder made a control-plane value
depend on a lossy broadcast subscriber.

Channel status carries runtime_state and routable from the registry, so a
page load after a worker goes idle stops rendering it as running.

Also drops the unused release_worker_admission, replaces the
system/cortex admission scope strings with one constant, and returns a
typed ChannelDeletion instead of matching on an error string.
@coderabbitai

coderabbitai Bot commented Sep 15, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

github-actions Bot added a commit that referenced this pull request Sep 15, 2026

This branch has not been deployed

No deployments
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.

2 participants