refactor(flags): move auto share to runtime flags (#27611)

This commit is contained in:
Shoubhit Dash
2026-05-15 03:58:26 +05:30
committed by GitHub
parent d34a0194ec
commit cb4f5cdea9
6 changed files with 21 additions and 5 deletions

View File

@@ -12,6 +12,7 @@ const enabledByExperimental = (name: string) =>
Config.all({ experimental, enabled: bool(name) }).pipe(Config.map((flags) => flags.experimental || flags.enabled))
export class Service extends ConfigService.Service<Service>()("@opencode/RuntimeFlags", {
autoShare: bool("OPENCODE_AUTO_SHARE"),
pure: bool("OPENCODE_PURE"),
disableDefaultPlugins: bool("OPENCODE_DISABLE_DEFAULT_PLUGINS"),
disableEmbeddedWebUi: bool("OPENCODE_DISABLE_EMBEDDED_WEB_UI"),