continuedev / continue

⏩ Continue is the leading open-source AI code assistant. You can connect any models and any context to build custom autocomplete and chat experiences inside VS Code and JetBrains
https://docs.continue.dev/
Apache License 2.0
15.88k stars 1.21k forks source link

Recent versions Incompatible with Remote-SSH #1986

Open karlmutch-cynch opened 1 month ago

karlmutch-cynch commented 1 month ago

Before submitting your bug report

Relevant environment info

- OS: OSX
- Continue: 0.8.45
- IDE: VSCode
- Model: M1 (128) / M3 (256)
- config.json:

{
  "models": [
    {
      "title": "Codestral M3",
      "provider": "ollama",
      "model": "codestral:22b-v0.1-q5_1",
      "apiBase": "http://100.78.247.98:11434/"
    },
    {
      "title": "Codestral M1",
      "provider": "ollama",
      "model": "codestral:22b-v0.1-q5_1",
      "apiBase": "http://127.0.0.1:11434/"
    },
    {
      "title": "Gemma2 M1",
      "provider": "ollama",
      "model": "gemma2:9b",
      "apiBase": "http://127.0.0.1:11434/"
    },
    {
      "title": "LLama3.1 M3",
      "provider": "ollama",
      "model": "llama3.1:70b",
      "apiBase": "http://100.78.247.98:3000/v1"
    }
  ],
  "customCommands": [
    {
      "name": "test",
      "prompt": "{{{ input }}}\n\nWrite a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
      "description": "Write unit tests for highlighted code"
    }
  ],
  "tabAutocompleteModel": {
    "title": "Codestra M1",
    "provider": "ollama",
    "model": "codestral:22b-v0.1-q5_1",
    "apiBase": "http://127.0.0.1:11434/"
  },
  "allowAnonymousTelemetry": false,
  "docs": []
}

Description

Remote-SSH connections hang after saving a file. Reconnections fail and the VSCOde needs reloading.

To reproduce

  1. Upgrade to the lastest VSCode
  2. Load a large code base from a Remote-SSH based project
  3. Save a file, wait a bit save another file
  4. Save now fails to complete, the SSH connection is being reattempted and never succeeds

Log output

No response

no1wudi commented 1 month ago

I meet the same issue with VSCode 1.92.1

fry69 commented 1 month ago

Can you please confirm this is still happening with current Pre-Release 0.9.196 (or the next stable version >= 0.8.46 if it got released in the meantime)?

no1wudi commented 1 month ago

@fry69 Thanks! It seems OK with 0.9.196

no1wudi commented 1 month ago

@fry69 Unfortunately, after a considerable period of usage, I’ve discovered that the editor still encounters freezing issues, which appear to be connected to automatic indexing. I attempted to disable the code indexing, and as a result, the freezing ceased.

BTW, I am working with a large project that consists of tens of gigabytes of files.

When the system is stuck, Task Manager shows that a VSCode process is using 100% of the CPU. I suspect that this process might be related to the 'Continue' functionality.

fry69 commented 1 month ago

@fry69 Unfortunately, after a considerable period of usage, I’ve discovered that the editor still encounters freezing issues, which appear to be connected to automatic indexing. I attempted to disable the code indexing, and as a result, the freezing ceased.

Indexing is under heavy development, hopefully this problem will get at least bearable in the near future when using a remote ssh setup. Otherwise, remote ssh, huge repository sizes and indexing naturally collide, esp. when also remote embeddingsProvider/reranker are configured. Disabling indexing this case might be a sensible solution.