Skip to content

Ignore stale Rancher Desktop during detection - #456

Merged
gtsiolis merged 1 commit into
mainfrom
pro-374-ignore-stale-rancher-desktop-state-during-runtime-detection
Aug 13, 2026
Merged

Ignore stale Rancher Desktop during detection#456
gtsiolis merged 1 commit into
mainfrom
pro-374-ignore-stale-rancher-desktop-state-during-runtime-detection

Conversation

@gtsiolis

@gtsiolis gtsiolis commented Aug 13, 2026

Copy link
Copy Markdown
Member

Motivation

When Docker is unavailable, lstk treats any existing ~/.rd directory as evidence that Rancher Desktop is installed. Rancher Desktop leaves this directory and broken CLI symlinks behind after uninstalling, which causes lstk to recommend an unusable rdctl start action.

Here's what I was seeing on start.

Screenshot 2026-08-13 at 12 59 26 copy 2

Solution

Use a resolvable rdctl executable on PATH as fallback installation evidence instead of the Rancher state directory alone. Configured Rancher Desktop socket detection remains unchanged.

Add regression coverage for both an installed-but-stopped Rancher Desktop and stale ~/.rd state after uninstalling.

Docs

No documentation changes are needed. This corrects a runtime detection false-positive without changing the documented container-runtime workflow.

Review

Self-merge candidate: this is a small, focused detection fix with regression coverage and no new user-facing behavior. A human review is optional unless the team wants to revisit the existing cross-platform assumption that Rancher Desktop installs rdctl on PATH.

Closes PRO-374

Co-Authored-By: Claude noreply@anthropic.com

Co-Authored-By: Claude <noreply@anthropic.com>
@gtsiolis gtsiolis added semver: patch docs: skip Pull request does not require documentation changes labels Aug 13, 2026
@gtsiolis gtsiolis self-assigned this Aug 13, 2026
@gtsiolis

Copy link
Copy Markdown
Member Author

@skyrpex could you take a look since you added this in #399. Cc @anisaoshafi

@gtsiolis
gtsiolis marked this pull request as ready for review August 13, 2026 10:49
@gtsiolis
gtsiolis requested review from a team and peter-smith-phd as code owners August 13, 2026 10:49

skyrpex commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

LGTM, honestly a much better heuristic 馃憤

Copy link
Copy Markdown
Member Author

Thanks for taking a look, @skyrpex! 馃檹

@gtsiolis
gtsiolis merged commit a74d271 into main Aug 13, 2026
22 of 23 checks passed
@gtsiolis
gtsiolis deleted the pro-374-ignore-stale-rancher-desktop-state-during-runtime-detection branch August 13, 2026 11:48
@gtsiolis gtsiolis changed the title Ignore stale Rancher Desktop state during detection Ignore stale Rancher Desktop during detection Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs: skip Pull request does not require documentation changes semver: patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants