Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Not finding organization prompts created via SourceGraph.com website #7157

Open
tumma72 opened this issue Feb 20, 2025 · 5 comments
Open

Not finding organization prompts created via SourceGraph.com website #7157

tumma72 opened this issue Feb 20, 2025 · 5 comments
Labels
bug Something isn't working question Further information is requested repo/cody

Comments

@tumma72
Copy link

tumma72 commented Feb 20, 2025

Type: Bug

Extension Information

  • Cody Version: 1.70.0
  • VS Code Version: 1.97.2
  • Extension Host: desktop

Steps to Reproduce

  1. I have clicked on the Prompt library to add a new prompt
  2. I have created a Prompt and saved it (the url was https://.sourcegraph.app/prompts) using the organization ownership not the private id
  3. The prompt doesn't appear in the VSCode prompts list, but I can see it if I login to https://www.sourcegraph.com/prompts with my organization account

Expected Behaviour

It would appear as if I have 2 identities with the same email address, I have upgraded from Pro to Enterprise Starter, and then quit the Pro subscription as your sales suggested. Now I am very confused because I still have 2 accounts, and in both account there is my organization "agile42" but they do not seem to be the same, so I see different prompts and different searches depending on where I am logging in from. The only way to get the prompts in VSCode is to copy them in my personal/account organization "agile42" even though in VSCode Cody extension I am connected to https://agile42.sourcegraph.app/

Logs

█ telemetry-v2 recordEvent: cody.extension/savedLogin:
█ auth Authenticating to https://agile42.sourcegraph.app/...
█ ModelsService User model preferences changed: {"defaults":{"chat":"anthropic::2024-10-22::claude-3-5-sonnet-latest","edit":"anthropic::2024-10-22::claude-3-5-sonnet-latest","autocomplete":"fireworks::v1::deepseek-coder-v2-lite-base"},"selected":{"chat":"sourcegraph::2023-06-01::deep-cody"}}
█ ChatsController:constructor init
█ main:deserializeWebviewPanel reviving last unclosed chat panel
█ ChatController:revive registering webview panel
█ auth Authentication succeed to endpoint https://agile42.sourcegraph.app/
█ telemetry-v2 recordEvent: cody.auth/connected:
█ ClientConfigSingleton refreshing configuration
█ openctx Failed to load OpenCtx client: Error: command 'openctx.toggleEnable' already exists
█ ChatController updateViewConfig:
█ ContextFiltersProvider setContextFilters:
█ ClientConfigSingleton refreshed: {"codyEnabled":true,"chatEnabled":true,"autoCompleteEnabled":true,"customCommandsEnabled":true,"attributionEnabled":false,"smartContextWindowEnabled":true,"modelsAPIEnabled":true,"latestSupportedCompletionsStreamAPIVersion":6}
█ ModelsService new models API enabled
█ auth Authenticating to https://agile42.sourcegraph.app/...
█ ChatController updateClientConfig:
█ auth Authentication succeed to endpoint https://agile42.sourcegraph.app/
█ ModelsService ModelsData changed: 18 primary models
█ Autocomplete:initialized using "server-side-model-config": "fireworks::deepseek-coder-v2-lite-base"
█ ModelsService ModelsData changed: 18 primary models
█ ChatController updateViewConfig:
█ ChatController updateClientConfig:
█ ChatController updateViewConfig:
█ UpstreamHealth Ping took 200ms :
█ ChatController updateClientConfig:
█ ChatController updateViewConfig:
█ ChatController updateViewConfig:
█ ClientConfigSingleton refreshing configuration
█ ClientConfigSingleton refreshed: {"codyEnabled":true,"chatEnabled":true,"autoCompleteEnabled":true,"customCommandsEnabled":true,"attributionEnabled":false,"smartContextWindowEnabled":true,"modelsAPIEnabled":true,"latestSupportedCompletionsStreamAPIVersion":6}
█ Autocomplete:defaultClient:fetch endpoint: "https://agile42.sourcegraph.app/.api/completions/code?client-name=vscode&client-version=1.70.0" outputChannelId: "a863686e-0379-40f5-b5d5-2ba38e95fdfa":
█ Autocomplete:onComplete duration:"495ms" stopReason:"cody-request-aborted" outputChannelId:"a863686e-0379-40f5-b5d5-2ba38e95fdfa":
█ Autocomplete:defaultClient:fetch endpoint: "https://agile42.sourcegraph.app/.api/completions/code?client-name=vscode&client-version=1.70.0" outputChannelId: "cdb6b854-b21f-4642-81e4-b5009f67c754":
█ Autocomplete:onComplete duration:"396ms" stopReason:"cody-request-aborted" outputChannelId:"cdb6b854-b21f-4642-81e4-b5009f67c754":
█ telemetry-v2 recordEvent: cody.ghostText/visible:

Extension version: 1.70.0
VS Code version: Code 1.97.2 (e54c774e0add60467559eb0d1e229c6452cf8447, 2025-02-12T23:20:35.343Z)
OS version: Darwin arm64 24.3.0
Modes:

System Info
Item Value
CPUs Apple M4 Max (16 x 2400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 2, 2, 2
Memory (System) 128.00GB (68.05GB free)
Process Argv --crash-reporter-id d13bb107-6822-4f3a-8a93-9bf62fb9dd04
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
py29gd2263:31024239
vscaac:30438847
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dwnewjupytercf:31046870
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc2:31192216
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624
dwoutputscf:31238124
customenabled:31241370
5a9hg449:31230677
hdaa2157:31222309
copilot_t_ci:31222730
jda6j935:31233686

Copy link

linear bot commented Feb 20, 2025

@github-actions github-actions bot added bug Something isn't working repo/cody labels Feb 20, 2025
@PriNova
Copy link
Collaborator

PriNova commented Feb 21, 2025

Hey @tumma72

Thank you for reaching out to us. It seems there might be issues with syncing the different accounts (Pro/Enterprise Starter).
I can't reproduce this issue on my side and it stores the prompt in that account where I generated it.
My best advice therefore is to log out completely on both accounts on the web and in VS Code and delete cookies and data in the browser of all respective domains.

I hope that helps.

@tumma72
Copy link
Author

tumma72 commented Feb 21, 2025

Hey @tumma72

Thank you for reaching out to us. It seems there might be issues with syncing the different accounts (Pro/Enterprise Starter). I can't reproduce this issue on my side and it stores the prompt in that account where I generated it. My best advice therefore is to log out completely on both accounts on the web and in VS Code and delete cookies and data in the browser of all respective domains.

I hope that helps.

Thanks for the reply @PriNova I already did all of that, and removed site blocker from my browser, but somehow the "Prompt Library" has javascript errors even when I reload the page and remove all cache and cookies:

b1bad04e-4de8-4bce-b…-0a6501620901:81899 Error: [Immer] minified error nr: 0. Full error at: https://bit.ly/3cXEKWf
    at die$1 (b1bad04e-4de8-4bce-b…a6501620901:52402:9)
    at getPlugin (b1bad04e-4de8-4bce-b…a6501620901:52528:5)
    at createProxy (b1bad04e-4de8-4bce-b…6501620901:52755:97)
    at Immer2.produce (b1bad04e-4de8-4bce-b…6501620901:83214:28)
    at Mutable.mutate (b1bad04e-4de8-4bce-b…6501620901:93328:27)
    at _CodyStatusBar2.addLoader (b1bad04e-4de8-4bce-b…501620901:241852:22)
    at registerAutocomplete (b1bad04e-4de8-4bce-b…6501620901:81795:35)
    at register (b1bad04e-4de8-4bce-b…6501620901:242568:7)
    at async start2 (b1bad04e-4de8-4bce-b…6501620901:81447:20)
    at async activate (b1bad04e-4de8-4bce-b…6501620901:81889:25)

and

react-dom.production.min.js:106 Uncaught Error: Unhandled node type in atMentionsSerializer.serialize: linebreak
    at $ne (vscode-shim-D5fSC1mv.mjs:36236:13)
    at onSubmit (Form.js:92:40)
    at Object.uc (react-dom.production.min.js:54:317)
    at sc (react-dom.production.min.js:54:471)
    at ac (react-dom.production.min.js:55:35)
    at ao (react-dom.production.min.js:105:68)
    at As (react-dom.production.min.js:106:380)
    at react-dom.production.min.js:117:104
    at gu (react-dom.production.min.js:273:42)
    at cs (react-dom.production.min.js:52:375)

Because of this I can't actually save a prompt :-(

@PriNova
Copy link
Collaborator

PriNova commented Feb 21, 2025

What browser are you using and are there any extensions installed interfering with the process?
What about safety settings in your browser? If they are set to high then they might block that action.

@tumma72
Copy link
Author

tumma72 commented Feb 21, 2025

  1. I have tried with Safari, Chrome and Arc (Chromium) and got the same results even with disabled extensions, all of them. Same result.
  2. The error I see seems to have to do with the authentication of some of the paths that should be downloaded. The reason "due to access control checks" is clearly a server thing. If I click on the URL I am getting an empty page with written "no route"

Here is what I see in the console:

[Log] copyExtensionRelativeResources: Failed to find /tmp/__dirname/win-ca-roots.exe, skipping copy (e45688c3-4ff1-4fdd-8ea7-014664e7c4ca, line 23447)
[Error] Failed to load resource: the server responded with a status of 404 () (react-dom.production.min.js, line 0)
[Error] Error: Unhandled node type in atMentionsSerializer.serialize: linebreak
	As (chunk-chunk-WULGENM7.js:5:31886)
	(anonymous function) (chunk-chunk-WULGENM7.js:5:36752)
	gu (chunk-chunk-WULGENM7.js:8:36925)
	cs (chunk-chunk-WULGENM7.js:5:8991)
	Fl (chunk-chunk-WULGENM7.js:5:33126)
	Ki (chunk-chunk-WULGENM7.js:5:17355)
	_c (chunk-chunk-WULGENM7.js:5:17143)

And this repeats every time I click the "Save" button in the Prompt edit page.

@PriNova PriNova added the question Further information is requested label Feb 26, 2025 — with Linear
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working question Further information is requested repo/cody
Projects
None yet
Development

No branches or pull requests

2 participants