feat(*): 添加 ConfigRoot 运行时配置目录隔离

* 新增 ControllerClientCompatOptions.ConfigRoot 及解析方法
* 兼容层默认从运行目录 Config 加载模型、轨迹和配置
* 移除隐式父工作区根目录推断,旧路径仅在显式配置时生效
* Host 项目编译时将 Config 目录复制到输出目录
* 请求响应日志中间件忽略 /api/status/snapshot 高频轮询
* 补充 ConfigRoot 和日志过滤相关单元测试
This commit is contained in:
2026-04-29 18:27:03 +08:00
parent c38faddbf0
commit a6579f1e5b
16 changed files with 451 additions and 143 deletions

View File

@@ -253,7 +253,7 @@ public sealed class RobotConfigLoader
}
/// <summary>
/// 推断仓库根目录,优先使用调用方显式传入的值。
/// 推断当前 replacement 仓库根目录,优先使用调用方显式传入的值。
/// </summary>
private static string ResolveRepoRoot(string? repoRoot)
{
@@ -267,7 +267,7 @@ public sealed class RobotConfigLoader
{
if (File.Exists(Path.Combine(current.FullName, "FlyshotReplacement.sln")))
{
return Path.GetFullPath(Path.Combine(current.FullName, ".."));
return current.FullName;
}
current = current.Parent;