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: show full URL (truncated) in app context popover instead of hostname only

Louis Beaumontc627b611ec2f
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline/app-context-popover.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline/app-context-popover.tsx
index 28b99b8ef..4aeec3759 100644
--- a/apps/screenpipe-app-tauri/components/rewind/timeline/app-context-popover.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/timeline/app-context-popover.tsx
@@ -22,14 +22,6 @@ interface AppContextPopoverProps {
onSearch?: () => void;
}
-function extractDomain(url: string): string {
- try {
- return new URL(url).hostname.replace("www.", "");
- } catch {
- return url;
- }
-}
-
export function AppContextPopover({
appName,
appNames,
@@ -227,7 +219,7 @@ export function AppContextPopover({
}}
>
<ExternalLink className="w-2.5 h-2.5 flex-shrink-0" />
- <span className="truncate">{extractDomain(u.url)}</span>
+ <span className="truncate">{u.url.replace(/^https?:\/\/(www\.)?/, "")}</span>
</button>
))}
</div>