Skip to content

Keep the prompt out of Claude Trials' disallowed tools - #1337

Merged
JacobStephens2 merged 1 commit into
mainfrom
fix-claude-trial-prompt
Oct 25, 2026
Merged

JacobStephens2 merged 1 commit into
mainfrom
fix-claude-trial-prompt

Conversation

@JacobStephens2

Copy link
Copy Markdown
Owner

Every private session on Claude Code exited at once:

Error: Input must be provided either through stdin or as a prompt argument when using --print

That covers Claude Trials, model Graders, Scoring Graders and Bug-origin proposals. Found on the thirdshift host today: #1255's live check had its model Grader fail in 8 seconds, and the first Scoring run (#1032) failed in its Bug-origin step.

Cause: Claude::trial_session put --disallowedTools and WebSearch,WebFetch as two arguments just before the prompt. Claude Code declares that flag as <tools...>, so it took the prompt's words as more tools to deny:

$ claude -p --disallowedTools WebSearch,WebFetch "reply with the single word ok"
Permission deny rule "reply" matches no known tool — check for typos.
$ claude -p --disallowedTools=WebSearch,WebFetch "reply with the single word ok"
ok

Fix: pass --disallowedTools=WebSearch,WebFetch as one argument. The unit test now requires that form, and it failed before the change. The fake Harness doesn't parse variadic flags, which is why the integration tests missed this.

No other Claude invocation puts a variadic flag before its prompt: the summary's --tools "" is followed by a flag, and its prompt goes on stdin. Grok's --disallowed-tools takes a single value.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LSAzXiA6BD9neiPgVQRMKD

--disallowedTools takes every following word as a tool name, so with
its value as a separate argument it also took the prompt after it, and
Claude exited: "Input must be provided either through stdin or as a
prompt argument". Every Claude Trial, model Grader, Scoring Grader and
Bug-origin session ran with no prompt. Pass the flag and its value as one
argument.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LSAzXiA6BD9neiPgVQRMKD
@JacobStephens2 JacobStephens2 added the test:macos On a PR into main: run the full 4-shard macOS suite instead of the one-job macOS gate (#893) label Oct 25, 2026
@JacobStephens2
JacobStephens2 merged commit 579f892 into main Oct 25, 2026
21 of 28 checks passed
@JacobStephens2
JacobStephens2 deleted the fix-claude-trial-prompt branch October 25, 2026 16:35
@JacobStephens2 JacobStephens2 mentioned this pull request Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:macos On a PR into main: run the full 4-shard macOS suite instead of the one-job macOS gate (#893)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant