Skip to content

fix: gate built-in plugins until enabled state loads + fix IPC listener cleanup#239

Merged
tomymaritano merged 1 commit into
developfrom
fix/plugin-gate-and-ipc-cleanup
Apr 24, 2026
Merged

fix: gate built-in plugins until enabled state loads + fix IPC listener cleanup#239
tomymaritano merged 1 commit into
developfrom
fix/plugin-gate-and-ipc-cleanup

Conversation

@tomymaritano

Copy link
Copy Markdown
Collaborator

Summary

This commit was pushed to #237 after the squash-merge, so it didn't make it into develop. Cherry-picked here.

  • P1: gate built-in plugins until enabled state loadsbuiltInEnabledMap started as {} so !== false passed for every plugin, briefly activating disabled plugins on launch. Now starts as null and built-in plugins are excluded from PluginHost until listState() resolves
  • P2: fix IPC listener cleanupipc.on() cleanup used removeAllListeners(channel) which nuked other listeners on the same channel (e.g. pluginRuntimeStore). Changed to removeListener with the specific handler reference

Test plan

  • pnpm typecheck — clean
  • pnpm test — all pass

🤖 Generated with Claude Code

…er cleanup

P1: builtInEnabledMap started as {} so disabled built-in plugins
briefly activated on every launch. Now starts as null and built-in
plugins are excluded from PluginHost until listState() resolves.

P2: ipc.on() cleanup used removeAllListeners(channel) which nuked
other listeners on the same channel (pluginRuntimeStore). Changed
to removeListener with the specific handler reference.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Apr 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
readide Building Building Preview, Comment Apr 24, 2026 4:34pm

Request Review

@coderabbitai

coderabbitai Bot commented Apr 24, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@tomymaritano has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 56 minutes and 5 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 56 minutes and 5 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: d8fca1ae-f2b4-4153-adad-1f314f32f527

📥 Commits

Reviewing files that changed from the base of the PR and between 272c85f and e30db18.

📒 Files selected for processing (2)
  • apps/desktop/src/preload/api/settings.ts
  • apps/desktop/src/renderer/App.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/plugin-gate-and-ipc-cleanup

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot enabled auto-merge (squash) April 24, 2026 16:34
@tomymaritano tomymaritano disabled auto-merge April 24, 2026 16:35
@tomymaritano tomymaritano merged commit 1836b02 into develop Apr 24, 2026
8 of 10 checks passed
@tomymaritano tomymaritano deleted the fix/plugin-gate-and-ipc-cleanup branch April 24, 2026 16:36
tomymaritano added a commit that referenced this pull request Apr 24, 2026
## Summary

- **fix(mcp-server):** non-destructive FTS5 check + switch search to
FTS5 MATCH (#241)
- **fix:** unwrap getToken IPC result + use exact range for auto-link
paste (#240)
- **fix:** gate built-in plugins until enabled state loads + fix IPC
listener cleanup (#239)
- **feat:** allow disabling built-in plugins + fix MCP server FTS5 crash
(#237)
- **chore(deps):** sync postcss bump from main

## Test plan
- [ ] CI passes (typecheck, lint, tests, build)
- [ ] After merge, run Release workflow via `workflow_dispatch`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant