File tree 1 file changed +4
-1
lines changed
codex-cli/src/utils/agent
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -860,13 +860,16 @@ export class AgentLoop {
860
860
this . onItem ( item ) ;
861
861
}
862
862
}
863
+ // guarading clear
864
+ // because we may still enter this after abort
865
+ this . pendingAborts . clear ( ) ;
863
866
}
864
867
865
868
// At this point the turn finished without the user invoking
866
869
// `cancel()`. Any outstanding function‑calls must therefore have been
867
870
// satisfied, so we can safely clear the set that tracks pending aborts
868
871
// to avoid emitting duplicate synthetic outputs in subsequent runs.
869
- this . pendingAborts . clear ( ) ;
872
+ // this.pendingAborts.clear();
870
873
// Now emit system messages recording the per‑turn *and* cumulative
871
874
// thinking times so UIs and tests can surface/verify them.
872
875
// const thinkingEnd = Date.now();
You can’t perform that action at this time.
0 commit comments