mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-14 22:02:59 -07:00
test(core): harden messageBus subscription for legacy-agent-session tests
This commit is contained in:
@@ -99,10 +99,12 @@ export class LegacyAgentProtocol implements AgentProtocol {
|
||||
this._scheduler = scheduler;
|
||||
}
|
||||
|
||||
this._config.messageBus.subscribe(
|
||||
MessageBusType.TOOL_CALLS_UPDATE,
|
||||
this._handleToolCallsUpdate.bind(this),
|
||||
);
|
||||
if (this._config.messageBus) {
|
||||
this._config.messageBus.subscribe(
|
||||
MessageBusType.TOOL_CALLS_UPDATE,
|
||||
this._handleToolCallsUpdate.bind(this),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
get events(): readonly AgentEvent[] {
|
||||
|
||||
Reference in New Issue
Block a user