Skip to content

Commit 563ea9c

Browse files
committed
fix: pass doc_type and doc_brief in early return paths
1 parent b112dbf commit 563ea9c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

openkb/agent/compiler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ async def _compile_concepts(
547547
except (json.JSONDecodeError, ValueError) as exc:
548548
logger.warning("Failed to parse concepts plan: %s", exc)
549549
logger.debug("Raw: %s", plan_raw)
550-
_update_index(wiki_dir, doc_name, [])
550+
_update_index(wiki_dir, doc_name, [], doc_brief=doc_brief, doc_type=doc_type)
551551
return
552552

553553
# Fallback: if LLM returns a flat list, treat all items as "create"
@@ -565,7 +565,7 @@ async def _compile_concepts(
565565
related_items = plan["related"]
566566

567567
if not create_items and not update_items and not related_items:
568-
_update_index(wiki_dir, doc_name, [])
568+
_update_index(wiki_dir, doc_name, [], doc_brief=doc_brief, doc_type=doc_type)
569569
return
570570

571571
# --- Step 3: Generate/update concept pages concurrently (A cached) ---

0 commit comments

Comments
 (0)