Commit graph

12 commits

Author SHA1 Message Date
Anish Sarkar
96da8498e6 Merge remote-tracking branch 'upstream/dev' into fix/electron-nextjs 2026-05-25 18:01:06 +05:30
Anish Sarkar
fe797e65d6 refactor(deep-links, quick-ask, window): replace localhost references with dynamic server origin retrieval 2026-05-25 17:55:03 +05:30
Anish Sarkar
a2847664c8 feat(server): enhance server management with process forking and implement server origin retrieval 2026-05-25 17:52:10 +05:30
CREDO23
b9403b1720 feat(desktop): emit PostHog events for OAuth redirect intercept and miss
Adds two diagnostic events to surface OAuth-redirect failures we can't
reproduce on Linux:

- desktop_oauth_redirect_intercepted fires from inside onBeforeRequest
  with the original host, path, and target port — confirms the rewrite
  actually ran.
- desktop_oauth_redirect_missed fires from a read-only onCompleted
  listener when a /dashboard/*/connectors/callback URL lands off-localhost,
  meaning the rewrite filter didn't catch it. This is the smoking-gun
  event for "connector OAuth dies on mac/win" reports.

Read-only; no behavior change.
2026-05-22 18:40:06 +02:00
CREDO23
1b6c238c68 refactor(desktop): harden OAuth redirect rewrite for host variants and self-hosters
The interceptor previously matched a strict `${HOSTED_FRONTEND_URL}/*`
prefix and did a naive String.replace, which broke whenever the backend
NEXT_FRONTEND_URL differed at all (apex vs www, http vs https, or a
self-hosted domain). Now:

- Match by host: apex + www. sibling, both http and https.
- Rewrite via URL parsing so only protocol/host change; query strings
  containing the host as a value are left intact.
- Read HOSTED_FRONTEND_URL through getHostedFrontendUrl() which honors
  a SURFSENSE_HOSTED_FRONTEND_URL_OVERRIDE env var, letting self-hosters
  point their builds at their own frontend without rebuilding.

Default behavior is identical when override is unset and backend host
matches the baked-in value.
2026-05-22 18:39:47 +02:00
Anish Sarkar
cd4e5ae7f2 feat: implement macOS-specific title bar adjustments and enhance RightPanel with toggle functionality 2026-05-19 18:57:06 +05:30
CREDO23
b0810b4d47 Wire General Assist and screen capture through Electron IPC 2026-04-24 19:14:37 +02:00
DESKTOP-RTLN3BA\$punk
24383a3741 feat: add auto-launch functionality for desktop app
- Implemented IPC channels for managing auto-launch settings.
- Enhanced main process to handle auto-launch behavior on startup.
- Updated UI components to allow users to configure launch options.
- Integrated analytics tracking for auto-launch events.

This commit introduces the ability for users to enable or disable the application launching at system startup, along with options for starting minimized to the tray.
2026-04-20 12:42:06 -07:00
DESKTOP-RTLN3BA\$punk
7c6e52a0a5 feat: add active search space management to Electron API and UI
- Introduced IPC channels for getting and setting the active search space, enhancing user experience across the application.
- Updated the preload script to expose new API methods for active search space management.
- Modified the main window and quick ask functionalities to sync the active search space based on user navigation.
- Enhanced the desktop and web applications to allow users to select and manage their default search space seamlessly.
- Implemented automatic synchronization of the active search space during login and navigation events.
2026-04-07 04:45:48 -07:00
CREDO23
eaabad38fc feat: add permission onboarding page and startup routing for macOS 2026-04-02 13:44:57 +02:00
CREDO23
4a5a28805d start at /dashboard, focus cursor after clipboard text 2026-03-25 16:08:39 +02:00
CREDO23
95c4a674be refactor(desktop): extract window creation into modules/window.ts 2026-03-20 19:50:50 +02:00