Skip to content

fix: compact, self-dismissing notice when insertion cannot be confirmed - #142

Merged
IchenDEV merged 2 commits into
mainfrom
cursor/compact-unconfirmed-notice
Nov 3, 2026
Merged

IchenDEV merged 2 commits into
mainfrom
cursor/compact-unconfirmed-notice

Conversation

@IchenDEV

@IchenDEV IchenDEV commented Nov 3, 2026

Copy link
Copy Markdown
Owner

Outcome

When insertion cannot be confirmed, Utter shows a compact one-row notice that leaves on its own after 8 s, instead of a 96 pt card that stayed until closed. Same facts, same uncertain delivery status. Error notices that need action (models, permissions, clipboard disabled) get the same cleaner layout and still stay until closed.

Origin: the owner reported that the "无法确认是否已写入" popup shows up often, lingers across later work, and looks bad. About 11% of recent dictations end uncertain (ChatGPT 4 of 5, T3 Code 6 of 92), and the notice used to require a manual Close.

Before (origin/main, production message) After (real panel over a white window)
before after

SDLC bundle and risk

  • Bundle: docs/sdlc/changes/2026-11-03-compact-unconfirmed-notice (intent, spec, plan and verification all approved by the owner in chat, 2026-11-03)
  • Risk: medium (UI and dwell behavior). No change to delivery, receipts, history, permissions or privacy.
  • Human decisions still required: none beyond merge; the owner authorized merge after green checks and the v0.0.62 release. The production environment reviewer still has to approve the release deployment.

Verification

  • bash scripts/sdlc-checks.sh (the template's scripts/sdlc.py does not exist in this repo)
  • bash scripts/ci-basic-checks.sh
  • swift test: 631 tests, 26 opt-in skips, 0 failures (evidence/tests-full-suite.txt)
  • Release-style app build: left to the PR SDLC Gate job
  • Real-window light/dark QA: a real OverlayPanel over white and dark windows, plus offscreen renders in zh/en (evidence/). Narrow width: panel width is unchanged (360 pt).
  • Failure paths: error HUDs with recovery actions render and stay until closed. Not run against the live installed app.

Residual risk and rollback

  • The root cause (targets whose text cannot be read back) is untouched; the notice is smaller and self-dismissing, not gone. A follow-up intent is proposed in verification.md.
  • Hover does not pause the 8 s timer; VoiceOver users have 8 s; the notice is reopenable from the menu bar and the text is on the clipboard (paste path) or in History.
  • Four disclosed deviations from the approved spec are listed in verification.md and were approved with it.
  • Rollback: revert the two commits; the previous behavior is the persistent card, no migration.

Reviewer focus

NativeDesktopHost.scheduleHide (a newer session must never be hidden by an older timer) and the height prediction in OverlayAlertMetrics (measured text height must match what SwiftUI lays out; covered by layout tests and zh/en renders).

IchenDEV and others added 2 commits November 3, 2026 16:38
…ot be confirmed

The unconfirmed-insertion HUD stayed on screen until closed and used a fixed 360x96 card with distant buttons. It is now a one-row notice with a title and a quieter detail, Copy and Close beside the text, a darker surface that stays readable on white windows, and it hides itself after 8 s (reopenable from the menu bar). Errors that need action get the same layout and still stay until closed. Delivery, receipts and history are unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@IchenDEV
IchenDEV merged commit 193467f into main Nov 3, 2026
3 checks passed
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.

1 participant