graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
Release v0.0.302.25
justrachf869b1a23790
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 702d5e14..9d9c8e76 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,6 +10,23 @@ The release workflow uses a tag's section here as its release notes (ahand-written `docs/releases/<tag>.md` wins if present), so keeping this filecurrent is part of cutting a release.+## v0.0.302.25++### Compaction (hotfix)++- On the ChatGPT-plan sign-in, the OpenAI API and Codegraff's GPT models, a long session no longer compacts before every tool call. The context meter read the provider's encrypted compaction state as text, so a session anchored on it looked over the window on every step, and each compaction produced state of the same size (ADR 0259).+- These routes now compact only with the provider's own compaction. A failed compaction reports the error instead of falling back to a local summary; `GRAFF_SERVER_COMPACT=0` still opts out.++### Hosted models++- Fewer requests per task for one hosted model family: chained shell steps, no read-backs of a file just written, and the completion may share the final response (ADR 0256).+- On the stateful hosted chat route, the project instructions and layout are sent once per conversation instead of with every request (ADR 0258).+- An empty tool result is sent as "(no output)" on every wire, so one empty result no longer makes every later request in a hosted chat conversation fail.++### MCP++- A slimmed comment list keeps the issue its rows belong to, so results fetched in parallel say which issue they describe (ADR 0257).+## v0.0.302.24### Codegraff sign-indiff --git a/docs/releases/v0.0.302.25.md b/docs/releases/v0.0.302.25.mdnew file mode 100644index 00000000..3f7a8011--- /dev/null+++ b/docs/releases/v0.0.302.25.md@@ -0,0 +1,35 @@+# Codegraff v0.0.302.25++A compaction hotfix for ChatGPT and OpenAI sessions, plus fewer requests on hosted models.++## Long ChatGPT and OpenAI sessions stop compacting on every step++On the ChatGPT-plan sign-in, the OpenAI API and Codegraff's GPT models, a long+session could start compacting before every tool call and never stop: each+step waited on a full compaction request, and the context meter showed more+than the window. The meter was reading the provider's encrypted compaction+state as if it were text. That state is far denser than text, so a session+anchored on it looked full on every step, and each new compaction produced+state of the same size. The meter now counts that state at its own rate, so+the session compacts only when the window is actually full+([ADR 0259](https://github.com/justrach/codegraff/blob/v0.0.302.25/docs/adr/0259-openai-routes-compact-only-server-side.md)).++These routes now compact only with the provider's own compaction. If it fails,+you see the error instead of a silent local summary that would discard state+the provider still holds. `GRAFF_SERVER_COMPACT=0` still switches back to the+local summary.++## Fewer requests on hosted models++- One hosted model family takes fewer requests per task: dependent shell steps+ chain, a file just written is not read back, and the completion can share+ the final response.+- On the stateful hosted chat route, the project instructions and layout are+ sent once per conversation instead of with every request.+- An empty tool result is sent as "(no output)", so one empty result no longer+ makes every later request in a hosted chat conversation fail.++## MCP++A slimmed comment list keeps the issue its rows belong to, so results fetched+in parallel say which issue they describe.diff --git a/scripts/eval/tier1-manifest.json b/scripts/eval/tier1-manifest.jsonindex 7ddef366..96765514 100644--- a/scripts/eval/tier1-manifest.json+++ b/scripts/eval/tier1-manifest.json@@ -14,7 +14,7 @@"src/main.zig","src/repl.zig"],- "test_count_baseline": 3146,+ "test_count_baseline": 3160,"test_count_slack": 25,"required_invariants": [{diff --git a/src/cli.zig b/src/cli.zigindex 3f268238..8c25e311 100644--- a/src/cli.zig+++ b/src/cli.zig@@ -23,6 +23,11 @@ const update_target = @import("update_target.zig");pub const changelog_text =\\What's new\\──────────+ \\0.0.302.25+ \\ • ChatGPT/OpenAI sessions no longer compact before every tool call+ \\ • OpenAI routes compact only with the provider's own compaction+ \\ • fewer hosted-model requests per task; empty tool results no longer break a chat+ \\\\0.0.302.24\\ • Codegraff sign-in: models on the Messages wire use it natively\\ • goals set from the desktop app start immediately; unfinished work survives a question