Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Commit 1be28bb

Browse files
author
Pedro Heyerdahl
committed
refactor(usage): remove DEFAULT_FEATURE constant and derive feature from command context
Remove the hardcoded DEFAULT_FEATURE ("cli") constant from kilo-gateway and instead derive the feature value at runtime in opencode. When the KILOCODE_FEATURE env var is not set, the "serve" command is now tagged as "unknown" (to surface misconfiguration when a caller forgets to set the env var), while all other commands default to "cli".
1 parent 0f139f3 commit 1be28bb

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

packages/kilo-gateway/src/api/constants.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ export const TESTER_SUPPRESS_VALUE = "SUPPRESS"
6464
/** Header name for feature tracking */
6565
export const HEADER_FEATURE = "X-KILOCODE-FEATURE"
6666

67-
/** Default feature value (CLI usage) */
68-
export const DEFAULT_FEATURE = "cli"
69-
7067
/** Environment variable name for feature override */
7168
export const ENV_FEATURE = "KILOCODE_FEATURE"
7269
// kilocode_change end

0 commit comments

Comments
 (0)