Skip to content

agents: own bridge stream races - #938

Merged
yisding merged 1 commit into
agent/ws26-llama-cleanup-scopefrom
agent/ws26-bridge-stream-race-scopes
Aug 7, 2026
Merged

agents: own bridge stream races#938
yisding merged 1 commit into
agent/ws26-llama-cleanup-scopefrom
agent/ws26-bridge-stream-race-scopes

Conversation

@yisding

@yisding yisding commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • move the Llama and Remote Responses cancel-token/next-item races into short-lived named RuntimeTaskScopes
  • add scoped support for SDK awaitables such as async-generator __anext__() objects while preserving explicit iterator teardown
  • verify stable task names and cancellation cleanup, reduce the raw-task baseline from 20 to 16, and remove Llama's reviewed C901 complexity exception

Test evidence

  • env UV_FROZEN=1 just check — pre-commit passed, mypy passed across 288 source files, 8,593 tests passed and 309 skipped
  • focused runtime and bridge suite — 170 passed, 1 deselected
  • broader credential-free Llama/Responses slice — 188 passed, 2 skipped, 674 deselected
  • complexity, source-inventory, and teardown-budget guards — 19 passed

@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: b0619842-5f4b-4edc-8dee-cfa052628f7f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

@yisding
yisding marked this pull request as ready for review August 7, 2026 02:45
@yisding
yisding force-pushed the agent/ws26-bridge-stream-race-scopes branch from 0abc1ac to da167f0 Compare August 7, 2026 03:20
@yisding
yisding force-pushed the agent/ws26-bridge-stream-race-scopes branch from da167f0 to 5e6e5f9 Compare August 7, 2026 03:49
@yisding
yisding merged commit bc36a53 into agent/ws25-voice-server-listener-scope Aug 7, 2026
5 checks passed
@yisding
yisding deleted the agent/ws26-bridge-stream-race-scopes branch August 7, 2026 04:11
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