Skip to content

Remove shutdown wait on fileQueueSettled and silence known shutdown noise in CLI#4328

Merged
samuelstroschein merged 1 commit intomainfrom
4327
Feb 11, 2026
Merged

Remove shutdown wait on fileQueueSettled and silence known shutdown noise in CLI#4328
samuelstroschein merged 1 commit intomainfrom
4327

Conversation

@samuelstroschein
Copy link
Member

@samuelstroschein samuelstroschein commented Feb 11, 2026

Closes #4327


Note

Medium Risk
Touches CLI shutdown behavior by removing a best-effort background-queue settle and by monkey-patching console.error, which could hide unexpected errors if the regexes are too broad, but scope is limited to known shutdown messages.

Overview
Fixes CLI commands that could hang on exit by removing the shutdown wait on fileQueueSettled (deleting settleLastUsedProjectFileQueue and its usage in translate/validate).

Adds silenceKnownShutdownNoise() (called from main.ts) to suppress specific console.error messages from background file-queue processing when the DB has already been closed, reducing non-actionable shutdown noise.

Includes a patch changeset for @inlang/cli documenting the behavior change.

Written by Cursor Bugbot for commit b8d0b20. This will update automatically on new commits. Configure here.

@changeset-bot
Copy link

changeset-bot bot commented Feb 11, 2026

🦋 Changeset detected

Latest commit: b8d0b20

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@inlang/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@samuelstroschein samuelstroschein merged commit 327ddd6 into main Feb 11, 2026
3 checks passed
@samuelstroschein samuelstroschein deleted the 4327 branch February 11, 2026 22:00
@github-actions github-actions bot locked and limited conversation to collaborators Feb 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some inlang CLI commands don't terminate anymore since @inlang/cli 3.1.4

1 participant