Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Causing Git source control function in VSCode to hang #3451

Open
3 tasks done
danielaskdd opened this issue Dec 19, 2024 · 10 comments
Open
3 tasks done

Causing Git source control function in VSCode to hang #3451

danielaskdd opened this issue Dec 19, 2024 · 10 comments
Assignees
Labels
ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior

Comments

@danielaskdd
Copy link

Before submitting your bug report

Relevant environment info

- OS:macOS
- Continue version:v0.8.65
- IDE version: Vscode 1.96.0 (Universal)
- Model: Any
- config.json:
  
{
  "models": [
    {
      "title": "Qwen-coder-7b",
      "provider": "ollama",
      "model": "qwen2.5-coder:7b",
      "systemMessage": "请使用中文回答问题",
      "apiBase": "https://ai.znipower.com:5013/ollama",
      "apiKey": "xxx"
    },
    {
      "title": "Qwen-Coder-Plus",
      "provider": "openai",
      "model": "qwen-coder-plus",
      "systemMessage": "请使用中文回答问题",
      "apiBase": "https://dashscope.aliyuncs.com/compatible-mode/v1",
      "apiKey": "xxx"
    },
    // {
    //   "title": "Qwen-Coder-Plus",
    //   "provider": "openai",
    //   "model": "qwen-coder-plus",
    //   "systemMessage": "请使用中文回答问题",
    //   "apiBase": "https://ai.znipower.com:5013/openai",
    //   "apiKey": "xxxx"
    // },
    {
      "title": "Claude3.5 Sonnet@or",
      "provider": "openai",
      "model": "anthropic/claude-3.5-sonnet",
      "systemMessage": "请使用中文回答问题",
      "apiBase": "https://ai.znipower.com:5013/openai",
      "apiKey": "xxx"
    },
    // {
    //   "title": "Claude3.5 Sonnet",
    //   "provider": "anthropic",
    //   "model": "claude-3-5-sonnet-20241022",
    //   "systemMessage": "请使用中文回答问题",
    //   "apiKey": "xxx"
    // },    
    // {
    //   "title": "Claude3.5-Haiku@ow",
    //   "provider": "openai",
    //   "model": "anthropic.claude-3-5-haiku-20241022",
    //   "systemMessage": "请使用中文回答问题",
    //   "apiBase": "https://ai.znipower.com:5013/api",
    //   "apiKey": "xxxx"
    // },
    // {
    //   "title": "gpt-4o@or",
    //   "provider": "openai",
    //   "model": "openai/gpt-4o",
    //   "systemMessage": "请使用中文回答问题",
    //   "apiBase": "https://ai.znipower.com:5013/openai",
    //   "apiKey": "xxx"
    // },
    // {
    //   "title": "o1-mini@or",
    //   "provider": "openrouter",
    //   "model": "openai/o1-mini",
    //   "systemMessage": "请使用中文回答问题",
    //   "apiBase": "https://openrouter.ai/api/v1",
    //   "apiKey": "xxx"
    // },
    {
      "title": "o1-mini",
      "provider": "openai",
      "model": "o1-mini",
      "systemMessage": "请使用中文回答问题",
      "apiBase": "https://api.openai.com/v1",
      "apiKey": "xxx"
    },
    {
      "title": "gpt-4o",
      "provider": "openai",
      "model": "gpt-4o",
      "systemMessage": "请使用中文回答问题",
      "apiBase": "https://api.openai.com/v1",
      "apiKey": "xxx"
    }
  ],
  "embeddingsProvider": {
    "title": "BGE-M3",
    "provider": "ollama",
    "model": "bge-m3",
    "apiBase": "https://ai.znipower.com:5013/ollama",
    "apiKey": "xxx"
  },
  "tabAutocompleteModel": {
    "title": "Tab Autocomplete",
    "provider": "ollama",
    "model": "qwen2.5-coder:1.5b",
    "apiBase": "https://ai.znipower.com:5013/ollama",
    "apiKey": "xxx"
  },
  "reranker": {
    "name": "voyage",
    "params": {
      "model": "rerank-2",
      "apiKey": "xxx"
    }
  },
  "customCommands": [
    {
      "name": "explain",
      "prompt": "{{{ input }}}\n\n使用中文详细解释所选代码。详细说明其功能、用途和工作原理。",
      "description": "解释代码"
    },
    {
      "name": "check",
      "prompt": "{{{ input }}}\n\n检查选定代码的语法和逻辑错误,如果有明显可以优化的地方,请给出优化建议。使用中文回答问题。",
      "description": "检查代码错误和提出优化建议"
    },
    {
      "name": "test",
      "prompt": "{{{ input }}}\n\n为选定的代码编写一套完整的单元测试代码。测试需要包含重要边界情况的正确性检查。测试需要包括测试前的准备和测试后的清理工作。使用中文书写代码备注",
      "description": "编写单元测试代码"
    }
  ],
  "contextProviders": [
    {
      "name": "code",
      "params": {}
    },
    {
      "name": "docs",
      "params": {}
    },
    {
      "name": "diff",
      "params": {}
    },
    {
      "name": "terminal",
      "params": {}
    },
    {
      "name": "problems",
      "params": {}
    },
    {
      "name": "folder",
      "params": {}
    },
    {
      "name": "web",
      "params": {}
    },
    {
      "name": "codebase",
      "params": {}
    }
  ],
  "slashCommands": [
    {
      "name": "share",
      "description": "Export the current chat session to markdown"
    },
    {
      "name": "cmd",
      "description": "Generate a shell command"
    },
    {
      "name": "commit",
      "description": "Generate a git commit message"
    }
  ]
}

Description

Editor programer with Continue enabled, all the Source Control-related features of VsCode got hung. For example, it becomes impossible to update the number of modified files, and the edit window cannot show the code modification status. This issue occurs even when not enact with Continue plugin, and with Autocomplete feature of the Continue plugin is disabled. When the problem come up, every thing back to normal after disabling the Continue plugin.

To reproduce

No response

Log output

No response

@dosubot dosubot bot added ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior labels Dec 19, 2024
@danielaskdd
Copy link
Author

I enabled WebSocket support on the reverse proxy on Open WebUI, and the problem seems to have disappeared. Cause some AI models is on my Open WebUI.

If the issue was indeed caused by this reason, or if it was due to certain APIs of Open WebUI being temporarily unavailable, neither should cause Continue to malfunction and result in Source Control-related features hanging.

@danielaskdd danielaskdd changed the title Causing the Git extension in VSCode to hang."Git extension in VSCode to hang. Causing the Git source control function in VSCode to hang Dec 19, 2024
@danielaskdd danielaskdd changed the title Causing the Git source control function in VSCode to hang Causing Git source control function in VSCode to hang Dec 19, 2024
@Patrick-Erichsen
Copy link
Collaborator

Hi @danielaskdd , any logs you can share?

Is your hunch that the issue is with Open WebUI in that case?

@danielaskdd
Copy link
Author

My assessment is that the issue was highly related to Open WebUI. This problem troubled me for a week, during which I repeatedly installed different versions of the Continue plugin. After I fixed the reverse proxy settings in Open WebUI to support WebSocket, the problem stopped occurring. Previously, due to the reverse proxy not supporting WebSocket, Open WebUI experienced multiple hanging issues and became inaccessible. Currently, Open WebUI has returned to stable operation. Since the problem hasn't recurred, I'm unable to provide any log information.

@danielaskdd
Copy link
Author

Through Tcpdump packet capture of Open WebUI, I discovered that a 400 error occurs when Continue attempts to access Open WebUI's ollama interface during startup. I needed to change the model name in the configuration file from bge-m3 to bge-m3:latest to prevent the 400 error. This approach is unreasonable because when I use the bge-m3 model with other tools, I never need to add 'latest' to the model name.
iShot_2024-12-20_09 12 45

@Patrick-Erichsen
Copy link
Collaborator

Hmm yeah that sounds like a frustrating troubleshooting experience. Thank you for digging in and getting to the bottom of things.

On Ollama's end, is the name of the model bge-m3 or bge-m3:latest? I am wondering if other tools are just adding :latest by default on behalf of the user.

@danielaskdd
Copy link
Author

On Ollama, the model name is bge-m3:latest. I thing other tools is just adding :latest by default in case of using Ollama models. Ollama is sth. like docker, when you pull a model from repo without tag, latest is added automatically.

@danielaskdd
Copy link
Author

I can finally reproduce the issue where git tools get hung. When the Autocomplete option is enabled in the Continue plugin, after editing code in VSCode for a while, the Continue plugin gets hung, and simultaneously all git-related tools in VSCode become unresponsive. I'm using a local Ollama model for Autocomplete (authenticated and forwarded to Ollama through Open WebUI). Therefore, I believe there must be a bug in how the Continue plugin interacts with Ollama. Below are some log files and screenshots that may help with your analysis of the issue.

iShot_2024-12-22_13 41 20

vscode.log

@danielaskdd
Copy link
Author

Another case of Continue plugin got hanged. logfile: vscode1.log

iShot_2024-12-22_17 09 50

@danielaskdd
Copy link
Author

Disabling Autocomplete doesn't resolve the Continue plugin hanging issue. It's likely related to Codebase Reindex. Even with Autocomplete disabled, when not using the Continue plugin, simply saving code can cause Continue and Git-related components to hang.

@danielaskdd
Copy link
Author

After rolling back to version 0.8.61, the problem seems to be solved. Both Continue and git-related functions no longer show any hanging behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants