部分导入按失败回的口径落注释:不再按 write_permit 区分 isError
Project CI / AI game creator shell Rust smoke (pull_request) Successful in 2m35s
Project CI / AI game creator shell Rust crates (pull_request) Successful in 1m19s
Project CI / Backend tests (pull_request) Failing after 18s
Project CI / Frontend tests (pull_request) Successful in 2m0s
Project CI / Repository checks (pull_request) Failing after 21s
Project CI / AI game creator shell web tests (pull_request) Successful in 1m48s
Project CI / Native shell tests (pull_request) Successful in 5m44s
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Failing after 10m38s
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Successful in 11m15s
Project CI / AI game creator shell Rust smoke (pull_request) Successful in 2m35s
Project CI / AI game creator shell Rust crates (pull_request) Successful in 1m19s
Project CI / Backend tests (pull_request) Failing after 18s
Project CI / Frontend tests (pull_request) Successful in 2m0s
Project CI / Repository checks (pull_request) Failing after 21s
Project CI / AI game creator shell web tests (pull_request) Successful in 1m48s
Project CI / Native shell tests (pull_request) Successful in 5m44s
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Failing after 10m38s
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Successful in 11m15s
- bridge_import_account_assets 的 failed/partial 分支补注释,说明 partial 与 failed 一样按失败回是有意为之,口径已确认 - 只加注释,不改行为:report 仍在消息里,Direct 回合与外部 MCP 客户端的 isError 保持一致
This commit is contained in:
@@ -2158,6 +2158,9 @@ async fn bridge_import_account_assets(
|
||||
"failures": failures,
|
||||
"revisionAdvanceCount": revision_after.saturating_sub(revision_before),
|
||||
});
|
||||
// 口径(2026-10 已确认):partial 与 failed 一样按失败回,isError 对 Direct 回合与外部
|
||||
// MCP 客户端一致。不再按 write_permit 区分——部分导入意味着导入清单与调用方预期不一致,
|
||||
// 必须让调用方走对账,而不是拿 isError=false 继续往下操作。report 仍在消息里,信息不丢。
|
||||
match status {
|
||||
"failed" => Err(ImportAccountAssetsError::ImportFailed { report: value }),
|
||||
"partial" => Err(ImportAccountAssetsError::ImportPartial { report: value }),
|
||||
|
||||
Reference in New Issue
Block a user