隐藏策划资源读取提示中的资源名称
Project CI / AI game creator shell Rust crates (pull_request) Successful in 1m31s
Project CI / AI game creator shell Rust smoke (pull_request) Successful in 1m44s
Project CI / Backend tests (pull_request) Successful in 4m34s
Project CI / Native shell tests (pull_request) Successful in 6m30s
Project CI / Frontend tests (pull_request) Successful in 2m12s
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Successful in 9m11s
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Successful in 9m39s
Project CI / AI game creator shell web tests (pull_request) Successful in 1m47s
Project CI / Repository checks (pull_request) Successful in 2m27s
Project CI / AI game creator shell Rust crates (pull_request) Successful in 1m31s
Project CI / AI game creator shell Rust smoke (pull_request) Successful in 1m44s
Project CI / Backend tests (pull_request) Successful in 4m34s
Project CI / Native shell tests (pull_request) Successful in 6m30s
Project CI / Frontend tests (pull_request) Successful in 2m12s
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Successful in 9m11s
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Successful in 9m39s
Project CI / AI game creator shell web tests (pull_request) Successful in 1m47s
Project CI / Repository checks (pull_request) Successful in 2m27s
工具提示不再附加资源 ID,保留文件路径展示和实际读写行为。 同步策划 Agent 技术方案,说明新提示与历史消息的适用范围。
This commit is contained in:
@@ -563,10 +563,7 @@ fn design_tool_line(call: &platform_llm::LlmToolCall, error: Option<&str>) -> St
|
||||
_ => &call.name,
|
||||
};
|
||||
let args: Value = serde_json::from_str(&call.arguments).unwrap_or(Value::Null);
|
||||
let path = args
|
||||
.get("path")
|
||||
.or_else(|| args.get("resource_id"))
|
||||
.and_then(Value::as_str);
|
||||
let path = args.get("path").and_then(Value::as_str);
|
||||
let line = match (path, error) {
|
||||
(_, Some(error)) => format!("{label}失败:{error}"),
|
||||
(Some(path), None) => format!("{label}:{path}"),
|
||||
|
||||
Reference in New Issue
Block a user