清理未使用的策划会话入口
Project CI / Repository checks (pull_request) Successful in 2m46s
Project CI / Frontend tests (pull_request) Successful in 3m20s
Project CI / Backend tests (pull_request) Successful in 5m46s
Project CI / Native shell tests (pull_request) Successful in 17m26s

删除硬编码 quality 模型的 ensure_design_session

保留现有 selected_model_id 创建链路
This commit is contained in:
2026-09-11 11:28:47 +00:00
parent 1102b5af23
commit f8f1cdd1f4
@@ -211,21 +211,6 @@ pub(crate) fn write_design_session(root: &Path, session: &DesignSession) -> Resu
)
}
pub(crate) fn ensure_design_session(
root: &Path,
project_id: &str,
) -> Result<DesignSession, String> {
if let Some(session) = read_design_session(root)? {
if session.project_id != project_id {
return Err("策划会话与当前项目不匹配".to_string());
}
return Ok(session);
}
let session = new_design_session(project_id.to_string(), "quality");
write_design_session(root, &session)?;
Ok(session)
}
pub(crate) fn design_phase_index(phase: &str) -> Result<usize, String> {
DESIGN_PHASES
.iter()