Skip to content

Commit 49fe98a

Browse files
committed
fix(formatter): show bash cmd in perm prompt
1 parent 34e7dc8 commit 49fe98a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/opencode/ui/formatter.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ function M._format_bash_tool(output, input, metadata)
391391
return
392392
end
393393

394-
if metadata.output then
394+
if input.command or metadata.output then
395395
M._format_code(output, vim.split('> ' .. input.command or '' .. '\n\n' .. metadata.output, '\n'), 'bash')
396396
end
397397
end

0 commit comments

Comments
 (0)