Continue appears to rewrite a configured localhost API base URL to 127.0.0.1. (WSL)
Les mainteneurs répondent en général sous 8 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 65/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- typescript
- Domaine
- backend, networking
Piste de recherche
The report shows Continue requesting http://127.0.0.1:8080/completion even though apiBase is configured as http://localhost:8080, while http://[::1]:8080 works. Reproduce with the llama.cpp provider config given, then find where an apiBase URL is normalized, since the config is being rewritten before the request is built. Done looks like the user-supplied hostname being preserved so the request goes to localhost:8080/completion.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Before submitting your bug report
- I've tried finding an answer on the [Continue docs site](https://docs.continue.dev/)
- I'm not able to find an [open issue](https://github.com/continuedev/continue/issues?q=is%3Aopen+is%3Aissue) that reports the same bug
- I've seen the [troubleshooting guide](https://docs.continue.dev/troubleshooting) on the Continue Docs
Relevant environment info
OS: Windows with WSL2 (Ubuntu)
Continue version: V2.0.0
IDE version: VS Code 1.140.0
Model: Qwen3 14B, llama.cpp, ROCm
config:
models:
- name: Qwen3 14B (llama-rocm)
provider: llama.cpp
model: /models/Qwen3-14B-Q4_K_M.gguf
apiBase: http://localhost:8080
roles:
- chat
- edit
- apply
defaultCompletionOptions:
temperature: 0.2
maxTokens: 4096
Description
Continue appears to replace an explicitly configured localhost API base with 127.0.0.1.
My llama.cpp server is reachable through localhost and IPv6 loopback, but not through IPv4 loopback:
curl http://localhost:8080/health
# works
curl http://[::1]:8080/health
# works
curl http://127.0.0.1:8080/health
# fails
Continue is explicitly configured with:
apiBase: http://localhost:8080
However, when Continue attempts a completion, the error shows a request being made to:
http://127.0.0.1:8080/completion
This causes the request to fail with ECONNREFUSED.
The issue appears to be that Continue is replacing localhost with 127.0.0.1 instead of preserving the user-provided hostname and allowing the operating system or runtime to resolve it.
Using IPv6 explicitly works around the issue:
apiBase: http://[::1]:8080
With that configuration, Continue can connect to the llama.cpp server successfully.
Expected behavior
If apiBase is explicitly configured as:
http://localhost:8080
Continue should preserve that hostname and connect to:
http://localhost:8080/completion
It should not rewrite localhost to 127.0.0.1.
localhost and 127.0.0.1 are not always interchangeable, particularly in environments involving WSL2, IPv6, containers, and virtualized networking.
To reproduce
-
Run a llama.cpp server that is reachable through
localhostand::1, but not through127.0.0.1. -
Verify the endpoints:
curl http://localhost:8080/health
curl http://[::1]:8080/health
curl http://127.0.0.1:8080/health
- Configure Continue with:
models:
- name: Qwen3 14B (llama-rocm)
provider: llama.cpp
model: /models/Qwen3-14B-Q4_K_M.gguf
apiBase: http://localhost:8080
roles:
- chat
- edit
- apply
-
Select the model in Continue and send a chat request.
-
Observe that Continue attempts to connect to:
http://127.0.0.1:8080/completion
rather than:
http://localhost:8080/completion
- Change the configuration to:
apiBase: http://[::1]:8080
- Retry the request and observe that it succeeds.
Log output
request to http://127.0.0.1:8080/completion failed, reason: connect ECONNREFUSED 127.0.0.1:8080
- Langage dominant
- TypeScript
- Étoiles
- 36.5k
- Forks
- 5.6k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de continuedev/continue
-
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
continuedev/continue#13486 ·
Les mainteneurs répondent en général sous 8 jours
-
Chat panel overflows horizontally when VS Code zoom level is increased (Cmd/Ctrl + +)Peut-être pris @tang-ontheway l’a pris il y a 1 jour. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
continuedev/continue#13483 ·
Les mainteneurs répondent en général sous 8 jours
-
Docs: show tool selection for a shared remote MCP endpointPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
continuedev/continue#13464 · 1 commentaire ·
Les mainteneurs répondent en général sous 8 jours
-
Inline code becomes unreadable in VS Code high-contrast themesPeut-être pris @aminesayagh l’a pris il y a 21 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 63/100
continuedev/continue#13424 ·
Les mainteneurs répondent en général sous 8 jours
-
create_new_file writes a JSON file on one line when the model sends its contents as a JSON valuePeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
continuedev/continue#13363 ·
Les mainteneurs répondent en général sous 8 jours
Toutes les issues de continuedev/continue
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
vercel-labs/ui#809 ·
Les mainteneurs répondent en général sous 1 jour
-
bot:ai-assisted component:platform-js status:untriaged
Difficulté 1/5 Moins d'une heure Accessibilité débutants 74/100
midnightntwrk/platform-js#38 ·
-
[bug] Second false positive on high-cost plugin alert: detection only compares patch entry id, community plugin dsh-auto | [bug] 高成本插件告警第二次误报:检测只比对 patch 条目 id,社区插件 dsh-auto-review 被认成 @deepseek-ai/dsh-experimental-auto-reviewPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
ranxianglei/billion-context#7068 ·
Les mainteneurs répondent en général sous 1 jour
-
vendor: bump whisper.cpp past 6a8addd — the current pin aborts the app on a failed Metal initOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
mybigday/whisper.rn#348 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
six-group/six-webcomponents#600 ·