diff --git a/.sourcegraph/memory.md b/AGENT.md similarity index 100% rename from .sourcegraph/memory.md rename to AGENT.md diff --git a/README.md b/README.md deleted file mode 100644 index 33e4132..0000000 --- a/README.md +++ /dev/null @@ -1,48 +0,0 @@ -# About - -This repo generates a JSON file with answers to questions on Sourcegraph's community forum [that are solved](https://community.sourcegraph.com/search?q=status%3Asolved). It uses Amp to generate [the JSON file](https://raw.githubusercontent.com/sourcegraph-community/forum-answers-for-docs/refs/heads/main/answers.json). - -## How does it work? - -Amp uses `memory.md` so all you need to do is paste the url in the text box and `command+return`. This will automatically append a new JSON object to the bottom of the file. - -## Prompts - -### Amp - -``` -I want you to go to this page: https://community.sourcegraph.com/t/updating-cody-search-index-hangs-forever/2275 - -Grab the title: "Updating Cody search index… hangs forever" - -then the answer: "I have been on this for two weeks. Now, I believe it is not directly related to Cody. I had Python Extension deactivated, and activating it fixed the problem." - -Then create a json file with the following json schema: -* url -* title -* answer - -Going forward I will give you a url, and you will append the next json object to the bottom of answers.json -``` - -#### This will produce a JSON file with the following schema - -```json -{ - "url": "https://community.sourcegraph.com/t/updating-cody-search-index-hangs-forever/2275", - "title": "Updating Cody search index… hangs forever", - "answer": "I have been on this for two weeks. Now, I believe it is not directly related to Cody. I had Python Extension deactivated, and activating it fixed the problem." -} -``` - -#### Clean up question & answer - -``` -The questions ("title") and "answer" are from a forum so the grammar and context might be off. rewrite these faqs and keep the json format. -``` - -## Publish - -- Git commit -- Git push -- Git merge diff --git a/answers.json b/answers.json index 9421c06..12f42bb 100644 --- a/answers.json +++ b/answers.json @@ -1,4 +1,10 @@ -[{ +[ +{ + "url": "https://community.sourcegraph.com/t/disallowed-special-token-found-im-start/2717", + "title": "Handling disallowed special tokens in code files", + "answer": "When working with code that contains special tokens like '<|im_start|>' that are interpreted as prompt injection attempts, these tokens cannot be directly included in the context. This is a security guardrail implemented by design to prevent prompt injection. Currently, there is no built-in escaping mechanism to allow these tokens to be processed normally. Consider manually modifying your files to use alternative representations if you need to work with these tokens in your codebase." +}, +{ "url": "https://community.sourcegraph.com/t/how-to-change-account-login-method/2498", "title": "Changing account login method from Google to Sourcegraph", "answer": "To switch your login method from Google to Sourcegraph, use the Sourcegraph Enterprise login option despite being a Pro user. After logging out, select the Enterprise option, enter https://sourcegraph.com as the URL and use your access token. This method works for cloud customers who need custom URLs and for Sourcegraph Gateway instances." @@ -18,6 +24,11 @@ "title": "Security considerations when using custom API keys and model configurations", "answer": "When utilizing your own API key and model configuration with Cody and `cody.dev.models`, the requests are primarily routed directly to your designated provider. While some background processing may occur to gather context and transmit telemetry data, the core prompt and request are designed to be sent to your deployment. This architecture aims to ensure that sensitive data remains within your control, minimizing exposure to external systems." }, +{ + "url": "https://community.sourcegraph.com/t/failed-to-retrieve-search-context-evalerror-symf-failed/2667", + "title": "Resolving 'symf failed' error in VS Code", + "answer": "If you encounter the error 'Failed to retrieve search context: EvalError: symf failed' in VS Code, try deleting your chat history. This can sometimes resolve the issue without needing to restart the IDE. This error may occur on new chats until the history is cleared." +}, { "url": "https://community.sourcegraph.com/t/vscode-extension-not-working-in-ssh-remote-connection/1834", "title": "Troubleshooting Sourcegraph VS Code extension in SSH remote connections", @@ -26,10 +37,9 @@ { "url": "https://community.sourcegraph.com/t/hitting-limits-due-to-model-switching/2200", "title": "Resolving rate limit issues caused by model switching", - "answer": "If you've encountered rate limit issues due to frequent model switching, and have been informed it's related to 'problematic code', we recommend the following steps: First, ensure your Cody plugin or extension is updated to the latest stable version. Then, try logging out and back into your Sourcegraph account. This should resolve the issue and prevent future occurrences." + "answer": "If you encounter rate limit issues due to frequent model switching, update your Cody plugin/extension to the latest stable version. Then, log out and log back into your Sourcegraph account to resolve the issue. This solution addresses problems related to what Sourcegraph identified as 'problematic code' that caused some users to be incorrectly flagged or banned." }, { - "url": "https://community.sourcegraph.com/t/error-403-workspaces-forbidden-user-is-banned/2438", "title": "Error: 403 workspaces forbidden user is banned", "answer": "Please contact support@sourcegraph.com via e-mail for further clarification." }, @@ -77,4 +87,29 @@ "url": "https://github.com/sourcegraph/jetbrains/issues/3225", "title": "GoLand on macOS repeatedly prompts for Cody login despite successful authentication.", "answer": "To resolve this, please ensure that GoLand is configured to use the native macOS Keychain for storing passwords. This allows the application to securely remember your login credentials. To check this setting, navigate to **Settings** (or **Preferences** on macOS) > **Appearance & Behavior** > **System Settings** > **Passwords** and verify that the option **'In native Keychain'** is selected. If it's not, select it and restart GoLand." +}, +{ + "url": "https://www.reddit.com/r/sourcegraph/comments/1jr9tzh/stuck_at_starting_cody_in_phpstorm/", + "title": "As the Title says I'm stuck at \"Starting Cody...\" in PhpStorm.", + "answer": "To resolve the \"Starting Cody...\" hang in PhpStorm on Ubuntu 24.04, try these additional troubleshooting steps: Verify JCEF (Java Chromium Embedded Framework) is properly enabled with correct VM options, ensure all required system packages are installed (libnss3, libatk-bridge2.0-0t64, libxss1, libgbm1, libasound2t64), and check your IDE logs for specific errors. If problems persist, try resetting the IDE cache or reinstalling the Cody plugin." +}, +{ + "url": "https://community.sourcegraph.com/t/is-there-a-status-board-for-cody/2537", + "title": "Is there a status board for Cody?", + "answer": "Yes, Sourcegraph maintains a status page for monitoring Cody and other services. You can check the status page at 'Sourcegraph Status' which shows maintenance events and service availability. During outages, Sourcegraph also posts announcements about scheduled maintenance that may affect service here: https://sourcegraphstatus.com/" +}, +{ + "url": "https://community.sourcegraph.com/t/how-to-ignore-files-folders/2622", + "title": "How to ignore files/folders in Cody", + "answer": "Currently, Cody does not have a built-in file/folder ignore feature for JetBrains IDEs. While the documentation mentions an ignore feature for Enterprise users, this is not available for Pro users at this time. The feature has been requested and tagged for the product team's consideration. Pro users seeking similar functionality should monitor future updates as this has been identified as a desired feature." +}, +{ + "url": "https://community.sourcegraph.com/t/how-to-customize-cody/2651", + "title": "How to customize Cody in Visual Studio", + "answer": "For customizing Cody in Visual Studio, use 'cody.chat.preInstruction' instead of 'instructions' in your configuration file. The Visual Studio extension is still in experimental phase, so some features may not work as expected. When configuring Cody, ensure you're using the correct configuration keys as they differ between IDE extensions." +}, +{ + "url": "https://www.reddit.com/r/sourcegraph/comments/1khiig3/how_to_deal_with_login_error_failed_to_saving/", + "title": "How to deal with login error 'Failed to saving state to session'", + "answer": "This error is typically due to a service interruption or network issue on our end. Please check the status page https://sourcegraphstatus.com/ for any updates or outages." }] \ No newline at end of file