fix(tui): enable diff viewer by default

This commit is contained in:
Dax Raad
2026-05-22 09:50:30 -04:00
parent 3cf955e9ad
commit 854c535536
2 changed files with 2 additions and 3 deletions
@@ -21,7 +21,7 @@ export type InternalTuiPlugin = Omit<TuiPluginModule, "id"> & {
} }
export function internalTuiPlugins( export function internalTuiPlugins(
flags: Pick<RuntimeFlags.Info, "diffViewer" | "experimentalEventSystem">, flags: Pick<RuntimeFlags.Info, "experimentalEventSystem">,
): InternalTuiPlugin[] { ): InternalTuiPlugin[] {
return [ return [
HomeFooter, HomeFooter,
@@ -35,7 +35,7 @@ export function internalTuiPlugins(
Notifications, Notifications,
PluginManager, PluginManager,
WhichKey, WhichKey,
...(flags.diffViewer ? [DiffViewer] : []), DiffViewer,
...(flags.experimentalEventSystem ? [SessionV2Debug] : []), ...(flags.experimentalEventSystem ? [SessionV2Debug] : []),
] ]
} }
@@ -15,7 +15,6 @@ export class Service extends ConfigService.Service<Service>()("@opencode/Runtime
autoShare: bool("OPENCODE_AUTO_SHARE"), autoShare: bool("OPENCODE_AUTO_SHARE"),
pure: bool("OPENCODE_PURE"), pure: bool("OPENCODE_PURE"),
disableDefaultPlugins: bool("OPENCODE_DISABLE_DEFAULT_PLUGINS"), disableDefaultPlugins: bool("OPENCODE_DISABLE_DEFAULT_PLUGINS"),
diffViewer: bool("OPENCODE_DIFF_VIEWER"),
disableChannelDb: bool("OPENCODE_DISABLE_CHANNEL_DB"), disableChannelDb: bool("OPENCODE_DISABLE_CHANNEL_DB"),
disableEmbeddedWebUi: bool("OPENCODE_DISABLE_EMBEDDED_WEB_UI"), disableEmbeddedWebUi: bool("OPENCODE_DISABLE_EMBEDDED_WEB_UI"),
disableExternalSkills: bool("OPENCODE_DISABLE_EXTERNAL_SKILLS"), disableExternalSkills: bool("OPENCODE_DISABLE_EXTERNAL_SKILLS"),