fix: classify non-navigate browser actions as generic to avoid perpetual Loading in fetch groups
This commit is contained in:
parent
cd98f0acba
commit
93d734de49
@ -255,7 +255,7 @@ function classifyTool(
|
||||
: "";
|
||||
if (action === "open" || action === "navigate") {return "fetch";}
|
||||
if (action === "screenshot") {return "image";}
|
||||
return "fetch"; // default: most browser actions involve a page
|
||||
return "generic"; // act/snapshot/status etc. have no URL
|
||||
}
|
||||
|
||||
if (
|
||||
@ -882,7 +882,7 @@ function FetchGroup({ items }: { items: ToolPart[] }) {
|
||||
className="flex-1 min-w-0 truncate"
|
||||
style={{ color: "var(--color-text)" }}
|
||||
>
|
||||
{domain?.replace(/^www\./, "") ?? "Loading..."}
|
||||
{domain?.replace(/^www\./, "") ?? url ?? "Fetching..."}
|
||||
</span>
|
||||
{tool.status === "running" ? (
|
||||
<span
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user