fix(poteto-mode): use -F for @file expansion in babysit replies - #2
Merged
Conversation
gh api expands @file only under -F. The -f form posts the literal filename as the comment body, which happened live on a PR reply. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KybsFC28cLtu6pCdwdwBBw
adjohn
added a commit
that referenced
this pull request
Sep 9, 2026
Upstream's babysit step 8 now posts review replies with gh api --input <payload.json>, which supersedes the -F @file fix from PR #2. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01X8ENwh7GfaGvuwDRykTGxx
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.
Why
Babysit step 8 tells the agent to post review replies with
-f body=@file. That flag does not expand@file.gh apireads a file for a field only under-F, so the instruction posts the literal filename as the comment body. This happened live on cloudflare/cloudflare-docs#33091 and the comment had to be patched afterward.Scope
One line in
skills/poteto-mode/playbooks/babysit.md. The step 8 posting instruction now names-F body=@fileand states why-fis wrong.Blast Radius
Every babysit run that replies to a review thread from a file. Without the fix, each such reply posts a filename instead of the message.
Verification
Reproduced both behaviors against the GitHub API:
-f body=@fileposted the literal filename on cloudflare-docs#33091, and the-Fform posted the file contents when patching that same comment.🤖 Generated with Claude Code
https://claude.ai/code/session_01KybsFC28cLtu6pCdwdwBBw