sourcegraph / cody

Type less, code more: Cody is an AI code assistant that uses advanced search and codebase context to help you write and fix code.
https://cody.dev
Apache License 2.0
2.66k stars 291 forks source link

feedback: easier login path for Positron #5600

Open SamEdwardes opened 1 month ago

SamEdwardes commented 1 month ago

Version

Code - OSS Version: 1.92.0

Areas for Improvement

What needs to be improved? Please describe how this affects the user experience and include a screenshot.

I am using Positron, which as an IDE built off a VS Code fork (https://github.com/posit-dev/positron). The sign in process is a bit tricky:

Screenshot 2024-09-16 at 15 47 05@2x

Describe the solution you'd like to see

Option 1

Option 2

Screenshot 2024-09-16 at 15 48 11@2x

Describe any alternatives that could be considered

No response

Additional context

Positron info:

Positron Version: 2024.09.0 (Universal) build 27
Code - OSS Version: 1.92.0
Commit: d996153f3be6bcc9af460300e61103425323b973
Date: 2024-09-11T02:38:46.408Z (5 days ago)
Electron: 30.1.2
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 23.5.0

Note this is similar to issue https://github.com/sourcegraph/cody/issues/4708 I previously raised.

GitHunter0 commented 1 day ago

I cannot authorize Cody in Positron IDE because the link automatically opens VScode, not Positron.

Is there a workaround?

SamEdwardes commented 1 day ago

I was able to get it working on Positron with these instructions:

Signing in with "Enterprise Instance" does work, but it is not intuitive. Click "Sign In to Your Enterprise Instance" "Sign in with URL and access token" Use https://sourcegraph.com as the URL Enter your access token

GitHunter0 commented 21 hours ago

Thank you @SamEdwardes , I believe it worked here