Skip to content

fix(integrations): stop warning about an uninstalled owned client on every model toggle - #8353

Merged
lidge-jun merged 1 commit into
devfrom
fix/pi-orphan-not-installed-warning
Nov 9, 2026
Merged

lidge-jun merged 1 commit into
devfrom
fix/pi-orphan-not-installed-warning

Conversation

@lidge-jun

Copy link
Copy Markdown
Owner

Summary

  • After a connected client is uninstalled (for example ~/.pi removed), its ownership record in integrations/records.json stays. Every implicit catalog refresh (model visibility toggle, /api/sync, ocx sync) re-ran the owned refresh, the writer refused with not_installed, and the Models page showed "Some clients could not refresh their model list — pi: pi is not installed" for a client the user no longer has.
  • refreshOwnedIntegration now returns null (left alone, same as never-connected) when the coordinated refresh refuses with not_installed. The ownership record is kept, so reinstalling the client resumes refreshing. Explicit enable still refuses with not_installed; Aside keeps its per-profile reporting.

Verification

  • bun test tests/clients/sync-client-integrations.test.ts — 40 pass, 0 fail (updated MCode-removed and parameterized uninstalled-client cases to the new contract, asserting the record is retained and no directory is recreated).
  • bun test tests/ci-workflows/file-size-ratchet.test.ts — 9 pass.
  • bun run typecheck — no type errors.
  • Full suite not run locally (focused scope; remaining coverage left to PR CI test changed).

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed. (No user-facing docs describe this warning.)
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.

🤖 Generated with Claude Code

…t refresh

An ownership record outlives the client it describes: once ~/.pi was removed,
every model toggle and sync re-ran the owned refresh, the writer refused with
not_installed, and the dashboard showed "pi: pi is not installed" for a client
the user no longer has. Implicit refresh now treats an uninstalled client like
a never-connected one (null, left alone). The record is kept, so a reinstall
resumes refreshing; explicit enable still refuses with not_installed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@lidge-jun
lidge-jun requested a review from Ingwannu as a code owner November 8, 2026 11:34
@coderabbitai

coderabbitai Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 13 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between fabc69e and 74f4a55.

Files selected for processing: 2

  • src/integrations/owned-refresh.ts
  • tests/clients/sync-client-integrations.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T11:35:56.097132Z 74f4a55 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added the bug Something isn't working label Nov 8, 2026
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@lidge-jun
lidge-jun merged commit 0a1d59e into dev Nov 9, 2026
33 checks passed
@lidge-jun
lidge-jun deleted the fix/pi-orphan-not-installed-warning branch November 9, 2026 00:38
lidge-jun added a commit that referenced this pull request Nov 9, 2026
* Revert "fix(google): clear replayed thought signatures on a real HTTP 400 (#8054) (#8150)"

This reverts commit e76511d.

* Revert "fix(relay): report an untyped SSE error envelope as response.failed (#8299)"

This reverts commit 9aeffab.

* Revert "fix(codex): reclaim stale shim restore lock with several dead owners (#8349)"

This reverts commit 9fb295b.

* Revert "docs(providers): add custom gateway verification guide (#8350)"

This reverts commit d38d2e3.

* Revert "fix(integrations): leave an uninstalled owned client alone on implicit refresh (#8353)"

This reverts commit 0a1d59e.

* Revert "fix(gui): recover Aside overwrite previews instead of failing silently (#8384)"

This reverts commit 62bba48.

* Revert "fix(update): keep bun's postinstall enabled on npm 11 and diagnose a skipped one (#8387)"

This reverts commit ff2f5de.

* Revert "fix(copilot): keep Auto negotiation off real DNS in tests and survive a mid-negotiation account switch (#8389)"

This reverts commit 1176557.

* Revert "fix(link): show the Child's own reason when ocx link add fails (#8390)"

This reverts commit d503449.

* Revert "feat(anthropic): add opt-in thinking display policy (#8392)"

This reverts commit b684b46.

* Revert "docs: scope the Remember proxy refusal to standalone dashboards and list its code (#8394)"

This reverts commit 4995e7c.

* Revert "fix(codex): probe the app-bundled CLI when no Codex CLI resolves (#8395)"

This reverts commit 57cb4bb.

* Revert "fix(quota): read Kimi Coding Plan usage from the regional kimi.ai origin (#8399)"

This reverts commit 6ce65a5.

* Revert "feat(link): sync route intent and materialize clients per device (#8274) (#8276)"

This reverts commit 83c9c3e.
lidge-jun added a commit that referenced this pull request Nov 9, 2026
…t refresh (#8353) (#8411)

An ownership record outlives the client it describes: once ~/.pi was removed,
every model toggle and sync re-ran the owned refresh, the writer refused with
not_installed, and the dashboard showed "pi: pi is not installed" for a client
the user no longer has. Implicit refresh now treats an uninstalled client like
a never-connected one (null, left alone). The record is kept, so a reinstall
resumes refreshing; explicit enable still refuses with not_installed.


(cherry picked from commit 0a1d59e)

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant