fix: ignore trace-frame terminal placeholders (#854)

Co-authored-by: Codex <codex@noreply.local>
This commit is contained in:
Lyon
2026-06-25 05:40:10 +08:00
committed by GitHub
parent a270b19eee
commit 1b94202128
@@ -195,7 +195,7 @@ function userMessageFor(items,prompt){
function cleanFinalResponseText(text){
const raw=String(text||'').trim();
if(!raw) return '';
if(/^Code Agent$/iu.test(raw)) return '';
if(/^Code Agent\\s*(?:running|completed|failed|canceled|cancelled)?$/iu.test(raw)) return '';
if(/Code Agent\\s*耗时[\\s\\S]*运行记录/iu.test(raw)) return '';
if(/^sent\\s+当前 AgentRun 请求已取消/u.test(raw)) return '';
if(/^(admitted|run|ok|error)\\s+/iu.test(raw)) return '';