File context broken, does not refresh prompt context on edits

Open
#1,175 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
kotlin
Domain
devtools

Research direction

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.

Written by the indexing model from the issue text.

Description

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

Dominant language
Kotlin
Stars
1.9k
Forks
401
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from carlrobertoh/ProxyAI

All issues in carlrobertoh/ProxyAI

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.