From 3f6369ae5cd53f7135ca8f1bd605cb64406fb062 Mon Sep 17 00:00:00 2001 From: Rod Boev Date: Thu, 18 Jun 2026 16:15:30 -0400 Subject: [PATCH] Address cross-provider review findings for browse-path resolve and test anchor --- api/routes.py | 1 + tests/test_stage299_opus_fixes.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api/routes.py b/api/routes.py index 3fab4b50..257737d3 100644 --- a/api/routes.py +++ b/api/routes.py @@ -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: diff --git a/tests/test_stage299_opus_fixes.py b/tests/test_stage299_opus_fixes.py index 8c1aeb64..1f8afb8c 100644 --- a/tests/test_stage299_opus_fixes.py +++ b/tests/test_stage299_opus_fixes.py @@ -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