summaryrefslogtreecommitdiff
path: root/packages/core/src/config
diff options
context:
space:
mode:
Diffstat (limited to 'packages/core/src/config')
-rw-r--r--packages/core/src/config/config.test.ts5
-rw-r--r--packages/core/src/config/config.ts3
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/core/src/config/config.test.ts b/packages/core/src/config/config.test.ts
index 3fb71ae8..91f91729 100644
--- a/packages/core/src/config/config.test.ts
+++ b/packages/core/src/config/config.test.ts
@@ -488,11 +488,12 @@ describe('Server Config (config.ts)', () => {
},
);
- it('logs the session start event', () => {
- new Config({
+ it('logs the session start event', async () => {
+ const config = new Config({
...baseParams,
usageStatisticsEnabled: true,
});
+ await config.initialize();
expect(
ClearcutLogger.prototype.logStartSessionEvent,
diff --git a/packages/core/src/config/config.ts b/packages/core/src/config/config.ts
index 39e885e2..349a0f83 100644
--- a/packages/core/src/config/config.ts
+++ b/packages/core/src/config/config.ts
@@ -346,8 +346,6 @@ export class Config {
if (this.telemetrySettings.enabled) {
initializeTelemetry(this);
}
-
- logCliConfiguration(this, new StartSessionEvent(this));
}
/**
@@ -365,6 +363,7 @@ export class Config {
}
this.promptRegistry = new PromptRegistry();
this.toolRegistry = await this.createToolRegistry();
+ logCliConfiguration(this, new StartSessionEvent(this, this.toolRegistry));
}
async refreshAuth(authMethod: AuthType) {