Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Kiro CLI.app (macOS) — Linux-only install actions desktopEntry/gnomeExtension fail after update, blanking the window

Open JohnMarkT opened this issue 2 months ago • 4 comments

Before opening, please confirm:

Operating System

macOS 27.0.1

Kiro Version

Kiro CLI.app (fig_desktop), Product version 2.25.0, macOS

Bug Description

Environment

  • App: Kiro CLI.app (fig_desktop), product version 2.25.0, macOS
  • Location: /Applications/Kiro CLI.app
  • Surface: desktop webview app (not the terminal TUI/CLI)

Symptom

  • The "What's new?" window renders blank.
  • Console shows:

Unhandled Promise Rejection: Error: Unexpected result: result

Analysis

Findings from inspecting the app bundle:

  • The string Unexpected result from the dialog lives in the native kiro_cli_desktop binary, inside the auto-update dialog code path. It appears alongside these sibling strings:

Would you like to update now? No result from the dialog received User declined to update, returning Unexpected result from the dialog Failed to get file type app.disableAutoupdates

  • The referenced source paths are crates/fig_desktop/src/update.rs and crates/fig_desktop_api/src/requests/update.rs.
  • The webview surfaces this native failure as an unhandled promise rejection, which leaves the window blank.
  • This is not a changelog-data issue. /changelog and kiro-cli version --changelog both return content correctly. The dashboard web bundle (assets/index-CtR2Ma0O.js) contains no "what's new" or "changelog" strings, and the literal string Unexpected result: result does not exist anywhere in the app's text resources — confirming the message is constructed at runtime from the native update path.

Steps to Reproduce

  1. Launch Kiro CLI.app when an update is available (or just after one is applied).
  2. Observe the update / "What's new?" window appears blank.
  3. Check the console — it logs the unhandled promise rejection above.

Expected Behavior

Expected Behavior

The update dialog resolves to a recognized result and the "What's new?" window renders its content.

Actual Behavior

The update dialog returns an unexpected result, the associated promise rejects (Unexpected result: result), and the window is left blank.

Conversation ID

No response

Additional Context

No response

JohnMarkT avatar Sep 29 '26 14:09 JohnMarkT

🤖 Potential Duplicate Detected

This issue appears to be similar to:

What happens next?

  • ⏰ This issue will be automatically closed in 3 days
  • 🏷️ If this is not a duplicate, you can prevent automatic closure by adding a comment or reacting with 👎 to this message.
  • 💬 Comment on the original issue if you have additional information

Why is this marked as duplicate? Both issues relate to the Kiro CLI desktop app update mechanism failing. Issue #10977 is about the CLI not updating, while the new issue describes the update dialog throwing an error ('Unexpected result from the dialog') and the 'What's new?' window being blank — both stem from failures in the auto-update code path (crates/fig_desktop/src/update.rs).

github-actions[bot] avatar Sep 29 '26 14:09 github-actions[bot]

Re: the duplicate of #10977 — I don't think this is the same issue, and I've since pinned down a more precise root cause.

#10977 is a Linux (os: linux) bug in the terminal CLI (kiro-cli 2.16.2): kiro-cli update no-ops because install-method = "unknown". This report is a macOS bug in the desktop app (Kiro CLI.app / fig_desktop, now 2.26.0, build 20260929.040515) — different platform, different product, different symptom, different cause. It would not reproduce on the Linux CLI update path.

Corrected root cause (supersedes my original update-dialog theory): After the 2026-09-29 update, the post-update integration flow issues InstallRequest calls for Linux-only components on macOS. Confirmed from the webview IPC:

  • component: desktopEntry → fig.InstallResponse / fig.Result → "Desktop entry installation is only supported for AppImage bundles."
  • component: gnomeExtension → fig.InstallResponse / fig.Result → "Not supported on platforms other than Linux."

Both fig.Result errors reject unhandled in the webview (Unhandled Promise Rejection: Error: Unexpected result: result), leaving the window blank.

Fix: guard these Linux-only install actions (desktopEntry, gnomeExtension, and related autostartEntry / AppImage desktop-entry management) to no-op on non-Linux platforms, and make the webview handle a rejected fig.Result gracefully so one failed integration action can't blank the whole window.

Could a maintainer remove the duplicate label? Happy to also update the title to reflect the corrected diagnosis (e.g., "Kiro CLI.app (macOS) — Linux-only install actions desktopEntry/gnomeExtension fail after update, blanking the window").

JohnMarkT avatar Sep 30 '26 14:09 JohnMarkT

Thank you for your feedback! 🙏

The duplicate label has been removed and this issue has been sent back for maintainer review.

A maintainer will review this issue shortly.

github-actions[bot] avatar Sep 30 '26 14:09 github-actions[bot]

Thanks for raising this. After the Sep 29 update, the post-update integration flow issues install requests for Linux-only components (desktopEntry, gnomeExtension) on macOS. These return errors, and the webview does not handle a rejected result gracefully, leaving the window blank. The changelog and kiro-cli version --changelog are unaffected; this is purely the post-update UI flow.

Fix direction is to guard Linux-only install actions with a platform check so they do not fire on macOS. We are tracking this for a fix.

AnilMaktala avatar Sep 30 '26 20:09 AnilMaktala