Skip to content

fix: desktop app no longer silently exits on missing kubeconfig#400

Merged
nadaverell merged 1 commit intomainfrom
fix/desktop-silent-crash
Apr 1, 2026
Merged

fix: desktop app no longer silently exits on missing kubeconfig#400
nadaverell merged 1 commit intomainfrom
fix/desktop-silent-crash

Conversation

@nadaverell
Copy link
Copy Markdown
Contributor

@nadaverell nadaverell commented Apr 1, 2026

Summary

Fixes #383. The desktop app silently exited when launched from Finder/Launchpad if the user's kubeconfig wasn't at ~/.kube/config. GUI apps don't inherit shell environment variables like KUBECONFIG, so users who set it in .zshrc/.bashrc saw the app vanish without any error.

Three changes:

  • enrichEnv() replaces enrichPath() — now captures KUBECONFIG, AWS_PROFILE, GOOGLE_APPLICATION_CREDENTIALS, and other cloud provider env vars from the user's login shell, not just PATH
  • Graceful K8s init failureInitializeK8s errors are shown in the UI as a "No Cluster Configuration" screen with actionable hints, instead of calling log.Fatalf which silently kills the process
  • config error type in frontend — dedicated error view explaining how to set KUBECONFIG or pass --kubeconfig

The app now always starts the UI regardless of kubeconfig state, matching user expectations for a desktop application.

Uploading image.png…

@nadaverell nadaverell requested a review from hisco as a code owner April 1, 2026 12:39
GUI apps don't inherit shell environment variables like KUBECONFIG,
so users with non-default kubeconfig paths saw a silent exit when
launching from Finder/desktop. Three changes:

- enrichEnv() now captures KUBECONFIG and cloud provider env vars
  from the login shell (not just PATH)
- InitializeK8s failure shows a "No Cluster Configuration" error
  in the UI instead of calling log.Fatalf
- Frontend gets a dedicated "config" error type with actionable hints
@nadaverell nadaverell force-pushed the fix/desktop-silent-crash branch from 7e43b16 to 6c46239 Compare April 1, 2026 14:09
@nadaverell nadaverell merged commit 8f8f303 into main Apr 1, 2026
6 checks passed
@nadaverell nadaverell deleted the fix/desktop-silent-crash branch April 1, 2026 19:39
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.

Unable to open radar-desktop on macOS 26.4

1 participant