MCPcopy Create free account
hub / github.com/anomalyco/opencode / setShellMode

Function setShellMode

packages/opencode/src/cli/cmd/run/footer.prompt.tsx:311–314  ·  view source on GitHub ↗
(value: boolean)

Source from the content-addressed store, hash-verified

309 const visible = createMemo(() => mode() !== false)
310
311 const setShellMode = (value: boolean) => {
312 setShell(value)
313 draft = value ? { ...draft, mode: "shell" } : { text: draft.text, parts: structuredClone(draft.parts) }
314 }
315
316 const width = createMemo(() => Math.max(20, input.width() - 8))
317 const agents = createMemo<Auto[]>(() => {

Callers 3

cmdFunction · 0.85
createPromptStateFunction · 0.85
submitPromptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected