Set the HEADER_TASKID (X-KILOCODE-TASKID) header on outgoing requests
to the Kilo provider, using the session ID as the task identifier.
This follows the same pattern as the existing project ID and machine ID
headers.
Add gitUrl and gitBranch fields to kilo_meta so shared sessions
include repository context. Resolves the best remote (origin > single
available > upstream) and fetches the URL with a 10s in-flight cache.
Introduce X-KILOCODE-FEATURE header for tracking request origin
across different entry points (CLI, VSCode extension, autocomplete).
- Add HEADER_FEATURE, DEFAULT_FEATURE, and ENV_FEATURE constants
- Add getFeatureHeader() helper reading from KILOCODE_FEATURE env var
- Include feature header in buildKiloHeaders() when env var is set
- Set feature to "autocomplete" for FIM/completion requests
- Set KILOCODE_FEATURE="vscode-extension" when spawning CLI from VSCode
- Default to "cli" feature in opencode entry point
- Add unit tests for feature header logic
- Add POST /telemetry/capture endpoint to CLI server
- Add TelemetryProxy singleton in extension (forwards to CLI)
- Add webview telemetry helper (postMessage → extension → CLI)
- Pass telemetry env vars (level, editor_name, platform, machineId) to CLI
- Wire up KiloProvider as TelemetryPropertiesProvider
- Replace TelemetryStub with real TelemetryProxy in autocomplete
- 53 telemetry events covering tasks, LLM, tools, UI, autocomplete, etc.
Add missing recommended and recommendedIndex optional fields to the
Provider.Model zod schema and propagate them in fromModelsDevModel and
config model construction. Also regenerate SDK types and OpenAPI spec
to include these fields.
Fixes typecheck errors in dialog-model.tsx where these properties were
referenced but not defined on the Model type.
Replace opencode-ai with @kilocode/cli and opencode with kilo in all
package manager uninstall commands (npm, pnpm, bun, yarn, brew, choco,
scoop). Also update shell config detection and cleanup to handle both
legacy opencode and kilo path markers for backward compatibility.