Problem
oclite TUI never renders - process exits before Ink can paint.
Root Cause
entry.ts line 28: startInkTUI() returns a Promise (waitUntilExit()) but it's not being awaited.
Current (broken):
fn: async () => {
startInkTUI() // Returns promise, not awaited!
},
Fixed:
fn: async () => {
await startInkTUI() // Must await!
},
Execution Flow
- ✅ Bootstrap completes
- ✅
startInkTUI() called, render(<App />) executes
- ❌
waitUntilExit() promise returned but NOT awaited
- ❌
fn() returns immediately
- ❌
Instance.provide() completes
- ❌ Event loop empty → process exits before first frame renders
Fix
Add await before startInkTUI() in entry.ts line 28.
Files
packages/opencode/src/cli/ink/entry.ts line 28
Problem
oclite TUI never renders - process exits before Ink can paint.
Root Cause
entry.tsline 28:startInkTUI()returns a Promise (waitUntilExit()) but it's not being awaited.Current (broken):
Fixed:
Execution Flow
startInkTUI()called,render(<App />)executeswaitUntilExit()promise returned but NOT awaitedfn()returns immediatelyInstance.provide()completesFix
Add
awaitbeforestartInkTUI()inentry.tsline 28.Files
packages/opencode/src/cli/ink/entry.tsline 28