fix: cockpit_context.dspy 加 json import + dbname

This commit is contained in:
yumoqing 2026-08-05 18:11:41 +08:00
parent 8d158dcc86
commit d33889c4ae

View File

@ -1,5 +1,7 @@
# cockpit_context.dspy — 返回当前上下文(项目/迭代),供前端 context_bar 显示
import json
dbname = get_module_dbname('pipeline-sdlc')
async with DBPools().sqlorContext(dbname) as sor:
recs = await sor.sqlExe(
"SELECT current_project_id, current_iteration_id FROM pipeline_agent_settings WHERE user_id=${uid}$",