fix(instance): run bootstrap from instance store (#25475)

This commit is contained in:
Kit Langton
2026-05-02 19:33:38 -04:00
committed by GitHub
parent 36007aecf4
commit f98053c34e
42 changed files with 540 additions and 249 deletions

View File

@@ -26,6 +26,7 @@ import { Snapshot } from "../../src/snapshot"
import { ProviderTest } from "../fake/provider"
import { testEffect } from "../lib/effect"
import { CrossSpawnSpawner } from "@opencode-ai/core/cross-spawn-spawner"
import { TestConfig } from "../fixture/config"
void Log.init({ print: false })
@@ -208,7 +209,7 @@ function layer(result: "continue" | "compact") {
function cfg(compaction?: Config.Info["compaction"]) {
const base = Config.Info.zod.parse({})
return Layer.mock(Config.Service)({
return TestConfig.layer({
get: () => Effect.succeed({ ...base, compaction }),
})
}