From dfa8b541b4b70bd61f2a2e162be41efdd3d6d5ee Mon Sep 17 00:00:00 2001 From: catlog22 Date: Thu, 25 Dec 2025 13:21:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=AF=AD=E4=B9=89?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E6=A3=80=E6=B5=8B=20Python=20=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E7=BC=A9=E8=BF=9B=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 之前的 commit 3c3ce55 错误地在 checkSemanticStatus 的 Python 代码 每行前添加了一个空格,导致 Python IndentationError,使得前端 始终显示"语义搜索依赖未安装"。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- ccw/src/tools/codex-lens.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ccw/src/tools/codex-lens.ts b/ccw/src/tools/codex-lens.ts index b4c35fc7..e29d6cab 100644 --- a/ccw/src/tools/codex-lens.ts +++ b/ccw/src/tools/codex-lens.ts @@ -196,9 +196,9 @@ async function checkSemanticStatus(): Promise { // Check semantic module availability and accelerator info return new Promise((resolve) => { const checkCode = ` - import sys - import json - try: +import sys +import json +try: import codexlens.semantic as semantic SEMANTIC_AVAILABLE = bool(getattr(semantic, "SEMANTIC_AVAILABLE", False)) SEMANTIC_BACKEND = getattr(semantic, "SEMANTIC_BACKEND", None)