Elffuss BraidHub

kikocis/continue public

fix: remove duplicate slash command telemetry
Changesetb4149ec45639ee242005d0cdf2474b8f1dcc3b17fcb40a82778476e2b84406d9
AuthorDallin Romney <dallinromney@gmail.com> · 2025-09-15 01:00 -07:00
CommitterDallin Romney <dallinromney@gmail.com> · 2025-09-15 01:00 -07:00
Parentsa660fc8009f5

Browse the files at this changeset

2 files changed

modified extensions/cli/src/infoScreen.ts +0 −3
@@ -9,13 +9,10 @@
99 } from "./auth/workos.js";
1010 import { services } from "./services/index.js";
1111 import { getCurrentSession, getSessionFilePath } from "./session.js";
12-import { posthogService } from "./telemetry/posthogService.js";
1312 import { logger } from "./util/logger.js";
1413 import { getVersion } from "./version.js";
1514
1615 export async function handleInfoSlashCommand() {
17- posthogService.capture("useSlashCommand", { name: "info" });
18-
1916 const infoLines = [];
2017
2118 // Version and working directory info
modified extensions/cli/src/slashCommands.ts +1 −16
@@ -48,12 +48,10 @@
4848 ` Type ${chalk.cyan("/")} to see available slash commands`,
4949 ` Type ${chalk.cyan("!")} followed by a command to execute bash directly`,
5050 ].join("\n");
51- posthogService.capture("useSlashCommand", { name: "help" });
5251 return { output: helpMessage };
5352 }
5453
5554 async function handleLogin() {
56- posthogService.capture("useSlashCommand", { name: "login" });
5755 try {
5856 const newAuthState = await services.auth.login();
5957 await reloadService(SERVICE_NAMES.AUTH);
@@ -79,7 +77,6 @@
7977 }
8078
8179 async function handleLogout() {
82- posthogService.capture("useSlashCommand", { name: "logout" });
8380 try {
8481 await services.auth.logout();
8582 return {
@@ -95,7 +92,6 @@
9592 }
9693
9794 function handleWhoami() {
98- posthogService.capture("useSlashCommand", { name: "whoami" });
9995 if (isAuthenticated()) {
10096 const config = loadAuthConfig();
10197 if (config && isAuthenticatedConfig(config)) {
@@ -118,8 +114,6 @@
118114 }
119115
120116 async function handleFork() {
121- posthogService.capture("useSlashCommand", { name: "fork" });
122-
123117 try {
124118 const currentSession = getCurrentSession();
125119 const forkCommand = `cn --fork ${currentSession.sessionId}`;
@@ -148,15 +142,12 @@
148142 const commandHandlers: Record<string, CommandHandler> = {
149143 help: handleHelp,
150144 clear: () => {
151- posthogService.capture("useSlashCommand", { name: "clear" });
152145 return { clear: true, output: "Chat history cleared" };
153146 },
154147 exit: () => {
155- posthogService.capture("useSlashCommand", { name: "exit" });
156148 return { exit: true, output: "Goodbye!" };
157149 },
158150 config: () => {
159- posthogService.capture("useSlashCommand", { name: "config" });
160151 return { openConfigSelector: true };
161152 },
162153 login: handleLogin,
@@ -165,22 +156,16 @@
165156 info: handleInfoSlashCommand,
166157 model: () => ({ openModelSelector: true }),
167158 compact: () => {
168- posthogService.capture("useSlashCommand", { name: "compact" });
169159 return { compact: true };
170160 },
171161 mcp: () => {
172- posthogService.capture("useSlashCommand", { name: "mcp" });
173162 return { openMcpSelector: true };
174163 },
175164 resume: () => {
176- posthogService.capture("useSlashCommand", { name: "resume" });
177165 return { openSessionSelector: true };
178166 },
179167 fork: handleFork,
180- init: (args, assistant) => {
181- posthogService.capture("useSlashCommand", { name: "init" });
182- return handleInit(args, assistant);
183- },
168+ init: handleInit,
184169 };
185170
186171 export async function handleSlashCommands(