mirror of
https://github.com/usestrix/strix.git
synced 2026-09-05 08:06:08 +00:00
fix: remove 'unknown' fallback display in browser tool renderer
This commit is contained in:
parent
044c770569
commit
c4522306b8
1 changed files with 3 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ class BrowserRenderer(BaseToolRenderer):
|
|||
args = tool_data.get("args", {})
|
||||
status = tool_data.get("status", "unknown")
|
||||
|
||||
action = args.get("action", "unknown")
|
||||
action = args.get("action", "")
|
||||
content = cls._build_content(action, args)
|
||||
|
||||
css_classes = cls.get_css_classes(status)
|
||||
|
|
@ -131,5 +131,6 @@ class BrowserRenderer(BaseToolRenderer):
|
|||
text.append_text(cls._highlight_js(js_code))
|
||||
return text
|
||||
|
||||
text.append(action, style="#06b6d4")
|
||||
if action:
|
||||
text.append(action, style="#06b6d4")
|
||||
return text
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue