fix: 清理 trans 文本旧入口示例

This commit is contained in:
Codex
2026-07-13 05:29:30 +02:00
parent c04983455e
commit 76758b58fd
7 changed files with 96 additions and 18 deletions
+1 -1
View File
@@ -780,7 +780,7 @@ function appendParserFailureHint(lines: string[], message: string, details: Reco
return;
}
if (message.startsWith("invalid patch:")) {
lines.push("Hint: apply-patch expects a single stdin patch whose first non-wrapper line is *** Begin Patch and last line is *** End Patch. Quoted heredocs such as `cat <<'PATCH' > /tmp/patch.diff` preserve the required leading spaces.");
lines.push("Hint: apply-patch expects a single stdin patch whose first non-wrapper line is *** Begin Patch and last line is *** End Patch. Send it directly with `trans <route> apply-patch <<'PATCH'`; quoted heredocs preserve required leading spaces without a temporary patch file.");
lines.push("Hint: apply-patch remains the v2 engine only; v1 is never auto-selected for malformed MiniMax/MXCX patch envelopes.");
}
}