mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3464] [MERGED] Deliver Grok CLI prompts via --prompt-file and lift the 32k context clamp #5951
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#5951
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3464
Author: @myaiexp
Created: 7/11/2026
Status: ✅ Merged
Merged: 7/11/2026
Merged by: @SpicyMarinara
Base:
staging← Head:grok-cli-prompt-file📝 Commits (4)
8de8e5aDeliver Grok CLI prompts via --prompt-file and lift the 32k context clamp8a053deKeep the 32k default window; honor explicitly configured max context61399ecIsolate Grok CLI prompt files93da6d7Merge remote-tracking branch 'origin/staging' into grok-cli-prompt-file📊 Changes
3 files changed (+38 additions, -11 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/client/src/components/connections/ConnectionEditor.tsx(+1 -1)📝
packages/server/src/services/llm/providers/grok-subscription.provider.ts(+36 -10)📄 Description
Linked issue
Closes #3463
Why this change
-pargument. A single exec argument is capped by the OS (128 KiB on Linux viaMAX_ARG_STRLEN, ~32 KiB command lines on Windows), so long transcripts kill the spawn withE2BIGbefore any request is made.What changed
DATA_DIR/grok-cli) and passed via--prompt-file; the file is removed when the CLI exits (finally). Unique filenames keep parallel agent/chat requests safe.[Unreleased]→Fixed.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Unticked boxes, honestly: I run Marinara bare-metal (no container), and the only UI change is one help-text string in the connection editor, which I have not click-tested in a browser. What I did verify, on Linux with grok CLI 0.2.14:
-pfails to spawn with "Argument list too long" (E2BIG) — the kernel rejects the exec before any API call.--prompt-fileusing the provider's exact flag set (--no-auto-update --output-format plain --system-prompt-override … --no-plan --no-subagents --no-memory --disable-web-search --disallowed-tools run_terminal_command --max-turns 8 --cwd <scratch>); the CLI returned the expected completion.Docs and release impact
UI evidence (if applicable)
Text-only change to the Max Context Window help text in the connection editor (no layout or behavior change).
Summary by CodeRabbit
Bug Fixes
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.