mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-19 13:23:29 +00:00
fix(tui): hide prompt for running shell commands
This commit is contained in:
parent
658cbe9caf
commit
a491cbee64
1 changed files with 1 additions and 1 deletions
|
|
@ -1859,7 +1859,7 @@ function Shell(props: ToolProps) {
|
|||
const [expanded, setExpanded] = createSignal(false)
|
||||
const maxLines = 10
|
||||
const maxChars = createMemo(() => maxLines * Math.max(20, ctx.width - 6))
|
||||
const input = createMemo(() => (command() ? `$ ${command()}` : ""))
|
||||
const input = createMemo(() => (command() ? `${isRunning() ? "" : "$ "}${command()}` : ""))
|
||||
const content = createMemo(() => [input(), output()].filter(Boolean).join("\n\n"))
|
||||
const collapsed = createMemo(() => collapseToolOutput(content(), maxLines, maxChars()))
|
||||
const limited = createMemo(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue