From 984616f5c40509ee0d0a8d565a74dc34bc072a9d Mon Sep 17 00:00:00 2001 From: naps62 Date: Tue, 11 Aug 2026 20:15:40 +0000 Subject: [PATCH] fix: rev fallback asks for multi-line markdown reply bodies Co-Authored-By: Claude Fable 5 --- entry/CLAUDE.md | 5 +++-- entry/codex-AGENTS.md | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/entry/CLAUDE.md b/entry/CLAUDE.md index 64a2b4a..adbc10e 100644 --- a/entry/CLAUDE.md +++ b/entry/CLAUDE.md @@ -30,8 +30,9 @@ `https://rev.n62.casa/review?dir=&base=`, while the API to call is `http://localhost:7373`; long-poll `GET /api/comments?dir=&since=&wait=1`, reply in-thread via - `POST /api/comments` with author `"agent"` + `parentId`, never mark - threads resolved. + `POST /api/comments` with author `"agent"` + `parentId` and a real + multi-line markdown body (pipe a heredoc through `jq -Rs`, never a + body inlined on one line), never mark threads resolved. ## Crit reviews (plans, live pages, HTML files — code diffs go to rev) - **`crit live` / `crit preview` write comments to a local review FILE, not an API** — there is NO notification and `crit fetch` does NOT apply (it needs a prior `crit share`). `/api/comments` on the daemon is the WRONG place (stays `[]`). If I launched the crit server myself, I must poll the review file myself. diff --git a/entry/codex-AGENTS.md b/entry/codex-AGENTS.md index 77ad1a8..ce81d3f 100644 --- a/entry/codex-AGENTS.md +++ b/entry/codex-AGENTS.md @@ -23,7 +23,7 @@ ## Rev code reviews - For code-change reviews, hand the user a URL on the always-on rev server: `http://localhost:7373/review?dir=&base=`. Do not start crit for code diffs. -- Poll `GET http://localhost:7373/api/comments?dir=&since=&wait=1` (seed the cursor from an initial call); reply in-thread via `POST /api/comments` with author `"agent"` and `parentId` = root comment id. Never mark threads resolved. +- Poll `GET http://localhost:7373/api/comments?dir=&since=&wait=1` (seed the cursor from an initial call); reply in-thread via `POST /api/comments` with author `"agent"`, `parentId` = root comment id, and a real multi-line markdown body (pipe a heredoc through `jq -Rs`, never a body inlined on one line). Never mark threads resolved. ## Crit (plans, live pages, HTML files — code diffs go to rev)