Where does the bug appear (feature/product)?
Grok Bot
Describe the Bug
Annotations
1 error
Invalid workflow file: .patches.yml#L33
You have an error in your yaml syntax on line 33 >>
Agent file write of large sources commits @file: / LOAD_FROM_FILE: stubs; git HTTPS push fails; large bodies cannot MCP-push
entire grokbot token budget decimated due to file chunking issue with push pull and other tools use with the github integration. Mostly was character byte limits.
Steps to Reproduce
Use this as Steps to reproduce. It is the same failure, shrunk to something a Cursor reviewer can run.
Environment
• Cursor agent / Grokbot with file-write (or apply-patch) + git
• A source file larger than a small patch (100KB+ is how we hit it; ParserCore was ~173KB)
• git remote over HTTPS (not SSH), no gh auth / credential helper
Steps
-
Open a git repo with a large text file, e.g. copy any ~150KB .c / .py / .ailang to big.ailang.
-
Ask the agent, in one turn:
│ Replace big.ailang with a full valid rewrite of the same file (keep it ~150KB). Then git add big.ailang, commit, and git push over HTTPS.
-
After the agent says it wrote and pushed, do not trust the chat. On disk / in git run:
wc -c big.ailang
head -c 200 big.ailang
git show HEAD:big.ailang | wc -c
git show HEAD:big.ailang | head
- If push is involved, also run:
git push origin HEAD
Expected
• big.ailang on disk and in HEAD is the full ~150KB source.
• git push authenticates and updates the remote.
Actual
• File on disk / in the commit is a 34–68 byte placeholder, not the body, for example:
• @file:/tmp/pc_forparen_only.ailang
• LOAD_FROM_FILE:/tmp/aimacro_assemble_tip/py2aim_tip_direct.push.json
• @/workspace/repos/…/Library.AIMacroCodeGen1.ailang82
• The path is on the agent VM, so a pull on another machine cannot expand it.
• HTTPS push: could not read Username for https://github.com.
• MCP/push of small files still works; large bodies do not, so the agent starts chunking (restore_staging micros) or committing the stub.
Concrete hits (this repo)
Repo: GitHub - AiLang-Author/AIMacro-Language: AIMacro: Python-alike for AILang. Blocks are { } (end is retired). AOT transpiler aimacro.x. · GitHub
┌───────────────────────┬────────────┬──────────────────────────────────────────┐
│ Step the agent took │ Commit │ Result │
├───────────────────────┼────────────┼──────────────────────────────────────────┤
│ “Write ParserCore │ 75ad365 / │ 173 342-byte parser → 34-byte @file:/tmp │
│ with for_paren fix” │ 6e6fefa │ /pc_forparen_only.ailang (4855 lines │
│ │ │ deleted) │
├───────────────────────┼────────────┼──────────────────────────────────────────┤
│ “Write py2aim.py tip” │ fdc67a7 │ ~37 909-byte script → 68-byte LOAD_FROM_ │
│ │ │ FILE:/tmp/…push.json │
├───────────────────────┼────────────┼──────────────────────────────────────────┤
│ “Write CodeGen1 │ 05e8b10 │ ~1017-line emitter → 1-line @/workspace/ │
│ module_const” │ │ repos/…CodeGen1.ailang82 │
└───────────────────────┴────────────┴──────────────────────────────────────────┘
Restore (proves the real files existed locally and never made it through write/push): 339701a, 3e1bc93.
Notes for the reviewer
• Repro is size + write-then-git, not AIMacro syntax.
• If they only test a 20-line file, they will miss it.
• Check the committed blob, not the agent’s “I wrote the file” message.
Operating System
Linux
Version Information
grok bot via Web interface chrome.
Does this stop you from using Cursor
No - Cursor works, but with this issue