We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09f0ae3 commit 882b8b0Copy full SHA for 882b8b0
codex-cli/src/utils/agent/agent-loop.ts
@@ -119,8 +119,6 @@ export class AgentLoop {
119
return;
120
}
121
122
- // Reset the current stream to allow new requests
123
- this.currentStream = null;
124
log(
125
`AgentLoop.cancel() invoked – currentStream=${Boolean(
126
this.currentStream,
@@ -132,6 +130,9 @@ export class AgentLoop {
132
130
this.currentStream as { controller?: { abort?: () => void } } | null
133
131
)?.controller?.abort?.();
134
+ // Reset the current stream to allow new requests
+ this.currentStream = null;
135
+
136
this.canceled = true;
137
138
// Abort any in-progress tool calls
0 commit comments