mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-01 23:44:15 -07:00
Feat/browser agent progress emission (#21218)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -927,11 +927,11 @@ describe('LocalAgentExecutor', () => {
|
||||
expect(activities).toContainEqual(
|
||||
expect.objectContaining({
|
||||
type: 'ERROR',
|
||||
data: {
|
||||
data: expect.objectContaining({
|
||||
context: 'tool_call',
|
||||
name: TASK_COMPLETE_TOOL_NAME,
|
||||
error: expectedError,
|
||||
},
|
||||
}),
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -1213,11 +1213,11 @@ describe('LocalAgentExecutor', () => {
|
||||
expect(activities).toContainEqual(
|
||||
expect.objectContaining({
|
||||
type: 'ERROR',
|
||||
data: {
|
||||
data: expect.objectContaining({
|
||||
context: 'tool_call',
|
||||
name: TASK_COMPLETE_TOOL_NAME,
|
||||
error: expect.stringContaining('Output validation failed'),
|
||||
},
|
||||
}),
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -1338,11 +1338,11 @@ describe('LocalAgentExecutor', () => {
|
||||
expect(activities).toContainEqual(
|
||||
expect.objectContaining({
|
||||
type: 'ERROR',
|
||||
data: {
|
||||
data: expect.objectContaining({
|
||||
context: 'tool_call',
|
||||
name: LS_TOOL_NAME,
|
||||
error: toolErrorMessage,
|
||||
},
|
||||
}),
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -1699,15 +1699,17 @@ describe('LocalAgentExecutor', () => {
|
||||
expect(activities).toContainEqual(
|
||||
expect.objectContaining({
|
||||
type: 'THOUGHT_CHUNK',
|
||||
data: {
|
||||
data: expect.objectContaining({
|
||||
text: 'Execution limit reached (MAX_TURNS). Attempting one final recovery turn with a grace period.',
|
||||
},
|
||||
}),
|
||||
}),
|
||||
);
|
||||
expect(activities).toContainEqual(
|
||||
expect.objectContaining({
|
||||
type: 'THOUGHT_CHUNK',
|
||||
data: { text: 'Graceful recovery succeeded.' },
|
||||
data: expect.objectContaining({
|
||||
text: 'Graceful recovery succeeded.',
|
||||
}),
|
||||
}),
|
||||
);
|
||||
});
|
||||
@@ -1784,9 +1786,9 @@ describe('LocalAgentExecutor', () => {
|
||||
expect(activities).toContainEqual(
|
||||
expect.objectContaining({
|
||||
type: 'THOUGHT_CHUNK',
|
||||
data: {
|
||||
data: expect.objectContaining({
|
||||
text: 'Execution limit reached (ERROR_NO_COMPLETE_TASK_CALL). Attempting one final recovery turn with a grace period.',
|
||||
},
|
||||
}),
|
||||
}),
|
||||
);
|
||||
});
|
||||
@@ -1882,9 +1884,9 @@ describe('LocalAgentExecutor', () => {
|
||||
expect(activities).toContainEqual(
|
||||
expect.objectContaining({
|
||||
type: 'THOUGHT_CHUNK',
|
||||
data: {
|
||||
data: expect.objectContaining({
|
||||
text: 'Execution limit reached (TIMEOUT). Attempting one final recovery turn with a grace period.',
|
||||
},
|
||||
}),
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user