Skip to content

fix: confirm queued message deletion - #69

Merged
kahme247 merged 1 commit into
ompweb-dev:mainfrom
andrebrait:fix/confirm-queued-deletion
Sep 10, 2026
Merged

kahme247 merged 1 commit into
ompweb-dev:mainfrom
andrebrait:fix/confirm-queued-deletion

Conversation

@andrebrait

Copy link
Copy Markdown
Collaborator

Summary

Deleting a queued follow-up or steered message currently removes its text immediately. Add the existing shared destructive confirmation dialog to both the compact single-message row and expanded queue list.

  • Preview the exact message before deletion. Cancel, Escape, outside dismissal, and the initially focused Cancel button preserve it.
  • Require explicit Delete; invalidate the pending confirmation if the queue changes or the conversation switches.
  • Translate the confirmation into English, Japanese, and Simplified Chinese and document the behavior.
  • Preserve the existing local-only removal semantics: this removes the web queue entry, not delivery already queued inside OMP. The dialog makes that limitation explicit. Edit, Steer, and RPC behavior are unchanged.

Verification

  • Actual ChatInput and shared ConfirmDialog exercised in an isolated temporary Next.js route with a controlled queue fixture, without contacting live OMP sessions. Chromium mobile/touch emulation at 390×844 and desktop at 1280×900; not a physical-phone test.
  • Single follow-up and steer deletion: cancel/dismiss preserve exact text; confirmed deletion removes the selected message. Expanded mixed queue: Cancel preserves the follow-up and confirmed Delete removes the steer only. Enter initially cancels. Queue consumption and conversation switch invalidate pending confirmation. No page errors; mobile dialog fits the viewport.
  • npm run release:check passed: typecheck, lint, 624 tests passed / 1 platform-specific skip, production build. No assertions removed or thresholds lowered; no source-text/mock-echo tests added for interactive behavior.
  • One condensed adversarial review covered contract, correctness/hostile input, test honesty, and over-engineering. Its nullable snapshot type finding was fixed and the full release gates passed afterward.
  • Temporary route, generated development fixture types, isolated state directory, and smoke runtime removed.

Scope

No deployment or installed-package changes. This does not add native queue cancellation or deleted-message history.

@andrebrait

Copy link
Copy Markdown
Collaborator Author

Fork Windows and Linux CI passed for d02bc3b: https://github.com/andrebrait/ompweb/actions/runs/34483498187 . Upstream Actions still require maintainer approval. Copilot and CodeRabbit reviews were requested on the CI mirror: https://github.com/andrebrait/ompweb/pull/8 . No deployment or installed-package changes.

@andrebrait

Copy link
Copy Markdown
Collaborator Author

Final verification for d02bc3b: Windows/Linux CI passed (https://github.com/andrebrait/ompweb/actions/runs/34483498187). The condensed adversarial review is complete and its nullable type finding was fixed before final gates. CodeRabbit completed its review of all seven files and found no actionable issues: https://github.com/andrebrait/ompweb/pull/8#issuecomment-5619544822 . Copilot's automated-test request was answered with actual Chromium interaction evidence rather than source/wiring assertions; its separate span-inside-p finding was disproven against the HTML content model and a direct Chromium parser experiment. Responses are in the mirror's review threads: https://github.com/andrebrait/ompweb/pull/8 . Browser verification covers both message kinds and queue layouts, cancellation, safe initial Enter, explicit confirmation, and stale-target invalidation. Upstream CI still needs maintainer approval. Nothing deployed or installed.

@kahme247
kahme247 merged commit 759e183 into ompweb-dev:main Sep 10, 2026
@andrebrait
andrebrait deleted the fix/confirm-queued-deletion branch September 14, 2026 06:37
Sign up for free to 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.

2 participants