Repository navigation
fix: cancel queued messages and preserve question answers - #88
Merged
Merged
Conversation
Contributor
|
I noticed this issue too! Impressive PR. I'm telling you, you could join the OMP dev team. Would have made this PR smaller :) |
Collaborator
Author
|
@noor-latif I do have a few PRs open to bring the required changes to OMP too :) |
Collaborator
Author
|
@noor-latif and part of the reason this PR looks so big is because it is technically stacked on top of #67. Let me make that explicit :) |
andrebrait
force-pushed
the
fix/queue-dialog-upstream
branch
from
September 21, 2026 17:23
caab8ae to
664df5e
Compare
andrebrait
force-pushed
the
fix/queue-dialog-upstream
branch
4 times, most recently
from
September 29, 2026 02:48
2d0f0ad to
16ea0cb
Compare
Rebased onto current upstream main (dictation/tts rewrite of the session hook): - cancel queued messages through OMP's native remove_queued_message before removing chips or recalling drafts; graceful fallback on unsupported runtimes - preserve question-dialog answers and selections across SSE replays - retain drafts and bound queue-mutation waits across remounts - promote-aware queue consumption shared with the queued follow-up flow
andrebrait
force-pushed
the
fix/queue-dialog-upstream
branch
from
October 1, 2026 00:10
16ea0cb to
7300a3d
Compare
andrebrait
marked this pull request as ready for review
October 1, 2026 14:58
kahme247
approved these changes
Oct 1, 2026
kahme247
added a commit
that referenced
this pull request
Oct 1, 2026
…erge Resolving #171 against #88 kept #88's hardened respondToExtensionUi (timer only on success, error notice) but dropped #171's locallyAnsweredDialogRef assignment, so the synchronized-cancel guard could never match and the answering tab lost its 250ms hand-off window. Set the ref before awaiting and clear it in the hand-off timer.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
promote_queued_message(absorbs the closed fix: promote queued follow-ups through native RPC #67): ref-serialized queue updates, delivery-before-acknowledgement bookkeeping and the StrictMode alive-state correction.Contributor's reported symptoms:
The contributor also reported intermittent clearing of the question dialog's free-text answer. The cause was a reset effect keyed to request-object identity rather than question ID.
Native prerequisites
Both native RPC prerequisites are in official OMP releases:
Native Delete cannot safely follow a cosmetic-only Steer label because that would address the wrong backend queue, so promotion and cancellation ship together here. This does not introduce unrelated layout, provider, selection or integration patches.
Unsupported runtimes report an error and keep the queue item. There is no abort/resend fallback.
Verification
Copilot/CodeRabbit review requests are routed only to companion PRs in our forks, not to this upstream PR.
Companion automated-review PR (Copilot/CodeRabbit run only in our fork): https://github.com/andrebrait/ompweb/pull/21
Promotion acknowledgement correction
Successful native promotions now update the session-scoped persisted mirror even after unmount/navigation. Shared pending ownership also protects a remounted delivery-before-ACK case from promoting the next duplicate. The remount, observer, subsequent Delete, duplicate, and unobserved-session regressions failed before this correction and pass afterward. Both feature variants pass 41 focused hook/composer/dialog tests; the refreshed clean deployment passed 682 tests with one existing skip. All README feature descriptions now match native cancellation semantics.
Final review corrections
finallytimer dismissed a question after a rejected response. It now dismisses only after success, preserving the pending question and answer for retry. The original periodic while-typing issue was same-ID SSE replay, not this timer.Verification: 58 focused hook/composer/dialog/draft/real-RpcProcess tests pass, plus TypeScript and ESLint, in both the upstream port and integration feature. The test-renderer migration nit remains with existing upstream #85 rather than adding a second test framework in this fix.