mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-04 19:47:11 +00:00
Improved code coverage for cli/src/zed-integration (#13570)
This commit is contained in:
@@ -66,7 +66,7 @@ export async function runZedIntegration(
|
||||
);
|
||||
}
|
||||
|
||||
class GeminiAgent {
|
||||
export class GeminiAgent {
|
||||
private sessions: Map<string, Session> = new Map();
|
||||
private clientCapabilities: acp.ClientCapabilities | undefined;
|
||||
|
||||
@@ -209,7 +209,7 @@ class GeminiAgent {
|
||||
}
|
||||
}
|
||||
|
||||
class Session {
|
||||
export class Session {
|
||||
private pendingPrompt: AbortController | null = null;
|
||||
|
||||
constructor(
|
||||
@@ -296,6 +296,10 @@ class Session {
|
||||
functionCalls.push(...resp.value.functionCalls);
|
||||
}
|
||||
}
|
||||
|
||||
if (pendingSend.signal.aborted) {
|
||||
return { stopReason: 'cancelled' };
|
||||
}
|
||||
} catch (error) {
|
||||
if (getErrorStatus(error) === 429) {
|
||||
throw new acp.RequestError(
|
||||
|
||||
Reference in New Issue
Block a user