Skip to content

Commit ea1c1d7

Browse files
committed
fix: set readOnly as telemetry bool
1 parent 071fc3b commit ea1c1d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export class Server {
190190

191191
if (command === "start") {
192192
event.properties.startup_time_ms = commandDuration;
193-
event.properties.read_only_mode = this.userConfig.readOnly || false;
193+
event.properties.read_only_mode = this.userConfig.readOnly ? "true" : "false";
194194
event.properties.disabled_tools = this.userConfig.disabledTools || [];
195195
event.properties.confirmation_required_tools = this.userConfig.confirmationRequiredTools || [];
196196
}

src/telemetry/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export type ServerEventProperties = {
4343
reason?: string;
4444
startup_time_ms?: number;
4545
runtime_duration_ms?: number;
46-
read_only_mode?: boolean;
46+
read_only_mode?: TelemetryBoolSet;
4747
disabled_tools?: string[];
4848
confirmation_required_tools?: string[];
4949
};

0 commit comments

Comments
 (0)