cli: add --mini (#33353)

This commit is contained in:
Simon Klee
2026-06-22 16:27:56 +02:00
committed by GitHub
parent 6e038e22ea
commit 7814e2f145
11 changed files with 286 additions and 55 deletions
@@ -1,7 +1,7 @@
import fs from "fs"
import * as tty from "node:tty"
export const INTERACTIVE_INPUT_ERROR = "--interactive requires a controlling terminal for input"
export const INTERACTIVE_INPUT_ERROR = "--mini requires a controlling terminal for input"
type InteractiveStdin = {
stdin: NodeJS.ReadStream
+1 -1
View File
@@ -1,4 +1,4 @@
// Top-level orchestrator for `run --interactive`.
// Top-level orchestrator for `opencode --mini`.
//
// Wires the boot sequence, lifecycle (renderer + footer), stream transport,
// and prompt queue together into a single session loop. Two entry points:
+1 -1
View File
@@ -234,7 +234,7 @@ function build(input: SplashWriterInput, kind: "entry" | "exit", ctx: Scrollback
lines,
body_left + label.length,
top + 1,
`opencode run -i -s ${meta.session_id}`,
`opencode --mini -s ${meta.session_id}`,
right,
undefined,
TextAttributes.BOLD,
+1 -1
View File
@@ -1,4 +1,4 @@
// Shared type vocabulary for the direct interactive mode (`run --interactive`).
// Shared type vocabulary for the direct interactive mode (`opencode --mini`).
//
// Direct mode uses a split-footer terminal layout: immutable scrollback for the
// session transcript, and a mutable footer for prompt input, status, and