Skip to content

fix: queue busy bot delegations - #5

Draft
lightcloud00 wants to merge 1 commit into
mainfrom
codex/fix-busy-delegations-1330-20260825
Draft

fix: queue busy bot delegations#5
lightcloud00 wants to merge 1 commit into
mainfrom
codex/fix-busy-delegations-1330-20260825

Conversation

@lightcloud00

Copy link
Copy Markdown
Owner

Refs lightcloud00/claudecode-workspace#1330

What changed

  • give each delegation a stable SHA-256 task ID and deduplicate repeated pending requests
  • persist busy-target lifecycle state, bounded retry attempts, age limits, and machine-readable terminal reasons
  • drain eligible work from turn.completed events without polling or weakening the one-hop and peer-approval guards
  • record queue, completion, and failure transitions in the existing decision ledger without prompt or provider-output content
  • preserve queued work across restart and retain the existing channel-visible success and failure record

Why

A temporarily busy bot previously caused a valid handoff to be canceled. The new lifecycle keeps exactly one durable task, retries only from completion events, and reports whether it is queued, completed, or permanently failed.

How it was verified

  • pnpm typecheck passed under Node 26.4.0
  • pnpm test passed: 1,693 tests counted (1,680 passed, 13 skipped), above the 1,070 floor
  • broker, updater, desktop-viewer, packaged-server, and all eight packaged proxy-path checks passed
  • focused delegation, agents-proxy, and comms suites passed: 54 tests
  • git diff --check passed

Screenshots (UI changes)

Not applicable; this changes server orchestration and audit behavior only.

Checklist

  • pnpm typecheck and pnpm test pass locally
  • Server behavior changes come with tests
  • No dist-server/ edits
  • No platform-specific shell construction added
  • No secrets in logs, responses, events, or argv

This PR remains a draft and does not activate or release an installed app.

@coderabbitai

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.

Sign up for freeto 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

@lightcloud00