chore: remove remaining PostHog and Sentry references

Clean up stale comments, spec docs, build config, and lock files
that still referenced PostHog/Sentry after the telemetry removal.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Patrick Erichsen 2026-03-19 15:34:22 -07:00
parent 05c6354bc1
commit 30f8b9ceec
12 changed files with 227 additions and 5169 deletions

View file

@ -16,7 +16,6 @@ The build process is otherwise defined entirely in `build.js`.
### List of dynamically imported modules
- posthog-node
- @octokit/rest
- esbuild

1071
binary/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -192,7 +192,6 @@ export class ControlPlaneClient {
});
return (await resp.json()) as any;
} catch (e) {
// Capture control plane API failures to Sentry
Logger.error(e, {
context: "control_plane_list_assistants",
organizationId,
@ -268,7 +267,6 @@ export class ControlPlaneClient {
const { fullSlugs } = (await resp.json()) as any;
return fullSlugs;
} catch (e) {
// Capture control plane API failures to Sentry
Logger.error(e, {
context: "control_plane_list_assistant_slugs",
organizationId,
@ -303,7 +301,6 @@ export class ControlPlaneClient {
});
return (await resp.json()) as CreditStatus;
} catch (e) {
// Capture control plane API failures to Sentry
Logger.error(e, {
context: "control_plane_credit_status",
});
@ -341,7 +338,6 @@ export class ControlPlaneClient {
);
return (await resp.json()) as { url: string };
} catch (e) {
// Capture control plane API failures to Sentry
Logger.error(e, {
context: "control_plane_models_checkout_url",
vsCodeUriScheme,

1573
core/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -20,7 +20,7 @@ The `build.mjs` script uses esbuild to:
- Bundle all TypeScript/JavaScript code into a single ES module
- Include local packages (`@continuedev/config-yaml`, `@continuedev/openai-adapters`) directly in the bundle
- Keep problematic or native dependencies external (e.g., `@sentry/profiling-node`, `winston`, `express`)
- Keep problematic or native dependencies external (e.g., `winston`, `express`)
- Create a wrapper script (`dist/cn.js`) with the proper shebang for CLI execution
### Key Features

View file

@ -15,7 +15,6 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
// Note: Everything else will be bundled to create a self-contained CLI
// Users should not need to install any additional dependencies
const external = [
"@sentry/profiling-node", // Contains native profiler bindings (optional)
"fsevents", // macOS native file watcher (optional dependency)
"./xhr-sync-worker.js", // JSDOM worker file that needs to be copied separately
];

File diff suppressed because it is too large Load diff

View file

@ -1,10 +0,0 @@
# Continue anonymous Posthog telemetry
## Behavior
- Used by Continue for product metrics (not used by customers)
- uses public posthog key in repo
- `CONTINUE_TELEMETRY_ENABLED=0` disables telemetry
- non-anonymous and private data like code is never sent to posthog
- Event user ids are the Continue user id is signed in, or a unique machine id if not
- Current events are slash command usage and chat calls

View file

@ -152,7 +152,6 @@ process.on("unhandledRejection", (reason, promise) => {
});
}
// Note: Sentry capture is handled by logger.error() above
// Don't exit the process immediately, but hasUnhandledError will cause non-zero exit later
});
@ -165,7 +164,6 @@ process.on("uncaughtException", (error) => {
reportUnhandledErrorToApi(error).catch(() => {
// Silently fail if API reporting errors - already logged in helper
});
// Note: Sentry capture is handled by logger.error() above
// Don't exit the process immediately, but hasUnhandledError will cause non-zero exit later
});
@ -447,7 +445,7 @@ export async function runCli(): Promise<void> {
program.parse();
} catch (error) {
console.error(error);
process.exit(1);
process.exit(1);
}
process.on("SIGTERM", async () => {

View file

@ -1,12 +1,12 @@
{
"name": "continue",
"version": "1.3.32",
"version": "1.3.33",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "continue",
"version": "1.3.32",
"version": "1.3.33",
"license": "Apache-2.0",
"dependencies": {
"@continuedev/config-types": "file:../../packages/config-types",
@ -40,7 +40,6 @@
"ncp": "^2.0.0",
"node-fetch": "^3.3.2",
"node-machine-id": "^1.1.12",
"posthog-node": "^3.6.3",
"react-markdown": "^8.0.7",
"react-redux": "^8.0.5",
"read-last-lines": "^1.8.0",
@ -48,9 +47,9 @@
"socket.io-client": "^4.7.2",
"strip-ansi": "^7.1.0",
"svg-builder": "^2.0.0",
"systeminformation": "^5.30.0",
"systeminformation": "^5.30.8",
"tailwindcss": "^3.3.2",
"undici": "^6.21.3",
"undici": "^6.24.0",
"uuid": "^9.0.1",
"uuidv4": "^6.2.13",
"vectordb": "0.4.20",
@ -112,11 +111,6 @@
"@modelcontextprotocol/sdk": "^1.25.2",
"@mozilla/readability": "^0.5.0",
"@octokit/rest": "^20.1.1",
"@sentry/cli": "^2.50.2",
"@sentry/core": "^9.43.0",
"@sentry/esbuild-plugin": "^4.0.2",
"@sentry/node": "^9.43.0",
"@sentry/vite-plugin": "^4.0.2",
"@xenova/transformers": "2.14.0",
"adf-to-md": "^1.1.0",
"async-mutex": "^0.5.0",
@ -153,7 +147,6 @@
"partial-json": "^0.1.7",
"pg": "^8.11.3",
"plist": "^3.1.0",
"posthog-node": "^3.6.3",
"puppeteer": "^24.15.0",
"puppeteer-chromium-resolver": "^23.0.0",
"quick-lru": "^7.0.0",
@ -164,7 +157,7 @@
"sqlite": "^5.1.1",
"sqlite3": "^5.1.7",
"system-ca": "^1.0.3",
"tar": "^7.4.3",
"tar": "^7.5.10",
"tree-sitter-wasms": "^0.1.11",
"untildify": "^6.0.0",
"uuid": "^9.0.1",
@ -11109,18 +11102,6 @@
"node": ">=0.10.0"
}
},
"node_modules/posthog-node": {
"version": "3.6.3",
"resolved": "https://registry.npmjs.org/posthog-node/-/posthog-node-3.6.3.tgz",
"integrity": "sha512-JB+ei0LkwE+rKHyW5z79Nd1jUaGxU6TvkfjFqY9vQaHxU5aU8dRl0UUaEmZdZbHwjp3WmXCBQQRNyimwbNQfCw==",
"dependencies": {
"axios": "^1.6.2",
"rusha": "^0.8.14"
},
"engines": {
"node": ">=15.0.0"
}
},
"node_modules/prebuild-install": {
"version": "7.1.2",
"resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.2.tgz",
@ -11938,11 +11919,6 @@
"queue-microtask": "^1.2.2"
}
},
"node_modules/rusha": {
"version": "0.8.14",
"resolved": "https://registry.npmjs.org/rusha/-/rusha-0.8.14.tgz",
"integrity": "sha512-cLgakCUf6PedEu15t8kbsjnwIFFR2D4RfL+W3iWFJ4iac7z4B0ZI8fxy4R3J956kAI68HclCFGL8MPoUVC3qVA=="
},
"node_modules/rxjs": {
"version": "7.8.2",
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz",
@ -12768,9 +12744,9 @@
}
},
"node_modules/systeminformation": {
"version": "5.30.6",
"resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.30.6.tgz",
"integrity": "sha512-LEIyK1aEv5P3BhAPW3swdlIyCihxwEq/Gki+kcONieU4PIeRCSLDuGkk0Va/56PSBgjVgEksOM88dmY6YqOyfQ==",
"version": "5.31.5",
"resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.31.5.tgz",
"integrity": "sha512-5SyLdip4/3alxD4Kh+63bUQTJmu7YMfYQTC+koZy7X73HgNqZSD2P4wOZQWtUncvPvcEmnfIjCoygN4MRoEejQ==",
"license": "MIT",
"os": [
"darwin",
@ -13604,9 +13580,9 @@
"dev": true
},
"node_modules/undici": {
"version": "6.21.3",
"resolved": "https://registry.npmjs.org/undici/-/undici-6.21.3.tgz",
"integrity": "sha512-gBLkYIlEnSp8pFbT64yFgGE6UIB9tAkhukC23PmMDCe5Nd+cRqKxSjw5y54MK2AZMgZfJWMaNE4nYUHgi1XEOw==",
"version": "6.24.1",
"resolved": "https://registry.npmjs.org/undici/-/undici-6.24.1.tgz",
"integrity": "sha512-sC+b0tB1whOCzbtlx20fx3WgCXwkW627p4EA9uM+/tNNPkSS+eSEld6pAs9nDv7WbY1UUljBMYPtu9BCOrCWKA==",
"license": "MIT",
"engines": {
"node": ">=18.17"

View file

@ -122,7 +122,6 @@ export class WorkOsAuthProvider implements AuthenticationProvider, Disposable {
);
return decodedToken;
} catch (e: any) {
// Capture JWT decoding failures to Sentry (could indicate token corruption)
Logger.error(e, {
context: "workOS_auth_jwt_decode",
jwtLength: jwt.length,
@ -170,7 +169,6 @@ export class WorkOsAuthProvider implements AuthenticationProvider, Disposable {
const value = JSON.parse(data) as ContinueAuthenticationSession[];
return value;
} catch (e: any) {
// Capture session decrypt and parsing errors to Sentry
Logger.error(e, {
context: "workOS_sessions_retrieval",
errorMessage: e.message,
@ -221,7 +219,6 @@ export class WorkOsAuthProvider implements AuthenticationProvider, Disposable {
this._isRefreshing = true;
await this._refreshSessions();
} catch (e) {
// Capture session refresh failures to Sentry
Logger.error(e, {
context: "workOS_auth_session_refresh",
authType: controlPlaneEnv.AUTH_TYPE,
@ -255,7 +252,6 @@ export class WorkOsAuthProvider implements AuthenticationProvider, Disposable {
expiresInMs: newSession.expiresInMs,
});
} catch (e: any) {
// Capture individual session refresh failures to Sentry
Logger.error(e, {
context: "workOS_individual_session_refresh",
sessionId: session.id,
@ -291,7 +287,6 @@ export class WorkOsAuthProvider implements AuthenticationProvider, Disposable {
try {
return await this._refreshSession(refreshToken);
} catch (error: any) {
// Capture token refresh retry errors to Sentry
Logger.error(error, {
attempt,
errorMessage: error.message,
@ -417,7 +412,6 @@ export class WorkOsAuthProvider implements AuthenticationProvider, Disposable {
return session;
} catch (e) {
// Capture authentication failures to Sentry
Logger.error(e, {
context: "workOS_auth_session_creation",
scopes: scopes.join(","),

914
gui/package-lock.json generated

File diff suppressed because it is too large Load diff