chore: address PR feedback by adding inline comments

This commit is contained in:
Akhilesh Kumar
2026-03-11 17:13:32 +00:00
parent d4b7d358c5
commit 2e6c81e7ad
2 changed files with 7 additions and 1 deletions
+5 -1
View File
@@ -2832,7 +2832,11 @@ export class Config implements McpContext, AgentLoopContext {
}
async createToolRegistry(): Promise<ToolRegistry> {
const registry = new ToolRegistry(this, this.messageBus, true);
const registry = new ToolRegistry(
this,
this.messageBus,
/* isMainRegistry= */ true,
);
// helper to create & register core tools that are enabled
const maybeRegister = (
+2
View File
@@ -381,6 +381,8 @@ export abstract class DeclarativeTool<
) {}
clone(messageBus?: MessageBus): this {
// Note: we cannot use structuredClone() here because it does not preserve
// prototype chains or handle non-serializable properties (like functions).
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
const cloned = Object.assign(
Object.create(Object.getPrototypeOf(this)),