From 6281f1712485d5724a2132b5c04ee05f613a7fa4 Mon Sep 17 00:00:00 2001 From: James Long Date: Wed, 1 Jul 2026 14:11:14 -0400 Subject: [PATCH] fix: avoid simulation hook in mini mode --- packages/opencode/specs/simulation-phases.md | 6 +++--- .../opencode/src/cli/cmd/run/runtime.lifecycle.ts | 11 ----------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/packages/opencode/specs/simulation-phases.md b/packages/opencode/specs/simulation-phases.md index 068476f5c5..2d715e0a56 100644 --- a/packages/opencode/specs/simulation-phases.md +++ b/packages/opencode/specs/simulation-phases.md @@ -12,14 +12,14 @@ This phase proves the core shape without swapping every foundational layer yet. Implementation checklist: -- [x] Add `OPENCODE_SIMULATION=1` activation in TUI startup. +- [ ] Add `OPENCODE_SIMULATION=1` activation in V1/full-TUI startup. - [x] Add simulation trace service with in-memory append-only records. - [x] Add OpenTUI UI state extraction for screen, focus, elements, and generated actions. - [x] Add OpenTUI UI action execution for typing, keys, enter, arrows, focus, and click. -- [x] Add TUI-owned JSON-RPC WebSocket server on `127.0.0.1:40900+`. +- [x] Add reusable JSON-RPC WebSocket server on `127.0.0.1:40900+`. - [x] Expose `ui.state`, `ui.action`, `ui.render`. - [x] Expose `trace.list`, `trace.clear`, `trace.export`. -- [x] Ensure fake and visible renderer paths share the same action protocol. +- [ ] Wire fake and visible V1/full-TUI renderer paths through the same action protocol. - [ ] Verify a local driver can inspect state and execute a real TUI input. Scope: diff --git a/packages/opencode/src/cli/cmd/run/runtime.lifecycle.ts b/packages/opencode/src/cli/cmd/run/runtime.lifecycle.ts index 0e5ad842f7..c17191ab9c 100644 --- a/packages/opencode/src/cli/cmd/run/runtime.lifecycle.ts +++ b/packages/opencode/src/cli/cmd/run/runtime.lifecycle.ts @@ -229,8 +229,6 @@ export async function createRuntimeLifecycle(input: LifecycleInput): Promise void } | undefined - const footer = new RunFooter(renderer, { directory: input.directory, findFiles: input.findFiles, @@ -281,13 +279,6 @@ export async function createRuntimeLifecycle(input: LifecycleInput): Promise { footer.requestExit() } @@ -348,8 +339,6 @@ export async function createRuntimeLifecycle(input: LifecycleInput): Promise {}) } } finally { - simulation?.stop() - simulation = undefined footer.close() await footer.idle().catch(() => {}) footer.destroy()