Address cross-provider review findings for browse-path resolve and test anchor

This commit is contained in:
Rod Boev authored and nesquena-hermes committed 2026-06-19 21:11:10 +00:00
1 parent 46c3e495fc
commit 3f6369ae5c
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -7337,6 +7337,7 @@ def handle_get(handler, parsed) -> bool:
if not wiki_root or not os.path.isdir(wiki_root):
return bad(handler, "Wiki not configured or directory not found", status=404)
page_paths = _llm_wiki_page_files(wiki_root)
wiki_root = Path(wiki_root).resolve()
pages = []
for fp in sorted(page_paths, key=lambda p: str(p).lower()):
try:
+1 -1
View File
@@ -42,7 +42,7 @@ def test_count_files_has_iteration_cap():
def test_page_files_has_iteration_cap():
src = _read_source()
start = src.find("def _llm_wiki_page_files(")
start = src.find("def _llm_wiki_page_files_uncached(")
end = src.find("\ndef ", start + 1)
body = src[start:end]
assert "_LLM_WIKI_MAX_FILES" in body