fix: 修复实例导入与日志路径的 Rust 类型问题
Axolotl desktop CI / guardrails (push) Has been cancelled
Axolotl desktop CI / desktop (macos-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (ubuntu-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (windows-latest) (push) Has been cancelled
Axolotl desktop CI / website (push) Has been cancelled
Repository checks / typos (push) Has been cancelled
Repository checks / tombi (push) Has been cancelled
Rust checks / shear (push) Has been cancelled
Sync source to CNB / Sync Git ref (push) Has been cancelled

实例导入时先保存相对路径,再移动完整路径,避免借用与移动冲突。
日志帧处理时将通用路径参数转换为 Path 引用,匹配处理函数的参数类型。
忽略本地 .tmp 目录中的下载包、第三方仓库和验证日志。
This commit is contained in:
Disy committed 2026-09-24 14:18:00 +08:00
1 parent e4fa234df1
commit c2bc7c2441
3 files changed
+4 -2

No files matched your search

+1
View File
@@ -79,6 +79,7 @@ access-jwt*.txt
# Codex local verification artifacts # Codex local verification artifacts
/.codex-* /.codex-*
/.tmp/
# Oh My Code # Oh My Code
.omc/ .omc/
+2 -1
View File
@@ -1215,7 +1215,8 @@ async fn collect_version_files(
continue; continue;
} }
if let Ok(rel) = abs_path.strip_prefix(version_dir) { if let Ok(rel) = abs_path.strip_prefix(version_dir) {
collected.push((abs_path, rel.to_path_buf())); let rel = rel.to_path_buf();
collected.push((abs_path, rel));
} }
} }
Ok(collected) Ok(collected)
+1 -1
View File
@@ -648,7 +648,7 @@ impl Process {
instance_id, instance_id,
instance_name, instance_name,
process_id, process_id,
&log_path, log_path.as_ref(),
&frame, &frame,
) )
.await; .await;