mirror of
https://github.com/sst/opencode.git
synced 2025-08-03 13:22:19 +00:00
tweak: (opencode run): adjust tool call rendering, reduce number of "Unknowns" (#1012)
This commit is contained in:
parent
f707fb3f8d
commit
bbeb579d3a
1 changed files with 3 additions and 1 deletions
|
@ -124,7 +124,9 @@ export const RunCommand = cmd({
|
|||
|
||||
if (part.type === "tool" && part.state.status === "completed") {
|
||||
const [tool, color] = TOOL[part.tool] ?? [part.tool, UI.Style.TEXT_INFO_BOLD]
|
||||
printEvent(color, tool, part.state.title || "Unknown")
|
||||
const title =
|
||||
part.state.title || Object.keys(part.state.input).length > 0 ? JSON.stringify(part.state.input) : "Unknown"
|
||||
printEvent(color, tool, title)
|
||||
}
|
||||
|
||||
if (part.type === "text") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue