Skip to content

[codex] Make context stream Send#28

Merged
senamakel merged 1 commit into
mainfrom
openhuman/send-stream-context
Jul 5, 2026
Merged

[codex] Make context stream Send#28
senamakel merged 1 commit into
mainfrom
openhuman/send-stream-context

Conversation

@senamakel

Copy link
Copy Markdown
Member

Summary

  • make invoke_stream / invoke_stream_in_context return Send streams
  • box the internal drive future as Send
  • add a compile-time regression test for the context stream

Why

OpenHuman drives agent turns inside tokio::spawn and other Send future boundaries. The v1.7.0 context stream API preserved caller context but returned a non-Send stream, blocking the host cutover.

Validation

  • cargo fmt --check
  • timeout 180s cargo clippy --all-targets -- -D warnings
  • timeout 120s cargo test invoke_stream_in_context_stream_is_send
  • timeout 120s cargo test invoke_stream_in_context_unsubscribes_channel_listener

@coderabbitai

coderabbitai Bot commented Jul 5, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 19 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 08855a73-9a2a-4c0e-97b6-544d2f33b1ab

📥 Commits

Reviewing files that changed from the base of the PR and between e2b93c8 and c4351a2.

📒 Files selected for processing (2)
  • src/harness/agent_loop/stream.rs
  • src/harness/agent_loop/test.rs

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

@senamakel senamakel merged commit c74dc64 into main Jul 5, 2026
3 checks passed
@senamakel senamakel deleted the openhuman/send-stream-context branch July 5, 2026 04:15
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.

1 participant