fix: resolve race condition preventing concurrent permission gates fr… - #5550
fix: resolve race condition preventing concurrent permission gates fr…#5550utkarshtyagi-253 wants to merge 1 commit into
Conversation
|
@utkarshtyagi-253 is attempting to deploy a commit to the agenta projects Team on Vercel. A member of the Team first needs to authorize it. |
|
|
|
Hi @utkarshtyagi-253, thanks for opening a pull request. 🙏 This PR was automatically closed because it does not yet meet our contribution requirements:
We ask for this so every change is documented and demonstrably tested before review. How to get it reopened See the Contributing guide and Creating your first PR. If you think this was closed in error, leave a comment and a maintainer will take a look. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Disabled knowledge base sources:
📝 WalkthroughSummary by CodeRabbit
WalkthroughPermission request lifecycle callbacks now identify tool calls entering permission handling. Pause tracking preserves in-flight permission calls during paused-turn settlement and removes them when calls become paused or allowed. ChangesPermission pause flow
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant PermissionGate
participant attachPermissionResponder
participant PendingApprovalPauseController
participant runTurn
PermissionGate->>attachPermissionResponder: send permission request with toolCallId
attachPermissionResponder->>PendingApprovalPauseController: markPermissionRequestStarted(toolCallId)
runTurn->>PendingApprovalPauseController: isInFlightPermission(toolCallId)
PendingApprovalPauseController-->>runTurn: preserve in-flight call
runTurn->>runTurn: settle other open calls as paused
Possibly related PRs
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
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. Comment |
…om rendering
Summary
Testing
Verified locally
Added or updated tests
QA follow-up
Demo
Checklist
Contributor Resources