Skip to content

Commit 6f9068e

Browse files
committed
fix: Apply validator question check to English manifest warning as well
1 parent cdbc4be commit 6f9068e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

backend/api/routers/chat_router.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2024,7 +2024,9 @@ def build_philosophical_lead_in(question: str) -> str:
20242024
else:
20252025
# CRITICAL: Extract newline character outside f-string to avoid syntax error
20262026
manifest_warning_en = ""
2027-
if has_manifest:
2027+
# CRITICAL: Only inject manifest instruction if question is about validators/layers
2028+
# Otherwise, it will override the actual question (e.g., Knowledge Gap questions)
2029+
if has_manifest and is_validator_question:
20282030
# Use manifest info from context if available, otherwise fallback to ManifestLoader
20292031
if manifest_info:
20302032
manifest_info_display = manifest_info

0 commit comments

Comments
 (0)