tweak: make OPENCODE_EXPERIMENTAL_NATIVE_LLM separate from OPENCODE_EXPERIMENTAL (#29123)

This commit is contained in:
Aiden Cline 2026-05-24 13:07:25 -05:00 committed by GitHub
commit db63eaf6ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 130 additions and 22 deletions

View file

@ -62,7 +62,7 @@ describe("RuntimeFlags", () => {
expect(flags.experimentalEventSystem).toBe(true)
expect(flags.experimentalWorkspaces).toBe(true)
expect(flags.experimentalIconDiscovery).toBe(true)
expect(flags.experimentalNativeLlm).toBe(true)
expect(flags.experimentalNativeLlm).toBe(false)
expect(flags.client).toBe("desktop")
}),
)
@ -81,13 +81,13 @@ describe("RuntimeFlags", () => {
}),
)
it.effect("enables native LLM via dedicated or umbrella flag", () =>
it.effect("enables native LLM via dedicated flag only", () =>
Effect.gen(function* () {
const explicit = yield* readFlags.pipe(Effect.provide(fromConfig({ OPENCODE_EXPERIMENTAL_NATIVE_LLM: "true" })))
const umbrella = yield* readFlags.pipe(Effect.provide(fromConfig({ OPENCODE_EXPERIMENTAL: "true" })))
expect(explicit.experimentalNativeLlm).toBe(true)
expect(umbrella.experimentalNativeLlm).toBe(true)
expect(umbrella.experimentalNativeLlm).toBe(false)
}),
)