Repository navigation
feat: force close db - #9335
feat: force close db#9335
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: usebruno/bruno/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. WalkthroughThe app quit handler now requests forced mount shutdown. The force option passes through the mount IPC helper and manager to workerpool termination. ChangesMount shutdown
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~5 minutes Change: Feature 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. The quit signal starts its flight Comment |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
In-flight mount operations must be prevented from mutating the database after forced shutdown.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
Open (2)
What changed in this PR
Adds forced worker-pool termination during Electron shutdown to prevent parser jobs from delaying database cleanup.
Changes:
- Propagates
forcethrough pool and mount shutdown APIs. - Enables forced cleanup during application quit.
- Forwards shutdown options through IPC.
| File | Summary | Review findings |
|---|---|---|
packages/bruno-electron/src/services/pool/index.js |
Supports forced worker-pool termination. | — |
packages/bruno-electron/src/services/mount/manager.js |
Propagates forced shutdown during mount cleanup. | Critical (3 votes): In-flight mounts may continue after force-closing and reopen or mutate the mount DB. Nit (3 votes): Add regression coverage for forced and default shutdown behavior. |
packages/bruno-electron/src/ipc/mount.js |
Forwards shutdown options through IPC. | — |
packages/bruno-electron/src/index.js |
Requests forced cleanup during application quit. | — |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.


Description
Mergeback #9334
Contribution Checklist:
Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.
Publishing to New Package Managers
Please see here for more information.
Summary by CodeRabbit