open-code-review/internal/llmloop
xujiejie 71d29810be
feat(llmloop): backfill comment thinking from turn output (#773)
* feat(llmloop): backfill comment thinking from the turn's reasoning or message

Expose ChatResponse.ReasoningContent and backfill per-comment thinking
with the current turn's reasoning content, falling back to the assistant
message for models that do not expose reasoning, so --format json output
carries thinking even when the model omits it.

* fix(llmloop): drop content fallback for comment thinking backfill

The turn's assistant message is usually a short user-facing preamble
rather than real reasoning, so backfill per-comment thinking only from
the model's native reasoning_content and leave it empty otherwise.

Add a full-wiring RunPerFile test for the reasoning backfill and a
regression test that fails if the content fallback returns. Sync the
thinking docs across en/zh/ja/ru.

* docs(llmloop): note that turn-level thinking is shared by design

Document in the main loop and at the code_comment backfill site that
the model emits reasoning once per turn, so every tool call and
comment in the same turn intentionally shares the same thinking.
2026-08-10 14:52:51 +08:00
..
compression.go feat(config): make per-file token limit configurable (#716) 2026-08-07 11:23:38 +08:00
compression_test.go test: raise statement coverage to 90% and enforce it in CI (#747) 2026-08-06 12:55:44 +08:00
init_test.go chore: add SPDX license headers and automated verification (#740) 2026-08-05 21:26:27 +08:00
loop.go feat(llmloop): backfill comment thinking from turn output (#773) 2026-08-10 14:52:51 +08:00
loop_execute_more_test.go feat(llmloop): backfill comment thinking from turn output (#773) 2026-08-10 14:52:51 +08:00
loop_execute_test.go feat(llmloop): backfill comment thinking from turn output (#773) 2026-08-10 14:52:51 +08:00
loop_test.go feat(llmloop): backfill comment thinking from turn output (#773) 2026-08-10 14:52:51 +08:00
pool.go chore: add SPDX license headers and automated verification (#740) 2026-08-05 21:26:27 +08:00
pool_test.go chore: add SPDX license headers and automated verification (#740) 2026-08-05 21:26:27 +08:00
runner_test.go chore: add SPDX license headers and automated verification (#740) 2026-08-05 21:26:27 +08:00