fix(calm-hub): stream nitrite seed payloads via stdin to avoid Windows arg limit - #3123
Open
aamanrebello wants to merge 1 commit into
Open
aamanrebello wants to merge 1 commit into
aamanrebello wants to merge 1 commit into
Conversation
…s arg limit init-nitrite.sh passed each document's JSON payload to curl as a command-line argument (-d "$payload"). Windows caps total process command-line length far below Linux/macOS ARG_MAX, so seeding large documents (e.g. a full architecture with many nodes and relationships) fails with "Argument list too long" before curl even runs. Switch the four affected curl calls to stream the payload over stdin instead (--data-binary @- <<< "$payload"). The HTTP request sent is unchanged; only the OS-level mechanism for handing curl the body differs, so behaviour on Linux/macOS/CI is unaffected. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
aamanrebello
requested review from
Thels,
grahampacker-ms,
jpgough-ms,
markscott-ms,
rocketstack-matt and
willosborne
as code owners
September 19, 2026 23:30
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comment: I needed these fixes to get the Calm Hub Quarkus server working properly on my Windows local (with Git bash to run the init nitrite script lol). From what I understand, it's pretty harmless and does not affect the working of the script on other operating systems. The authoritative opinion would be from the reviewers though :) what do you think?
Coding assistant comment: init-nitrite.sh passed each document's JSON payload to curl as a command-line argument (-d "$payload"). Windows caps total process command-line length far below Linux/macOS ARG_MAX, so seeding large documents (e.g. a full architecture with many nodes and relationships) fails with "Argument list too long" before curl even runs.
Switch the four affected curl calls to stream the payload over stdin instead (--data-binary @- <<< "$payload"). The HTTP request sent is unchanged; only the OS-level mechanism for handing curl the body differs, so behaviour on Linux/macOS/CI is unaffected.
Description
Type of Change
Affected Components
cli/)calm/)calm-ai/)calm-hub/)calm-hub-ui/)calm-server/)calm-widgets/)docs/)shared/)calm-plugins/vscode/)Commit Message Format ✅
Testing
Checklist