Merge pull request #568 from tmustier/gemini-raw-stream

fix: restore ESC interrupt after auto-retry and correct retry abort messaging
This commit is contained in:
Mario Zechner
2026-01-08 18:50:47 +01:00
committed by GitHub
4 changed files with 199 additions and 146 deletions

View File

@@ -435,6 +435,11 @@ export class AgentSession {
return this.agent.state.isStreaming;
}
/** Current retry attempt (0 if not retrying) */
get retryAttempt(): number {
return this._retryAttempt;
}
/**
* Get the names of currently active tools.
* Returns the names of tools currently set on the agent.
@@ -1567,7 +1572,7 @@ export class AgentSession {
*/
abortRetry(): void {
this._retryAbortController?.abort();
this._retryAttempt = 0;
// Note: _retryAttempt is reset in the catch block of _autoRetry
this._resolveRetry();
}