fix(wiki): a merge draft merges or fails, never a silent append (#1195) #1196
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/1195-merge-draft"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is the backend half of #1195.
merge_lore_entry_bodyasked for at most 2,048 tokens, and on prod Gemma 4 spent all 2,048 thinking (finish_reason='length', empty content). It now usesmax_tokens=None, like every other wiki rewrite inaudio_service.fallback_append(default True), controls what happens when the AI call fails or returns nothing.existing + "\n\n" + new.lore_service.approve_lore_proposalkeeps its logged append (#287).Tests (new, in
tests/test_lore_drafts.py):fallback_append=Falseraises in both cases;All 146 tests across the lore, LLM-policy and unidentified-item modules pass on docker-test, and ruff format and check are clean.
The other half, a line on the draft screen saying the GM-only text is kept, waits for the owner's wording.
🤖 Generated with Claude Code