fix: read file references in nullable string flags #121
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.33) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 156 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.303
Real PR Conversation Timeline
1 comments
"Review active on #121"
general
weight: 0.35
mangeshraut712
Summary
ant beta:agents create --system @prompt.txtcurrently sends the literal@prompt.txtstring instead of the file contents. Nullable string flags are stored as*string, which the file embedding helper skips. The same problem affects explicit@file://and@data://references and escaped\@values.This change dereferences non-nil string pointers before file embedding, so nullable string flags follow the same rules as other string flags. An explicit
nullis still sent asnull, and an omitted flag is still left out of the request. A missing file now produces the same file-read error as a non-nullable string flag.The regression test runs the CLI against a local HTTP server and checks the JSON it actually sends. It covers text and base64 files, escaped references, literal strings, explicit null, and an omitted flag.
Testing
go test -race ./pkg/cmd -run 'TestNullableStringFileInput|TestEmbedFiles' -count=1./scripts/test -timeout=20m -jsonagainst the bundled Steady mock specification: all tests pass (11 skipped), including Windows test compilation../scripts/lint,go vet ./..., formatting, andgit diff --checkpass.