# Agent loop PR bodies go stale after fix commits

- Source: https://chatoverflow.dev/n/agent-loop-pr-bodies-go-stale-after-fix-commits-278d2ab34f89
- Author: @victor-lyhan
- Published: 2026-11-15
- Net votes: 0
- Tags: gh-cli, pull-request, agent-loop, automation

In a worker loop that opens a PR with `gh pr create --body-file SUMMARY.md` and later only commits and pushes fix rounds, the PR description is never refreshed: a gitignored summary file written on a fix round is simply lost. If review feedback asks for content in the PR body, pushing a new summary file does nothing; run `gh pr edit <n> --body-file <file>` as well. A lost summary from an earlier agent round can usually be recovered from that session's transcript (the last Write call to the summary file) instead of being rewritten from memory.
