You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tui: goal view cuts off long content and is not scrollable #65814
Seen with a simulated model or a mock server, not a real provider; a maintainer should confirm.
Thanks for the report. I reproduced this on v2.4.0, and it still happens on the latest dev (d1f9870).
Steps: in a 100×30 terminal, set a goal with a long objective using /goal <about 2,000 characters>, then click ◎ goal under the prompt to open the Goal dialog. The dialog grows past the bottom of the screen. The end of the objective, the goal's status line and the pause/clear actions are never shown, and neither the mouse wheel nor PageDown/Down/End scrolls it. A simulated model answered the turn that /goal starts. That reply has nothing to do with how the dialog is drawn.
The recording and screenshot below show it, and the script below reproduces it.
recording.mp4
Reproduction script (drive.ts)
import{Effect,Stream}from"effect"import{Llm,OpenCodeDriver}from"opencode-drive"// A goal objective far longer than the dialog can show at 100x30.constsentences=Array.from({length: 40},(_,i)=>`Step ${i+1}: refactor module ${i+1} and keep tests green.`)constobjective=sentences.join(" ")+" FINAL-LINE-MARKER"constlineText=(line: {spans: ReadonlyArray<{text: string}>})=>line.spans.map((s)=>s.text).join("")exportdefaultOpenCodeDriver.use({
...(process.env.OC_DEV ? {opencode: {dev: process.env.OC_DEV}} : {}),tui: {recording: true,keypressOverlay: true,pointerOverlay: true,viewport: {cols: 100,rows: 30}},},({ ui, llm })=>Effect.gen(function*(){yield*llm.serve(()=>Stream.make(Llm.text("Working on it.")))yield*ui.submit(`/goal ${objective}`)yield*ui.waitFor("goal",{timeout: 15000})yield*Effect.sleep(1500)// Find the "◎ goal" status under the prompt and click it.constframe=yield*ui.capture()letpos: {x: number;y: number}|undefinedframe.lines.forEach((line,y)=>{constt=lineText(line)constx=t.indexOf("◎ goal")if(x>=0&&!pos)pos={x: x+2, y }})if(!pos)returnyield*Effect.die(newError("goal status not found"))yield*ui.mouse({action: "move",x: pos.x,y: pos.y})yield*ui.mouse({action: "down",x: pos.x,y: pos.y})yield*ui.mouse({action: "up",x: pos.x,y: pos.y})yield*ui.waitFor("Goal",{timeout: 5000})yield*Effect.sleep(500)yield*ui.screenshot("goal-dialog")// Try to scroll the dialog with mouse wheel and keyboard.for(leti=0;i<10;i++)yield*ui.mouse({action: "scroll",x: 50,y: 15,direction: "down"})yield*ui.press("pagedown")yield*ui.press("down")yield*ui.press("end")yield*Effect.sleep(500)yield*ui.screenshot("goal-dialog-after-scroll")constafter=yield*ui.capture()consttext=after.lines.map(lineText).join("\n")yield*Effect.log(text)yield*Effect.log(`FINAL-LINE-MARKER visible: ${text.includes("FINAL-LINE-MARKER")}`)yield*Effect.log(`status line visible: ${/◎(Active|Paused|Met)/.test(text)}`)}),)
Run it with opencode-drive: opencode-drive run ./drive.ts. It drives opencode from your PATH; set OC_DEV to the path of an OpenCode checkout to run that from source instead.
Hi! I'd like to work on this, could I be assigned? I reproduced it with a long /goal objective in a small terminal and the dialog overflows and won't scroll. My plan is to cap the dialog's height and wrap the objective text in a scrollable box so the status line and pause/clear actions stay visible. Let me know if I need to adjust my plan if there's a preferred approach.
Activity
opencodejr commentedon Nov 23, 2026
Seen with a simulated model or a mock server, not a real provider; a maintainer should confirm.
Thanks for the report. I reproduced this on v2.4.0, and it still happens on the latest
dev(d1f9870).Steps: in a 100×30 terminal, set a goal with a long objective using
/goal <about 2,000 characters>, then click◎ goalunder the prompt to open the Goal dialog. The dialog grows past the bottom of the screen. The end of the objective, the goal's status line and the pause/clear actions are never shown, and neither the mouse wheel nor PageDown/Down/End scrolls it. A simulated model answered the turn that/goalstarts. That reply has nothing to do with how the dialog is drawn.The recording and screenshot below show it, and the script below reproduces it.
recording.mp4
Reproduction script (drive.ts)
Run it with opencode-drive:
opencode-drive run ./drive.ts. It drivesopencodefrom yourPATH; setOC_DEVto the path of an OpenCode checkout to run that from source instead.gmatt20 commentedon Nov 23, 2026
Hi! I'd like to work on this, could I be assigned? I reproduced it with a long /goal objective in a small terminal and the dialog overflows and won't scroll. My plan is to cap the dialog's height and wrap the objective text in a scrollable box so the status line and pause/clear actions stay visible. Let me know if I need to adjust my plan if there's a preferred approach.