Repository navigation
Description
Description
We want to support deep-linking that allows users to navigate directly to a specific page or trigger an action inside the desktop application.
Deep linking is expected to integrate cleanly with the Electron main process lifecycle and the existing TanStack Router-based navigation in the renderer.
The research team has already created a POC and a Story.
With this task, we want to analyze implementation options and validate stability, extensibility, and error-handling for deep-link routing across cold and warm application starts.
Scope note: This task focuses on deep-link support in the desktop app only. Future CLI or Cloud UI integrations are out of scope, but the architecture should remain extensible enough to support additional link handlers over time.
Acceptance Criteria
- Architecture is extensible and composable, allowing new deep-link handlers to be added without modifying core dispatch logic.
- Works seamlessly with TanStack Router for route resolution and navigation in the renderer.
- Supports both cold start (app closed) and warm start (app already running) deep-link handling.
- Implements OS-level protocol handling correctly:
- Registers the deep-link scheme via
app.setAsDefaultProtocolClient - Handles macOS deep links via
app.on('open-url') - Handles Windows/Linux deep links via
second-instance+process.argvparsing
- Registers the deep-link scheme via
- Deep-link events are safely queued until the renderer is ready (leveraging existing window readiness patterns such as
pollWindowReady). - Handles 404 and invalid links gracefully, with clear user-facing recovery options.
- Deep-link scheme and parsing logic are documented, type-safe, and validated.
- Architecture supports multiple link patterns (e.g., navigation routes vs action-style targets).
- Proper error logging and telemetry for broken or invalid links:
- Structured logging via existing logging utilities
- Sentry capture with relevant context (link payload, failure reason)
- Includes at least one proof-of-concept demonstrating navigation from an external deep link to a TanStack route.
- Design is testable and covered by minimal unit and integration tests (main + renderer).
Priority
Medium
Task Type
Feature
Additional Context
Initial codebase research confirms:
- Single-instance mode is already implemented (
app.requestSingleInstanceLock), but does not yet parse deep-link URLs. - No protocol registration or
open-urlhandler exists yet. - TanStack Router uses hash-based routing and supports imperative navigation (
router.navigate). - Existing IPC + telemetry infrastructure (electron-log + Sentry) can be reused for deep-link dispatch and error reporting.
Activity
kantord commentedon Feb 9, 2026
https://docs.google.com/document/d/1Y-tYsIl98DPHKdCNsbuvtZeb0VUq41cTxQfGQElbS9c/edit?tab=t.0 here is a document summarizing findings