GitNexus/docs
enih 1e5a1ad01e
fix(wiki): configure limits and retry truncated pages (#3775)
* feat(wiki): let callers set the completion token limit

Reasoning models can spend the hardcoded 16384 cap before a page is finished. Keep that default, and honor a flag, GITNEXUS_MAX_COMPLETION_TOKENS, or maxCompletionTokens in the CLI config.

Fixes #3774

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(wiki): reject LLM responses cut off at the completion token limit

callLLM accepted a response whose finish_reason was "length" as a
finished one, streamed or not, so a page cut off mid-sentence or
mid-table was written and the run reported success. With a reasoning
model the limit can be spent before the answer starts.

Both paths now throw when the provider reports finish_reason "length",
naming the limit. The generator already treats a thrown error as a
failed module: the page is not written, the module is listed under
"Failed modules", and the next run regenerates it.

---------

Co-authored-by: nullptr <null@null.ptr>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Samuel Mbabhazi <samuelmbabhazi@gmail.com>
Co-authored-by: Gergo Magyar <gergomagyar0@gmail.com>
Co-authored-by: Gergő Magyar <gergomagyar@icloud.com>
2026-10-31 13:24:37 +00:00
..
languages docs: simplify guides and verify receiver gaps (#3694) 2026-10-23 09:06:03 +01:00
optimize fix(taint): avoid false positives for guarded Git arguments (#3703) 2026-10-24 15:37:26 +01:00
plans feat: add the test scenario map and a Vitest 5 mutation runner (#3686) 2026-10-27 16:46:58 +00:00
cli-reference.md feat(ingestion): opt-in indexing of named dot directories (GITNEXUS_INCLUDE_DOT_DIRS) (#3745) 2026-10-29 07:02:45 +00:00
deployment.md feat(web): resolve a root-relative GITNEXUS_BACKEND_URL against the page origin (#3640) 2026-10-24 08:45:24 +01:00
editor-setup.md feat(opencode): ship hooks as auto-loaded global plugin for full support (#3619) 2026-10-28 13:45:08 +00:00
mcp-reference.md docs: simplify guides and verify receiver gaps (#3694) 2026-10-23 09:06:03 +01:00
wiki-generation.md fix(wiki): configure limits and retry truncated pages (#3775) 2026-10-31 13:24:37 +00:00