Skip to content

fix(remote): handle tailscale_permission_denied gracefully in remote:tailscaleConnect IPC handler #86

Description

@sambitcreate

Description

When attempting to connect or configure Tailscale Remote routes on Linux where the current user has not been granted Tailscale operator permissions (sudo tailscale set --operator=$USER), remote:tailscaleConnect throws an unhandled rejection:

Error occurred in handler for 'remote:tailscaleConnect': Error: tailscale_permission_denied
    at AidenRemoteTailscaleController.applyExactRouteMutation (file:///home/sambit/projects/aiden-agent/build/main/index.js:57408:43)
    at async file:///home/sambit/projects/aiden-agent/build/main/index.js:57425:41
    at async withAidenTailscaleRouteLock (file:///home/sambit/projects/aiden-agent/build/main/index.js:57073:12)
    at async file:///home/sambit/projects/aiden-agent/build/main/index.js:56694:11

Steps to Reproduce

  1. Start Aiden on Linux without granting Tailscale operator permissions (sudo tailscale set --operator=$USER).
  2. In Settings -> Remote Access, attempt to connect Tailscale.
  3. Observe unhandled error logged in Electron process console.

Expected Behavior

remote:tailscaleConnect should handle tailscale_permission_denied gracefully, updating the connection status or returning a structured error outcome so the UI can guide the user to run sudo tailscale set --operator=$USER without throwing an unhandled IPC rejection.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions