diff options
| author | Dax Raad <[email protected]> | 2025-07-07 21:04:29 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-07-07 21:05:04 -0400 |
| commit | 6100a77b853917292a024ccdd818ff43e0acc0f1 (patch) | |
| tree | c08c7f2dca83109313b71c0ab8169ac88d19c6aa | |
| parent | c7a59ee2b10644a3a31dda14a44115ca9baada44 (diff) | |
| download | opencode-6100a77b853917292a024ccdd818ff43e0acc0f1.tar.gz opencode-6100a77b853917292a024ccdd818ff43e0acc0f1.zip | |
start file watcher only for tui
| -rw-r--r-- | packages/opencode/src/cli/bootstrap.ts | 2 | ||||
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/opencode/src/cli/bootstrap.ts b/packages/opencode/src/cli/bootstrap.ts index a03392a5f..4419773b4 100644 --- a/packages/opencode/src/cli/bootstrap.ts +++ b/packages/opencode/src/cli/bootstrap.ts @@ -1,6 +1,5 @@ import { App } from "../app/app" import { ConfigHooks } from "../config/hooks" -import { FileWatcher } from "../file/watch" import { Format } from "../format" import { LSP } from "../lsp" import { Share } from "../share/share" @@ -11,7 +10,6 @@ export async function bootstrap<T>(input: App.Input, cb: (app: App.Info) => Prom Format.init() ConfigHooks.init() LSP.init() - FileWatcher.init() return cb(app) }) diff --git a/packages/opencode/src/cli/cmd/tui.ts b/packages/opencode/src/cli/cmd/tui.ts index 886863a1f..e584a96cf 100644 --- a/packages/opencode/src/cli/cmd/tui.ts +++ b/packages/opencode/src/cli/cmd/tui.ts @@ -10,6 +10,7 @@ import { Installation } from "../../installation" import { Config } from "../../config/config" import { Bus } from "../../bus" import { Log } from "../../util/log" +import { FileWatcher } from "../../file/watch" export const TuiCommand = cmd({ command: "$0 [project]", @@ -40,6 +41,7 @@ export const TuiCommand = cmd({ return } const result = await bootstrap({ cwd }, async (app) => { + FileWatcher.init() const providers = await Provider.list() if (Object.keys(providers).length === 0) { return "needs_provider" |
