mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-16 00:51:25 -07:00
fix return type of fireSessionStartEvent to defaultHookOutput (#16833)
This commit is contained in:
@@ -94,11 +94,12 @@ export class HookSystem {
|
||||
*/
|
||||
async fireSessionStartEvent(
|
||||
source: SessionStartSource,
|
||||
): Promise<AggregatedHookResult | undefined> {
|
||||
): Promise<DefaultHookOutput | undefined> {
|
||||
if (!this.config.getEnableHooks()) {
|
||||
return undefined;
|
||||
}
|
||||
return this.hookEventHandler.fireSessionStartEvent(source);
|
||||
const result = await this.hookEventHandler.fireSessionStartEvent(source);
|
||||
return result.finalOutput;
|
||||
}
|
||||
|
||||
async fireSessionEndEvent(
|
||||
|
||||
Reference in New Issue
Block a user