fix(core): drop legacy config filename (#34645)

Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
This commit is contained in:
opencode-agent[bot] 2026-06-30 11:03:53 -05:00 committed by GitHub
commit a4b6047e64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 40 additions and 21 deletions

View file

@ -25,7 +25,7 @@ describe("ConfigExternalPlugin", () => {
const location = yield* Location.Service
const npm = yield* Npm.Service
const host = yield* PluginHost.make(plugins)
const document = path.join(import.meta.dir, "config.json")
const document = path.join(import.meta.dir, "opencode.json")
yield* ConfigExternalPlugin.Plugin.effect(host).pipe(
Effect.provideService(PluginV2.Service, plugins),
@ -82,7 +82,7 @@ describe("ConfigExternalPlugin", () => {
Effect.succeed([
new Config.Document({
type: "document",
path: path.join(import.meta.dir, "config.json"),
path: path.join(import.meta.dir, "opencode.json"),
info: decode({
plugins: [
{
@ -125,7 +125,7 @@ describe("ConfigExternalPlugin", () => {
Effect.succeed([
new Config.Document({
type: "document",
path: path.join(import.meta.dir, "config.json"),
path: path.join(import.meta.dir, "opencode.json"),
info: decode({
plugins: [
"../plugin/fixtures/missing-plugin.ts",