Skip to content

fix: stop the desktop reopening apps on every refresh - #180

Merged
KrasimirKralev merged 1 commit into
betafrom
fix/restore-windows-minimized
Jun 9, 2026
Merged

KrasimirKralev merged 1 commit into
betafrom
fix/restore-windows-minimized

Conversation

@KrasimirKralev

Copy link
Copy Markdown
Contributor

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-action open_app handoff 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

  • Send the correct { delete: "<key>" } shape so a consumed pending-action is actually removed.
  • Restore persisted windows minimized to the taskbar instead of popping them open over a fresh desktop on each reload/reboot (chosen behavior).

Verified on the device β€” closed apps stay closed across refresh.

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.
@KrasimirKralev
KrasimirKralev requested a review from a team as a code owner June 9, 2026 08:58
@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@KrasimirKralev, we couldn't start this review because you've reached your PR review rate limit.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: b5e11a73-aa75-4667-8659-1d48e9f73aa5

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between 7f57229 and c9f22c9.

πŸ“’ Files selected for processing (1)
  • src/app/page.tsx
✨ Finishing Touches
πŸ§ͺ Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/restore-windows-minimized

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.

❀️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

CI Summary

βœ… Tests

  • Result: passed
  • View run
  • Coverage: statements 69.45%, branches 59.25%, functions 64.43%, lines 71.51%

βœ… E2E

βœ… E2E Install

@KrasimirKralev
KrasimirKralev merged commit a13066c into beta Jun 9, 2026
8 of 9 checks passed
@KrasimirKralev KrasimirKralev mentioned this pull request Jun 9, 2026
@KrasimirKralev
KrasimirKralev deleted the fix/restore-windows-minimized branch July 4, 2026 17:42
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