fix: stop the desktop reopening apps on every refresh - #180
Conversation
The ui:pending-action open_app handoff was never cleared: the desktop
sent { key, delete: true } but the KV route's delete contract is
{ delete: "<key>" }, so the request 400'd and the action persisted,
reopening the app on every reload regardless of the window being closed.
Send the correct { delete: "<key>" } shape so consumed actions are
actually removed.
Also restore persisted windows minimized to the taskbar instead of
popping them open over a fresh desktop on each reload/reboot.
|
Warning Review limit reached
More reviews will be available in 58 minutes and 52 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. β How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. π¦ How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. βΉοΈ Review infoβοΈ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: π Files selected for processing (1)
β¨ Finishing Touchesπ§ͺ Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Problem
Refreshing the desktop reopened apps you'd already closed β e.g. a custom webapp window popping back up on every reload.
Cause
The
ui:pending-actionopen_apphandoff was never cleared. The KV route's delete contract is{ delete: "<key>" }, but the desktop sent{ key, delete: true }β that 400s, so the action stayed in KV and re-fired on every load, regardless of the window being closed. (β.catch(() => {})hid the failure.)Fix
{ delete: "<key>" }shape so a consumed pending-action is actually removed.Verified on the device β closed apps stay closed across refresh.