fix: initialize config context in plugin runtime to prevent warnings
fix: initialize config context in plugin runtime to prevent warnings
This commit is contained in:
commit
50b9eddae9
@ -1,3 +1,4 @@
|
|||||||
|
import { initConfigContext } from "./cli/config-manager/config-context"
|
||||||
import type { Plugin } from "@opencode-ai/plugin"
|
import type { Plugin } from "@opencode-ai/plugin"
|
||||||
|
|
||||||
import type { HookName } from "./config"
|
import type { HookName } from "./config"
|
||||||
@ -14,6 +15,8 @@ import { injectServerAuthIntoClient, log } from "./shared"
|
|||||||
import { startTmuxCheck } from "./tools"
|
import { startTmuxCheck } from "./tools"
|
||||||
|
|
||||||
const OhMyOpenCodePlugin: Plugin = async (ctx) => {
|
const OhMyOpenCodePlugin: Plugin = async (ctx) => {
|
||||||
|
// Initialize config context for plugin runtime (prevents warnings from hooks)
|
||||||
|
initConfigContext("opencode", null)
|
||||||
log("[OhMyOpenCodePlugin] ENTRY - plugin loading", {
|
log("[OhMyOpenCodePlugin] ENTRY - plugin loading", {
|
||||||
directory: ctx.directory,
|
directory: ctx.directory,
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user