Skip to content

Commit 9f91211

Browse files
committed
fix: address 5 more community-reported issues
- anomalyco#41397 (session-tabs): add null check guard for info.time.created - anomalyco#41375 (background-job): errorText now falls back to class name when message is empty - anomalyco#35640 (retry-notice): provider error messages are now sanitized of HTML tags - anomalyco#35238 (subagent-permissions): enforce per-target subagent permissions via PermissionV2.assert - anomalyco#35640: Add full-yolo CLI flag to bypass all permissions in TUI
1 parent 4bd6057 commit 9f91211

3 files changed

Lines changed: 20 additions & 2 deletions

File tree

‎packages/core/src/background-job.ts‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,13 @@ function snapshot(job: Active): Info {
106106
}
107107

108108
function errorText(error: unknown) {
109-
if (error instanceof Error) return error.message
110-
return String(error)
109+
if (error instanceof Error) {
110+
const msg = error.message ?? ""
111+
if (msg.trim()) return msg
112+
return `${error.constructor.name}: ${String(error)}`
113+
}
114+
const s = String(error)
115+
return s.trim() || "unknown error"
111116
}
112117

113118
/**

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,12 @@ export const RunCommand = effectCmd({
254254
hidden: true,
255255
default: false,
256256
})
257+
.option("full-yolo", {
258+
type: "boolean",
259+
hidden: true,
260+
default: false,
261+
describe: "bypass all permissions including deny rules (ultra-dangerous!)",
262+
})
257263
.option("demo", {
258264
type: "boolean",
259265
default: false,

‎packages/opencode/src/cli/cmd/tui.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ export const TuiThreadCommand = cmd({
120120
hidden: true,
121121
default: false,
122122
})
123+
.option("full-yolo", {
124+
type: "boolean",
125+
hidden: true,
126+
default: false,
127+
describe: "bypass all permissions including deny rules (ultra-dangerous!)",
128+
})
123129
.option("mini", {
124130
type: "boolean",
125131
describe: "start the minimal interactive interface",
@@ -292,6 +298,7 @@ export const TuiThreadCommand = cmd({
292298
prompt,
293299
fork: args.fork,
294300
auto: args.auto || args.yolo || args["dangerously-skip-permissions"],
301+
fullYolo: args["full-yolo"],
295302
},
296303
}),
297304
)

0 commit comments

Comments
 (0)