This pull request introduces several changes to enhance the web search functionality and improve the user interface by adding new icons and handling failed web searches. The most important changes include adding a new CircleXIcon component, updating the web search logic to handle failed searches, and modifying the status handling for web search items.
This pull request introduces several changes to enhance the web search functionality and improve the user interface by adding new icons and handling failed web searches. The most important changes include adding a new
CircleXIcon
component, updating the web search logic to handle failed searches, and modifying the status handling for web search items.Icon Enhancements:
app/(playground)/p/[agentId]/beta-proto/components/icons/circle-check.tsx
: Added a<title>
element to theCircleCheckIcon
for better accessibility. (app/(playground)/p/[agentId]/beta-proto/components/icons/circle-check.tsxR11)app/(playground)/p/[agentId]/beta-proto/components/icons/circle-x.tsx
: Introduced a newCircleXIcon
component to represent failed web searches. (app/(playground)/p/[agentId]/beta-proto/components/icons/circle-x.tsxR1-R21)Web Search Logic Enhancements:
app/(playground)/p/[agentId]/beta-proto/web-search/server-action.ts
: Updated thegenerateWebSearchStream
function to handle exceptions and mark web search items as failed when an error occurs. (app/(playground)/p/[agentId]/beta-proto/web-search/server-action.tsR123, app/(playground)/p/[agentId]/beta-proto/web-search/server-action.tsR154-R171)Status Handling:
app/(playground)/p/[agentId]/beta-proto/web-search/types.ts
: Added a newfailed
status towebSearchItemStatus
and introduced aFailedWebSearchItemReference
interface. (app/(playground)/p/[agentId]/beta-proto/web-search/types.tsR31, app/(playground)/p/[agentId]/beta-proto/web-search/types.tsL47-R73)UI Updates:
app/(playground)/p/[agentId]/beta-proto/web-search/websearch-block.tsx
: Updated theWebSearchBlock
component to display theCircleXIcon
for failed web search items. (app/(playground)/p/[agentId]/beta-proto/web-search/websearch-block.tsxR66-R67)Release flow:
The database migration does not exist in these changes. So I'll release it and check it after approval.