diff --git a/communique.toml b/communique.toml index ee652a75..903d397c 100644 --- a/communique.toml +++ b/communique.toml @@ -17,7 +17,12 @@ maintainers validating GitHub Release and npm artifacts. [defaults] #model = "claude-opus-4-7" -#max_tokens = 4096 +# Communique 1.1.3 caps each model response at 4096 tokens when this is unset. +# One submit_release_notes call (changelog + title + body) needs more than that +# once a release has ~15 commits, so every call was cut off mid-answer and Release +# Please failed with communique::malformed_submission. 16384 is the default that +# Communique 1.2.2 moved to. +max_tokens = 16384 repo = "coder/agent-tty" #provider = "anthropic" #base_url = "" diff --git a/docs/RELEASE-PROCESS.md b/docs/RELEASE-PROCESS.md index 9516af62..91a5fdd8 100644 --- a/docs/RELEASE-PROCESS.md +++ b/docs/RELEASE-PROCESS.md @@ -243,6 +243,12 @@ gh workflow run release-please.yml Wrong version → land a `Release-As` commit. Wrong notes → fix the merged feature PR bodies (or add `BEGIN_COMMIT_OVERRIDE` blocks) and rerun. Never edit the release PR directly; edits are overwritten. +### Release Please fails with `communique::malformed_submission` + +Communique gave up after three `submit_release_notes` calls that lacked a required field (`changelog`, `release_title` or `release_body`). The cause seen so far is the model answer being cut off at Communique's response limit, `max_tokens`. Communique 1.1.3 uses 4096 when `communique.toml` does not set it, and one call needs more than that once a release has about 15 commits. `communique.toml` therefore sets `max_tokens = 16384` under `[defaults]`. A key outside `[defaults]` is silently ignored. + +A run log that shows `WARN submit_release_notes was malformed 3 times ... salvaging the last attempt` hit the same cut-off and only passed because the last attempt kept its changelog. If the error returns, raise `max_tokens` before rerunning. + ### The release PR merged but no tag or GitHub Release appeared The Release Please run triggered by the merge failed before `createReleases()` finished. Rerun it — release creation is idempotent (it finds merged release PRs still labeled `autorelease: pending`): diff --git a/src/tools/README.md b/src/tools/README.md index 907a0a41..7aa62242 100644 --- a/src/tools/README.md +++ b/src/tools/README.md @@ -24,7 +24,7 @@ Maintainer tools that run with `tsx` outside the `agent-tty` CLI. They build and - `applyHeroVideoUrls(options)`: subcommand `apply-video-urls --codex-url URL --claude-url URL [--bundle-dir] [--root-readme]`. Writes the uploaded video URLs into the root `README.md` and the bundle `README.md`. [hero-video-playback.ts:applyHeroVideoUrls] - `posterConcatFilter`, `replaceVideoSrcs`, `PrepareHeroVideoUploadAssetsOptions`, `ApplyHeroVideoUrlsOptions`: ffmpeg filter and `