Repository navigation
Conversation
unique_base() clears the integration env vars, so calling it without the lock can wipe XDG_CONFIG_HOME while another test is mid-install. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The installers refuse to create an agent's config directory, so an agent that is on PATH but has never run was offered as available and then failed to install. Mark it available once that directory exists. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review.
|
|
@coderabbitai review |
Action performed
|
[Medium impact] The PR appears safe to merge. SummaryThe PR stops recommending new integrations until their required config directories exist.
Reviews (1) · Last reviewed commit: "fix: only offer integrations for agents ..." · Reviewed by Greptile |
The settings integrations panel offers every agent whose command is on PATH, but the installers refuse to run until the agent's config directory exists, which only happens after the agent's first run. Any agent that's installed but has never run is shown as available, and pressing install fails on it:
This is common on setups that put agent commands on PATH before they are used, such as mise lazy shims. On Omarchy that is around 15 agents, so the install action fails every time.
The recommendation is now available only when the agent is on PATH and the directory its installer requires already exists. Pi and OMP need only the parent of their extensions directory, which matches
ensure_extension_dir. Mastra Code's installer creates its own directory, so it's unchanged.integration_target_availablekeeps meaning "the agent is installed", so the Windows availability tests are untouched. Installed or outdated integrations are still listed as before.The first commit fixes a test race this exposed:
letta_staged_install_can_restore_the_prior_filecalledunique_base(), which clearsXDG_CONFIG_HOME, without the env lock. With the new test, that reliably brokeinstall_opencode_and_kilo_use_xdg_config_homein parallel runs.Tests:
cargo test --bin herdr integration::gives 192 passed, both in parallel and with--test-threads=1. The new test fails without the registry change.cargo fmt --checkandcargo clippy --all-targetsare clean.🤖 Generated with Claude Code