Skip to content

fix: replace invalid plugin install hints with marketplace form#35

Merged
ericchansen merged 1 commit intomainfrom
fix/plugin-install-hints
May 7, 2026
Merged

fix: replace invalid plugin install hints with marketplace form#35
ericchansen merged 1 commit intomainfrom
fix/plugin-install-hints

Conversation

@ericchansen
Copy link
Copy Markdown
Owner

Summary

Replace invalid copilot plugin install . hint strings with the correct name@marketplace form. Also fix 3 pre-existing flaky tests and add a regression guard.

Changes

  • src/copilotsetup/tabs/plugins.py -- Replace bare . (never a valid plugin spec) with {name}@{marketplace} in:
    • Detail pane "pin to release" hint
    • Upgrade toast notification for dev installs
  • tests/test_plugin_upgrades.py -- Fix 3 flaky _git_env() tests that leaked GIT_CONFIG_COUNT from the runner environment (monkeypatch env vars clean)
  • tests/test_plugins_tab.py -- Tighten assertion: reject bare . and require @ marketplace form

Testing

  • Full suite: 287/287 tests pass (was 284/287 before this fix)
  • ruff check and ruff format --check both clean

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates user-facing plugin reinstall hints to use the marketplace install spec (name@marketplace) instead of an invalid . spec, and stabilizes a few upgrade-related tests by preventing git-related environment leakage.

Changes:

  • Update PluginsTab detail/upgrade messaging to recommend copilot plugin install {name}@{marketplace}.
  • Fix flaky _git_env() tests by clearing leaked GIT_CONFIG_* environment variables before assertions.
  • Tighten a PluginsTab regression test to reject copilot plugin install . and require marketplace-form output.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/copilotsetup/tabs/plugins.py Replaces copilot plugin install . hints with name@marketplace form in detail pane and dev-install upgrade toast.
tests/test_plugin_upgrades.py Removes leaked GIT_CONFIG_* env vars in _git_env() tests to eliminate flakiness.
tests/test_plugins_tab.py Adds assertions to ensure dev-install upgrade messaging no longer suggests install . and uses marketplace form.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/copilotsetup/tabs/plugins.py
Comment thread src/copilotsetup/tabs/plugins.py
Comment thread tests/test_plugins_tab.py Outdated
…e form

- Replace bare '.' argument (never valid) with name@marketplace format
  in detail pane and upgrade toast notification
- Fix 3 flaky _git_env() tests by isolating GIT_CONFIG_COUNT from env
- Tighten test assertion to reject bare dot and require @ form

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ericchansen ericchansen force-pushed the fix/plugin-install-hints branch from 10de8d6 to 8bd144e Compare May 7, 2026 20:08
@ericchansen ericchansen merged commit e82d017 into main May 7, 2026
8 checks passed
@ericchansen ericchansen deleted the fix/plugin-install-hints branch May 7, 2026 20:40
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.

2 participants