From 79bffd7c088968eb1361f3434d247f91f90e8fb5 Mon Sep 17 00:00:00 2001 From: Jamie Mauro Date: Tue, 11 Aug 2026 13:38:10 -0400 Subject: [PATCH] fix(autodoc): add trailing newline to eval context; use random output delimiter The eval context file was written without a trailing newline, causing the closing GITHUB_OUTPUT delimiter to be appended to the last line of content rather than its own line. The runner never found the standalone delimiter and failed with "Matching delimiter not found". Also switch from a fixed __AUTODOC_EOF__ delimiter to openssl rand-generated hex so no future issue or PR body can accidentally inject the closing token. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/issue_autodoc.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/issue_autodoc.yml b/.github/workflows/issue_autodoc.yml index d3175cd813d..e8f71540a90 100644 --- a/.github/workflows/issue_autodoc.yml +++ b/.github/workflows/issue_autodoc.yml @@ -304,14 +304,15 @@ jobs: ] with open('/tmp/eval_context.md', 'w') as f: - f.write('\n'.join(lines)) + f.write('\n'.join(lines) + '\n') PYEOF python3 /tmp/ctx.py + DELIM="$(openssl rand -hex 16)" { - echo 'content<<__AUTODOC_EOF__' + echo "content<<${DELIM}" cat /tmp/eval_context.md - echo '__AUTODOC_EOF__' + echo "${DELIM}" } >> "$GITHUB_OUTPUT" claude: