fix return type of fireSessionStartEvent to defaultHookOutput (#16833)

This commit is contained in:
Vedant Mahajan
2026-01-20 08:55:43 +05:30
committed by GitHub
parent 05c0a8eac3
commit 155d9aafe2
4 changed files with 32 additions and 23 deletions

View File

@@ -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(