Skip to content

fix(agents): honor deadlines for queued completions - #2659

Open
rudycelekli wants to merge 2 commits into
debpalash:mainfrom
rudycelekli:fix/agent-completion-queue-deadlines-20261006
Open

rudycelekli wants to merge 2 commits into
debpalash:mainfrom
rudycelekli:fix/agent-completion-queue-deadlines-20261006

Conversation

@rudycelekli

@rudycelekli rudycelekli commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

CLI completions are serialized behind the active runner. A queued HTTP request can remain waiting beyond its own timeout while an earlier completion is still active. HTTP waiting should respect each request deadline while the real task retains its place in the serial runner queue, preventing overlapping CLI execution.

Closes #2658.

Changes

  • Apply each HTTP deadline while retaining the real completion task on the serial runner tail.
  • Synchronize relevant documentation and add a quiet credited Unreleased changelog entry.
  • No new UI strings or locale keys; maintained version files are unchanged.

Type

  • 🐛 Bug fix
  • ✨ New feature
  • ♻️ Refactor
  • 📝 Documentation
  • 🧪 Tests
  • 🔧 CI / Build
  • 🚀 Release prep

Testing

  • Hosted CI audit at 2026-10-06T12:35:20.584679+00:00: no failing latest checks; required CLA passes. Some checks remain pending; no all-green claim.

  • Owned loopback HTTP/deferred callback regression: 1 failed and 4 passed before; all 5 pass after. No real CLI/provider completion requests.

  • git diff --check and the repository changelog style gate pass.

  • Focused JavaScript tests used Node 24.19.0 and a reused Vitest 5.0.1 runtime; this repository pins Vitest 4.1.11. No full build qualification is claimed.

  • Full backend suites and bun run check:electron were not run locally. The human CLA signature is registered and the required CLA status passes; hosted results are reported separately below.

  • Additional queue-start regression uses the real native HTTP server request/body-end handshake: public code returns 502 before the fix; all 6 bridge tests pass after consistent 504 classification.

Checklist

  • I've tested this locally
  • Every commit author has signed the CLA (the CLA check tells you how)
  • I've updated relevant documentation (if applicable)
  • No local machine paths, logs, or personal env details in this PR
  • Maintained version files are in sync (if an owner-requested bump): root package.json, pyproject.toml, backend/core/version.py, and lockfiles
  • If this PR changes runtime behavior, the regression fixture at tests/fixtures/omnivoice_data/ still loads green on the smoke-matrix CI job (macOS + Windows + Linux)

Release cadence

VoiceStudio ships continuous-to-main — no release candidates, no soak windows.
Every merged PR is immediately part of rolling source (main) and Docker
:latest. Electron artifact rehearsals validate desktop packages without publishing.
Version bumps require owner approval; validated releases are tagged from main
and published explicitly under the release checklist.
Users who want stability install an Electron release or pin Docker :stable.

Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 17 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: debpalash/VoiceStudio/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f2280283-3580-461d-b4c5-5554b50244ef
📥 Commits

Reviewing files that changed from the base of the PR and between 286f46b and d303a81.

📒 Files selected for processing (4)
  • CHANGELOG.md
  • docs/electron-repair.md
  • electron/src/main/llm-agent-bridge.test.ts
  • electron/src/main/llm-agent-bridge.ts
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@greptile-apps

greptile-apps Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Retrigger

[Medium risk] Changes how the agent bridge handles request timeouts.

The PR appears safe to merge based on the reviewed changes.

Summary

The PR makes queued agent completions respect their HTTP deadlines without starting overlapping CLI calls. The latest change classifies requests with too little time left to start as HTTP 504 and adds a native HTTP regression test.

Reviews (2) · Last reviewed commit: "fix(agents): classify queued start expir..."

Comment thread electron/src/main/llm-agent-bridge.ts
@github-actions

github-actions Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

All contributors on this pull request have signed the VoiceStudio CLA. Thank you!

Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
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.

Queued completion HTTP requests outlive their own deadline

1 participant