Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(chat): home connect tiles open connections dialog instead of inline card

Anshgrover23fe721bed76dd
diff --git a/apps/screenpipe-app-tauri/components/chat/summary-cards.tsx b/apps/screenpipe-app-tauri/components/chat/summary-cards.tsx
index 732913bf2..0f6c5b0ad 100644
--- a/apps/screenpipe-app-tauri/components/chat/summary-cards.tsx
+++ b/apps/screenpipe-app-tauri/components/chat/summary-cards.tsx
@@ -267,9 +267,7 @@ export function SummaryCards({
tabIndex={0}
onClick={openConnection}
onKeyDown={(e) => e.key === "Enter" && openConnection()}
- className={`group relative text-left p-2 border bg-muted/10 hover:bg-foreground hover:text-background hover:border-foreground transition-all duration-150 cursor-pointer ${
- isBrowseAll ? "border-border/40" : "border-dashed border-border/60"
- }`}
+ className="group relative text-left p-2 border border-border/40 bg-muted/10 hover:bg-foreground hover:text-background hover:border-foreground transition-all duration-150 cursor-pointer"
>
<div className="mb-0.5 flex h-4 w-4 items-center justify-center">
{isBrowseAll
@@ -277,7 +275,7 @@ export function SummaryCards({
: <ConnectionSuggestionIcon name={connection.icon} />}
</div>
<div className="text-[11px] font-medium group-hover:text-background mb-0.5 leading-tight pr-4">
- {isBrowseAll ? connection.title.toLowerCase() : `+ ${connection.title.toLowerCase()}`}
+ {connection.title.toLowerCase()}
</div>
<div className="text-[10px] text-muted-foreground group-hover:text-background/60 leading-tight line-clamp-1">
{connection.description}
diff --git a/apps/screenpipe-app-tauri/components/standalone-chat.tsx b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
index baef6b5a1..ab166bfd3 100644
--- a/apps/screenpipe-app-tauri/components/standalone-chat.tsx
+++ b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
@@ -948,42 +948,6 @@ export function StandaloneChat({
turnIntentLedgerRef,
});
- const openInlineConnectionCard = useCallback((connectionId: string) => {
- if (connectionId === "connections") {
- openConnectionSetup(connectionId);
- return;
- }
-
- const connection = allConnectionItems.find((item) => item.id === connectionId);
- const connectionName = connection?.name || connectionId;
- const message: Message = {
- id: `connection-action-${connectionId}-${Date.now()}`,
- role: "assistant",
- content: "",
- timestamp: Date.now(),
- contentBlocks: [
- {
- type: "connection_action",
- connectionId,
- connectionName,
- icon: connection?.icon || connectionId,
- description: connection?.description,
- pendingActionLabel: `continue with ${connectionName}`,
- pendingActionPrompt: `${connectionName} is connected now. Continue the action we were discussing, but ask me for confirmation before writing to ${connectionName}.`,
- },
- ],
- };
-
- setMessages((prev) => {
- const alreadyVisible = prev.some((row) =>
- row.contentBlocks?.some(
- (block) => block.type === "connection_action" && block.connectionId === connectionId,
- ),
- );
- return alreadyVisible ? prev : [...prev, message];
- });
- }, [allConnectionItems, openConnectionSetup]);
-
const answerPiExtensionUiRequest = useCallback(async (
requestId: string | undefined,
response: JsonValue,
@@ -1383,7 +1347,7 @@ export function StandaloneChat({
}}
summaryCardsProps={{
onSendMessage: sendMessage,
- onOpenConnection: openInlineConnectionCard,
+ onOpenConnection: openConnectionSetup,
connectionSetupSuggestions,
autoSuggestions: connectionAwareSuggestions,
suggestionsRefreshing,