Repository navigation
Conversation
…ialogs ompweb-dev#461 marks a running session as awaitingInput while its wrapper holds a pending dialog and broadcasts from forgetPendingUiRequest. The other removal path, clearPendingUiRequests (reload, destroy), dropped every pending dialog without broadcasting. destroy and a successful reload broadcast afterwards, but a reload whose replacement spawn fails threw past its final notifyRunningChange, so the sidebar kept the session running and waiting on a dialog that no longer exists until some unrelated change. clearPendingUiRequests now broadcasts when it drops anything, like forgetPendingUiRequest. Also covers the two settlement paths raised in review of ompweb-dev#319: a host resync that clears dialogs before a get_state reconcile that then fails, and a dialog found expired when replayed to a new tab. Both already clear through forgetPendingUiRequest; the tests fail if that broadcast is removed, which the existing answer-path test does not catch. Supersedes ompweb-dev#319, whose sidebar marking predates the host/daemon architecture and was replaced by ompweb-dev#461.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code Review Roast 🔥Verdict: No Issues Found | Recommendation: Merge Oh wait, this PR is actually clean. I need to sit down. I had my flamethrower warmed up and everything. 📊 Overall: Like finding a unicorn in production — I didn't think clean PRs existed anymore, but here we are. Files Reviewed (4 files)
Reviewed by free · Input: 19.2K · Output: 1.2K · Cached: 95.2K |
|
Hi @OrwellVII, thank you for your contribution, and apologies for the long wait on this PR. We really appreciate the time and effort you have put into it. We are working through a major refactor of ompweb, including switching to our own build of omp. We are close to finishing that work; once the refactor is complete, we will turn our attention back to the pending PRs, including this one. Thank you for your patience and for helping improve ompweb! |
|
Hi, thanks for this PR. It currently conflicts with main and can't be merged as-is — please rebase it onto current main and resolve the conflicts. Once it's rebased I'll re-run the checks. This is rebase-only: a 3-line fix. Note it overlaps #444 on |
|
Superseded by #564, a rebased replacement of this PR. On rebase against current Closing this PR in favor of #564. |
…ialogs (rebased from ompweb-dev#482)
…11-23 fix(rpc): clear the awaiting-input mark when a reload drops pending dialogs (rebased from ompweb-dev#482)
Why
#461 marks a running session as waiting for input while its wrapper holds a pending dialog, and clears the mark by broadcasting from
forgetPendingUiRequest. The bulk path,clearPendingUiRequests(reload, destroy), drops every pending dialog without broadcasting. Destroy and a successful reload broadcast afterwards, but a reload whose new omp process fails to start throws before its finalnotifyRunningChange, so every open sidebar keeps the session marked as waiting on a dialog that no longer exists until some unrelated running change.What changed
clearPendingUiRequestsbroadcasts a running change when it drops at least one dialog, likeforgetPendingUiRequest.lib/rpc-manager.test.mjs:main);get_stateread fails, and a dialog found expired when replayed to a new tab, both clear the mark. These pass onmain; they fail if the broadcast inforgetPendingUiRequestis removed, which the existing answer-path test does not catch (raised in the review of feat(sidebar): show sessions waiting for your answer #319).CHANGELOG.md(extends feat(sidebar): mark sessions waiting for user input #461's entry) and oneAGENTS.mdline: a new path that drops dialogs must go through one of the two removal functions.Verification
npm test4110 pass, 36 skip, 0 fail;tscclean; lint 0 errors;npm run buildok. Onmainthe reload test fails withthe sidebar is told, not left waiting on a dialog nobody can answer.Not changed (for the maintainers)
open_urlUI requests also count as pending, so a session that sent one shows the waiting icon although the web app never answers that request (the browser just opens the tab); it clears when omp cancels it or exits. This is from reading the code, not a live reproduction. I left feat(sidebar): mark sessions waiting for user input #461's semantics alone; happy to send a follow-up if you wantopen_urlexcluded.Supersedes #319.
Summary by CodeRabbit