mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-25 02:37:53 -07:00
fix: resolve Stage 2 rebase conflicts and restore non-breaking behavior
This commit is contained in:
@@ -81,7 +81,7 @@ export async function exportHistoryToFile(
|
||||
const {
|
||||
messages,
|
||||
filePath,
|
||||
trajectories: _trajectories, // Collected but not yet included in Stage 1 JSON output
|
||||
trajectories: _trajectories, // Collected but not yet included in Stage 2 JSON output
|
||||
history: providedHistory,
|
||||
} = options;
|
||||
const extension = path.extname(filePath).toLowerCase();
|
||||
|
||||
@@ -771,7 +771,7 @@ export class GeminiChat {
|
||||
}
|
||||
|
||||
throw new AgentExecutionBlockedError(
|
||||
beforeModelResult.reason || 'Model call blocked by hook',
|
||||
beforeModelResult.reason || 'Agent execution blocked by hook',
|
||||
syntheticResponse,
|
||||
);
|
||||
}
|
||||
@@ -1208,7 +1208,7 @@ export class GeminiChat {
|
||||
|
||||
if (hookResult.blocked) {
|
||||
throw new AgentExecutionBlockedError(
|
||||
hookResult.reason || 'Model call blocked by hook',
|
||||
hookResult.reason || 'Agent execution blocked by hook',
|
||||
hookResult.response,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user