diff options
Diffstat (limited to 'packages/opencode/src/index.ts')
| -rw-r--r-- | packages/opencode/src/index.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/opencode/src/index.ts b/packages/opencode/src/index.ts index bb14e0588..1fa027abf 100644 --- a/packages/opencode/src/index.ts +++ b/packages/opencode/src/index.ts @@ -35,6 +35,7 @@ import { JsonMigration } from "./storage/json-migration" import { Database } from "./storage/db" import { errorMessage } from "./util/error" import { PluginCommand } from "./cli/cmd/plug" +import { Heap } from "./cli/heap" process.on("unhandledRejection", (e) => { Log.Default.error("rejection", { @@ -96,6 +97,8 @@ const cli = yargs(args) })(), }) + Heap.start() + process.env.AGENT = "1" process.env.OPENCODE = "1" process.env.OPENCODE_PID = String(process.pid) |
