fix: dispatcher _legacy_on_complete 闭包内删除错误的重复 import
get_connection 已在文件顶部 L22 import(from src.blackboard.db), 闭包内 L258 错误地 from src.daemon.db import(模块不存在), 会触发 ImportError 被 try/except 吞掉导致 review verdict 逻辑不生效。 司马懿 review 发现。
This commit is contained in:
@@ -255,7 +255,7 @@ class Dispatcher:
|
||||
if _is_review:
|
||||
if _task_db and outcome in ("completed", "session_revived"):
|
||||
from src.blackboard.blackboard import Blackboard
|
||||
from src.daemon.db import get_connection
|
||||
# get_connection 已在文件顶部 L22 import
|
||||
rconn = get_connection(_task_db)
|
||||
try:
|
||||
review_row = rconn.execute(
|
||||
|
||||
Reference in New Issue
Block a user