Skip to content

fix(parser): add force close on the pool - #9334

Merged
sid-bruno merged 1 commit into
usebruno:release/v4.2.0from
sid-bruno:fix/sqlite-db-closers
Sep 23, 2026
Merged

sid-bruno merged 1 commit into
usebruno:release/v4.2.0from
sid-bruno:fix/sqlite-db-closers

Conversation

@sid-bruno

@sid-bruno sid-bruno commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Since we don't force quit the workerpool on quit it waits for existing parsing to finish which can hold other items from closing.

JIRA: Pending

Contribution Checklist:

  • I've used AI significantly to create this pull request
  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.
  • I've run the claude code review skill locally.

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

  • New Features

    • Response previews now support clickable HTTP links in text and XML, with large responses revealed progressively.
    • Sidebar multi-selection now includes response examples, with support for bulk selection, drag-and-drop, collapsing, and deletion.
    • Environment details and CLI runs now report missing or circular inheritance; environment imports accept numeric names and ignore invalid colors.
    • Documentation generation supports filtering requests by tags, with counts reflecting the selected filters.
    • The mock server beta feature is enabled by default.
  • Updates

    • Clicking links in editable fields no longer opens a request; link actions remain available in response previews.
    • Git cloning now uses the repository’s default branch; branch selection is no longer available.
    • Default request headers are labeled “Additional Headers,” and request-start-time is no longer sent.

@coderabbitai

coderabbitai Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Repository: usebruno/bruno/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 7ffafe0b-baa2-4755-90d5-fb2c9d8673ec

📥 Commits

Reviewing files that changed from the base of the PR and between bd59849 and 515f6ec.

📒 Files selected for processing (192)
  • packages/bruno-app/src/components/CodeEditor/StatusBar/index.js
  • packages/bruno-app/src/components/CodeEditor/index.js
  • packages/bruno-app/src/components/CodeEditor/index.spec.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/ApiKeyAuth/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/AwsV4Auth/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/BasicAuth/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/BearerAuth/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/DigestAuth/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/EdgeGridAuth/index.tsx
  • packages/bruno-app/src/components/CollectionSettings/Auth/NTLMAuth/index.js
  • packages/bruno-app/src/components/CollectionSettings/Auth/WsseAuth/index.js
  • packages/bruno-app/src/components/Documentation/DocsEditor/index.js
  • packages/bruno-app/src/components/EditableTable/index.js
  • packages/bruno-app/src/components/Environments/Common/EnvironmentInheritanceWarning/StyledWrapper.js
  • packages/bruno-app/src/components/Environments/Common/EnvironmentInheritanceWarning/index.js
  • packages/bruno-app/src/components/Environments/Common/EnvironmentInheritanceWarning/index.spec.js
  • packages/bruno-app/src/components/Environments/Common/ImportEnvironmentModal/hooks/useEnvironmentImport/index.js
  • packages/bruno-app/src/components/Environments/Common/ImportEnvironmentModal/utils.js
  • packages/bruno-app/src/components/Environments/Common/ImportEnvironmentModal/utils.spec.js
  • packages/bruno-app/src/components/Environments/Common/MissingInheritedEnvironmentWarning/index.js
  • packages/bruno-app/src/components/Environments/EnvironmentSelector/index.js
  • packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/EnvironmentDetails/index.js
  • packages/bruno-app/src/components/FolderSettings/Tests/index.js
  • packages/bruno-app/src/components/MultiLineEditor/index.js
  • packages/bruno-app/src/components/MultiLineEditor/index.spec.js
  • packages/bruno-app/src/components/Preferences/Beta/index.js
  • packages/bruno-app/src/components/RadioButton/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/Auth/ApiKeyAuth/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/AwsV4Auth/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/BasicAuth/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/BearerAuth/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/DigestAuth/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/EdgeGridAuth/index.tsx
  • packages/bruno-app/src/components/RequestPane/Auth/NTLMAuth/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth1/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AdditionalParams/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/ClientCredentials/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/Implicit/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/OAuth2/PasswordCredentials/index.js
  • packages/bruno-app/src/components/RequestPane/Auth/WsseAuth/index.js
  • packages/bruno-app/src/components/RequestPane/GrpcQueryUrl/index.js
  • packages/bruno-app/src/components/RequestPane/QueryEditor/index.js
  • packages/bruno-app/src/components/RequestPane/QueryEditor/index.spec.js
  • packages/bruno-app/src/components/RequestPane/QueryUrl/index.js
  • packages/bruno-app/src/components/RequestPane/RequestHeaders/StyledWrapper.js
  • packages/bruno-app/src/components/RequestPane/RequestHeaders/index.js
  • packages/bruno-app/src/components/RequestPane/WsQueryUrl/index.js
  • packages/bruno-app/src/components/ResponsePane/QueryResult/QueryResultPreview/JsonPreview.js
  • packages/bruno-app/src/components/ResponsePane/QueryResult/QueryResultPreview/TextPreview.js
  • packages/bruno-app/src/components/ResponsePane/QueryResult/QueryResultPreview/XmlPreview/StyledWrapper.js
  • packages/bruno-app/src/components/ResponsePane/QueryResult/QueryResultPreview/XmlPreview/index.js
  • packages/bruno-app/src/components/ResponsePane/QueryResult/QueryResultPreview/index.js
  • packages/bruno-app/src/components/RunnerResults/ResponsePane/index.js
  • packages/bruno-app/src/components/RunnerResults/index.jsx
  • packages/bruno-app/src/components/Sidebar/CloneGitRespository/StyledWrapper.js
  • packages/bruno-app/src/components/Sidebar/CloneGitRespository/index.js
  • packages/bruno-app/src/components/Sidebar/Collections/BulkActionsDropdown/index.js
  • packages/bruno-app/src/components/Sidebar/Collections/BulkActionsMenu/index.js
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemDragPreview/StyledWrapper.js
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/CollectionItemDragPreview/index.js
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/DeleteCollectionItems/index.js
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/ExampleItem/StyledWrapper.js
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/ExampleItem/index.js
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/RunCollectionItem/index.js
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/index.js
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/Advanced/DocsTagList/StyledWrapper.js
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/Advanced/IncludeExcludeTags/StyledWrapper.js
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/Advanced/IncludeExcludeTags/index.jsx
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/Advanced/IncludeExcludeTags/index.spec.js
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/Advanced/StyledWrapper.js
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/Advanced/index.jsx
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/Advanced/index.spec.js
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/StyledWrapper.js
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/index.js
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/GenerateDocumentation/index.spec.js
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/RemoveCollections/index.js
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/index.js
  • packages/bruno-app/src/components/Sidebar/Collections/index.js
  • packages/bruno-app/src/components/SingleLineEditor/index.js
  • packages/bruno-app/src/components/SingleLineEditor/index.spec.js
  • packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/EnvironmentDetails/index.js
  • packages/bruno-app/src/globalStyles.js
  • packages/bruno-app/src/hooks/useChunkedReveal/index.js
  • packages/bruno-app/src/hooks/useClearStoredRunnerExchanges/index.js
  • packages/bruno-app/src/hooks/useMultiSelectDragDisabled/index.js
  • packages/bruno-app/src/hooks/useStoredRunnerExchange/index.js
  • packages/bruno-app/src/hooks/useStoredRunnerExchange/index.spec.js
  • packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js
  • packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js
  • packages/bruno-app/src/providers/ReduxStore/slices/collections/runner-exchange-events.spec.js
  • packages/bruno-app/src/ui/InputWrapper/StyledWrapper.js
  • packages/bruno-app/src/ui/InputWrapper/constants.js
  • packages/bruno-app/src/ui/InputWrapper/index.js
  • packages/bruno-app/src/ui/Select/StyledWrapper.js
  • packages/bruno-app/src/ui/Select/index.js
  • packages/bruno-app/src/utils/codemirror/goToVariableDefinition.js
  • packages/bruno-app/src/utils/codemirror/goToVariableDefinition.spec.js
  • packages/bruno-app/src/utils/collections/index.js
  • packages/bruno-app/src/utils/collections/index.spec.js
  • packages/bruno-app/src/utils/dragBlockedCursor.js
  • packages/bruno-app/src/utils/environments.js
  • packages/bruno-app/src/utils/importers/bruno-environment.js
  • packages/bruno-app/src/utils/importers/bruno-environment.spec.js
  • packages/bruno-app/src/utils/importers/postman-environment.js
  • packages/bruno-app/src/utils/timeline/index.spec.js
  • packages/bruno-cli/src/utils/axios-instance.js
  • packages/bruno-cli/src/utils/environment.js
  • packages/bruno-cli/tests/integration/environment-inheritance.spec.js
  • packages/bruno-cli/tests/utils/axios-instance.spec.js
  • packages/bruno-cli/tests/utils/resolve-environment-inheritance.spec.js
  • packages/bruno-common/src/headers/default-headers.spec.ts
  • packages/bruno-common/src/headers/default-headers.ts
  • packages/bruno-common/src/index.ts
  • packages/bruno-common/src/utils/environment-inheritance.spec.ts
  • packages/bruno-common/src/utils/environment-inheritance.ts
  • packages/bruno-converters/src/opencollection/items/http.ts
  • packages/bruno-converters/src/postman/bruno-to-postman.js
  • packages/bruno-converters/src/postman/postman-to-bruno.js
  • packages/bruno-converters/tests/opencollection/omit-headers.spec.js
  • packages/bruno-converters/tests/postman/bruno-to-postman-disabled-headers.spec.js
  • packages/bruno-converters/tests/postman/postman-to-bruno/disabled-system-headers.spec.js
  • packages/bruno-electron/src/app/collection-watcher.js
  • packages/bruno-electron/src/index.js
  • packages/bruno-electron/src/ipc/git.js
  • packages/bruno-electron/src/ipc/git.spec.js
  • packages/bruno-electron/src/ipc/mount.js
  • packages/bruno-electron/src/ipc/network/axios-instance.js
  • packages/bruno-electron/src/ipc/network/grpc-event-handlers.js
  • packages/bruno-electron/src/ipc/network/grpc-script-orchestration.js
  • packages/bruno-electron/src/ipc/network/index.js
  • packages/bruno-electron/src/ipc/network/runner-exchange.js
  • packages/bruno-electron/src/ipc/network/runner-exchange.spec.js
  • packages/bruno-electron/src/services/mount/manager.js
  • packages/bruno-electron/src/services/pool/index.js
  • packages/bruno-electron/src/store/preferences.js
  • packages/bruno-electron/src/utils/filesystem.js
  • packages/bruno-electron/src/utils/git.js
  • packages/bruno-electron/src/utils/git.spec.js
  • packages/bruno-electron/tests/network/axios-instance.spec.js
  • packages/bruno-js/src/grpc/bruno-grpc-request.js
  • packages/bruno-js/src/grpc/bruno-grpc-response.js
  • packages/bruno-js/src/grpc/grpc-message-list.js
  • packages/bruno-js/tests/grpc-message-list.spec.js
  • packages/bruno-requests/src/network/sent-headers.ts
  • packages/bruno-requests/src/scripting/send-request.ts
  • packages/bruno-sqlite/migrations/0000001_runner_responses.ts
  • packages/bruno-sqlite/statements/runner_responses.sql
  • packages/bruno-sqlite/tests/node/create-database.spec.ts
  • packages/bruno-tests/src/index.js
  • tests/auth/auth-mode/folder-no-auth-stops-inheritance.spec.ts
  • tests/codemirror-linkaware/collection.spec.ts
  • tests/codemirror-linkaware/fixtures/collection/bruno.json
  • tests/codemirror-linkaware/fixtures/collection/collection.bru
  • tests/codemirror-linkaware/fixtures/collection/folder-fixture/folder.bru
  • tests/codemirror-linkaware/fixtures/collection/graphql-request.bru
  • tests/codemirror-linkaware/fixtures/collection/grpc-request.bru
  • tests/codemirror-linkaware/fixtures/collection/http-request.bru
  • tests/codemirror-linkaware/fixtures/collection/ws-request.bru
  • tests/codemirror-linkaware/folder.spec.ts
  • tests/codemirror-linkaware/request-graphql.spec.ts
  • tests/codemirror-linkaware/request-grpc.spec.ts
  • tests/codemirror-linkaware/request-http.spec.ts
  • tests/codemirror-linkaware/request-ws.spec.ts
  • tests/codemirror-linkaware/response.spec.ts
  • tests/collection/config-ignore/config-ignore.spec.ts
  • tests/collection/generate-docs/generate-docs.spec.ts
  • tests/collection/git/clone-branch-selection.spec.ts
  • tests/collection/git/fixtures/clone-workspace/workspace.yml
  • tests/collection/git/helpers.ts
  • tests/collection/git/init-user-data/preferences.json
  • tests/collection/multi-select/multi-select.spec.ts
  • tests/environments/environment-inheritance/collection-env-inheritance-via-ui.spec.ts
  • tests/environments/environment-inheritance/workspace-env-inheritance-via-ui.spec.ts
  • tests/environments/import-environment/invalid-color-import/fixtures/unreadable-color-env.json
  • tests/environments/import-environment/invalid-color-import/invalid-color-import.spec.ts
  • tests/environments/import-environment/multi-format-import/fixtures/numeric-name-env.json
  • tests/environments/import-environment/multi-format-import/fixtures/object-name-env.json
  • tests/environments/import-environment/multi-format-import/multi-format-import.spec.ts
  • tests/grpc/run-lifecycle-hooks/fixtures/collection/EchoReachedVar.yml
  • tests/grpc/run-lifecycle-hooks/fixtures/collection/EchoSendReached.yml
  • tests/grpc/run-lifecycle-hooks/fixtures/collection/LotsOfReplies.yml
  • tests/grpc/run-lifecycle-hooks/fixtures/collection/MessageHooksServerStream.yml
  • tests/grpc/run-lifecycle-hooks/fixtures/collection/MessageHooksUnary.yml
  • tests/grpc/run-lifecycle-hooks/fixtures/collection/SayHello.yml
  • tests/request/headers/default-headers.spec.ts
  • tests/response/timeline-headers/timeline-headers.spec.ts
  • tests/utils/page/actions.ts
  • tests/utils/page/git/clone-git-repository.ts
  • tests/utils/page/index.ts
  • tests/utils/page/locators.ts
  • tests/utils/request/index.ts
 __________________________________________________
< I ran the tests. They filed a restraining order. >
 --------------------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Resolve the in-flight mount shutdown race and add regression coverage for forced termination.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 High severity · 1 Medium severity

Open (2)
What changed in this PR

Adds forced worker-pool termination during Electron shutdown so active parsing cannot delay application exit.

Changes:

  • Adds forced termination support to the worker pool.
  • Propagates shutdown options through mount management and IPC.
  • Enables forced termination during application quit.
File Summary
packages/​bruno-electron/​src/​services/​pool/​index.js Supports forced worker-pool termination.
packages/​bruno-electron/​src/​services/​mount/​manager.js Forwards force mode during shutdown.
packages/​bruno-electron/​src/​ipc/​mount.js Passes shutdown options through IPC.
packages/​bruno-electron/​src/​index.js Requests forced cleanup before quitting.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@sid-bruno
sid-bruno merged commit 8efe082 into usebruno:release/v4.2.0 Sep 23, 2026
1 of 2 checks passed
@sid-bruno sid-bruno mentioned this pull request Sep 23, 2026
7 tasks
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.

3 participants