Skip to content

Remove duplicate lstk install detection - #460

Merged
gtsiolis merged 3 commits into
mainfrom
agent/fix-asdf-install-warning
Aug 14, 2026
Merged

Remove duplicate lstk install detection#460
gtsiolis merged 3 commits into
mainfrom
agent/fix-asdf-install-warning

Conversation

@gtsiolis

@gtsiolis gtsiolis commented Aug 13, 2026

Copy link
Copy Markdown
Member

Motivation

Multiple lstk binaries on PATH are increasingly legitimate: users may install the CLI through package or version managers, and tools such as the VS Code extension are expected to bundle their own copy. Duplicate-install detection cannot reliably distinguish those intentional copies from stale installations, which produces false positives and verbose warnings without useful remediation.

Linear decision record: DEVX-1015.

Solution

  • Stop scanning PATH from both lstk update and the startup update notification.
  • Remove the duplicate-install scanner and its Unix and Windows executable probes.
  • Remove the dedicated plain, JSON, and TUI warning event and rendering.
  • Remove the associated unit and integration tests.
  • Keep detection of the active executable install method, which is still required to choose the Homebrew, npm, or binary updater.
BEFORE AFTER
Screenshot 2026-08-14 at 14 30 40 Screenshot 2026-08-14 at 14 30 45

Docs

Docs impact

No external documentation changes are needed. The internal architecture guidance no longer advertises duplicate-install detection.

Review

Human review advised: this removes existing user-facing warning behavior from both the update and startup paths. The implementation is a focused deletion following reviewer feedback.

Validated with:

  • make build
  • make test (1,621 tests passed)
  • make test-integration RUN=TestUpdateBinaryMockGitHubChecksumMismatch
  • Pre-commit secret scan
  • git diff --check

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

Closes DEVX-1015

@gtsiolis
gtsiolis requested review from a team and peter-smith-phd as code owners August 13, 2026 18:40
@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

This comment was marked as outdated.

@gtsiolis gtsiolis closed this Aug 13, 2026
gtsiolis and others added 3 commits August 13, 2026 21:47
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@gtsiolis gtsiolis reopened this Aug 13, 2026
@gtsiolis
gtsiolis force-pushed the agent/fix-asdf-install-warning branch from e1b6927 to 9d6fbde Compare August 13, 2026 18:58

@peter-smith-phd peter-smith-phd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Human review advised

This seems to be a Claude-generated message. @gtsiolis, can you please update the PR description to indicate that you personally have reviewed the code, and are confident in its correctness. Also, please list the additional tests that you did to validate it.

We have a "no second reviewer" policy, but we still expect the "first reviewer" (you) to ensure correctness/quality.

@gtsiolis

Copy link
Copy Markdown
Member Author

Thanks, Peter! 🙏

You’re right, this is generated by Claude, following instructions we configured. The Review section was introduced in #405 and refined in #435, as part of the /create-pr skill. Its purpose is to provide a consistent risk signal about whether an additional human reviewer would be valuable. That distinction may need clearer wording. 💭

Author self-review is separate from that signal, and I expect it to be the baseline for every PR from every author. If that expectation is not being met consistently, we should raise it internally. I've reviewed this PR and feel confident in its correctness. I've also listed tests and BEFORE/AFTER screenshots. ✔️

I don’t think adding a self-review indication to every PR is the right mechanism, but I’m happy to discuss this further. ➕

Going to merge this because the identical changes were reviewed and approved in #455 (review), and CI is green. 🟢

@gtsiolis
gtsiolis merged commit 3e11b2b into main Aug 14, 2026
31 of 36 checks passed
@gtsiolis
gtsiolis deleted the agent/fix-asdf-install-warning branch August 14, 2026 11:34

Copy link
Copy Markdown
Contributor

Thanks for clarifying, @gtsiolis. However, when I see names like "Sergio" showing up in a PR description, it's only right that I question whether a human actually read the PR.

Going to merge this because the identical changes were reviewed and approved

This indicates to me that a second human might have read the PR, but they also might have assumed that the first human had already reviewed it carefully.

I've reviewed this PR and feel confident in its correctness

Thank you, that's encouraging 🙂

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