Skip to content

Commit 07808be

Browse files
authored
run: make minimal mode more minimal (#31227)
1 parent 914a643 commit 07808be

39 files changed

Lines changed: 3109 additions & 930 deletions

packages/opencode/src/cli/cmd/run/demo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ function showSubagent(
181181
callID: string
182182
label: string
183183
description: string
184-
status: "running" | "completed" | "error"
184+
status: "running" | "completed" | "cancelled" | "error"
185185
title?: string
186186
toolCalls?: number
187187
commits: StreamCommit[]

packages/opencode/src/cli/cmd/run/entry.body.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ function systemBody(raw: string, phase: StreamCommit["phase"]): RunEntryBody {
7979
}
8080

8181
export function entryFlags(commit: StreamCommit): EntryFlags {
82+
if (commit.summary) {
83+
return {
84+
startOnNewLine: true,
85+
trailingNewline: false,
86+
}
87+
}
88+
8289
if (commit.kind === "user") {
8390
return {
8491
startOnNewLine: true,
@@ -156,6 +163,10 @@ export function entryCanStream(commit: StreamCommit, body: RunEntryBody): boolea
156163
}
157164

158165
export function entryBody(commit: StreamCommit): RunEntryBody {
166+
if (commit.summary) {
167+
return RUN_ENTRY_NONE
168+
}
169+
159170
const raw = cleanRunText(commit.text)
160171

161172
if (commit.kind === "user") {

0 commit comments

Comments
 (0)