Skip to content

feat: support file-backed call arguments#213

Merged
steipete merged 1 commit into
mainfrom
feat/file-backed-call-arguments
Jun 18, 2026
Merged

feat: support file-backed call arguments#213
steipete merged 1 commit into
mainfrom
feat/file-backed-call-arguments

Conversation

@steipete

Copy link
Copy Markdown
Collaborator

Summary

  • add key=@path and --key @path for exact UTF-8 file-backed string arguments
  • add @@ escaping for literal leading @
  • document the syntax and error behavior

Proof

  • ./runner pnpm check
  • ./runner pnpm test (785 passed, 3 skipped)
  • ./runner pnpm build
  • live built-CLI call against the local stdio MCP fixture preserved a multiline file exactly
  • autoreview: clean, no actionable findings

Fixes #212

@steipete steipete merged commit c1b5829 into main Jun 18, 2026
3 checks passed
@steipete steipete deleted the feat/file-backed-call-arguments branch June 18, 2026 05:54

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 23339ffe15

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/cli/call-arguments.ts
throw new CliUsageError(`Unable to read argument file '${filePath}': ${detail}`);
}
try {
const text = new TextDecoder('utf-8', { fatal: true }).decode(contents);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve UTF-8 BOMs in file-backed values

When an argument file starts with a UTF-8 BOM, TextDecoder's default BOM handling strips that leading U+FEFF before returning the value. The new docs/changelog advertise exact UTF-8 file values, so files saved with a BOM (common from some Windows editors) are silently changed before being sent to the tool; pass ignoreBOM: true while keeping fatal: true if the byte-for-text value should be preserved exactly.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support key=@path to read an argument value from a file

1 participant