Repository navigation
fix(session): release a settled approval overlay before delivering - #1520
Conversation
TheGreatAxios
left a comment
There was a problem hiding this comment.
Review · Request changes
Releases the parked overlay abort registration as soon as the operator answers, before the decision is delivered, so a permission prompt raised during that delivery is not pre-aborted.
Findings
0dc8fc95— subjecttest(session): cover prompts raised while an approval decision is deliveredis 75 characters. The cap is 72. Shorten it. The fix subject is 66 and fine; both bodies are empty, which is allowed.
Code check: no defect in the release timing. The controller is aborted at src/session/approval-resume.ts:547 before registerOverlayAbort(undefined) at line 552, and an already-open prompt captured that signal at resolveSuspended, so a timeout still dismisses it. bun test src/session/approval-resume.test.ts src/session/approval-resume-interrupt.test.ts src/tui/runner/session.overlay-abort.test.ts — 106 pass, 0 fail, including the new "not pre-aborted" case and the parked-call timeout case.
a0735f0 to
162692d
Compare
162692d to
c03784d
Compare
TheGreatAxios
left a comment
There was a problem hiding this comment.
Review · Approve
Releases the parked overlay abort registration as soon as the operator answers, before the decision is delivered.
Findings
No findings.
The previous finding was the test subject length. It is now test(session): cover a prompt raised during approval delivery (61 characters). The unique diff against the current #1519 tip is still only src/session/approval-resume.ts and its test. The controller is aborted at src/session/approval-resume.ts:547, then registerOverlayAbort(undefined) runs at line 552, before deliverDecision. The rebase onto 9161a317 did not change that. bun test src/session/approval-resume.test.ts -t "permission prompt raised while the decision is delivered" — 1 pass, 0 fail.
|
Triage: Fail @bwachman, please address the following:
|
…rized-retry-on-the-dispatched-call-so-the fix(permission): key worker grants on the dispatched call
93e7ca0
into
cl-10852-deliver-approvals-for-parked-calls-in-queue-drained-turns
Summary
finally, after delivery resolved.approve_worker_callraises one for the worker's frozen call as soon as its redispatched call starts, so it always failed after the operator approved it.Stacked on #1519; review that first. The diff against its branch is this change only.
Verification
bun run checkandbun run testpass (9235 tests)git status --shortcall was shown and approved afterapprove_worker_call(before this change it was aborted unseen after 0 ms). The full flow completed once fix(permission): key worker grants on the dispatched call #1521 was added on top.Fixes CL-10854
Part of CL-10852