File context broken, does not refresh prompt context on edits

Aperta
#1,175 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
kotlin
Ambito
devtools

Direzione di ricerca

Start with the JetBrains plugin's Agent-mode file-context and chat request flow, since no specific files or tests are named. Reproduce the behavior by adding a file to the context, requesting an edit, then checking whether the next request sends the updated file contents. Done means edits are refreshed in the model context and later requests can locate and modify the changed sections without manually pasting the file.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
What happened?

Latest version that introduced the Agent mode broke the file context in the chat.

What happens is I add a file to the context, so the model can see it.
I request an edit, say add a button to a website and it very fast becomes clear it doesnt see these edits going forward.
For example if I request it remove the button again, it is refusing to do so and requests me pasting the current version of the files into chat or just makes up stuff, typically with wrong whitespaces leading to the edit blocks in the frontend not finding the referenced sections. When I manual paste the file in the chat the edit blocks work fine.

This was working in pretty much all previous versions and seems to be independent to what model I select so not a model quality issue.

It seems very clear that only initial version of files are being transmitted to the model.

I am going to attempt to somehow roll back the plugin because it is completely unreliable now or use another for the time being

Relevant log output or stack trace

Steps to reproduce

No response

CodeGPT version

3.7.0-241.1

Operating System

None

Lingua principale
Kotlin
Stelle
1.9k
Fork
401
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di carlrobertoh/ProxyAI

Tutte le issue di carlrobertoh/ProxyAI

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.