OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

[Bug]: repo.md missing from the prompt

Open enyst opened this issue 10 months ago • 3 comments

Is there an existing issue for the same bug?

  • [x] I have checked the existing issues.

Describe the bug and reproduction steps

In this trajectory, I tried to ask the LLM to tell me if it got the repo.md info in the prompt, and I'm ready to believe it when it says it didn't: 😅 Gemini with selected repo

The trajectory seems to show that the session was reloaded before starting to talk to the LLM, and I think that was the case indeed.

Maybe we only include it at the first load?

Edited: it's supposed to be included at a regular restore, from refresh and from home page -> jump.

OpenHands Installation

app.all-hands.dev

enyst avatar Jan 29 '25 23:01 enyst

It loses it from the prompt after a runtime error. Strange looking trajectory:

Image

After this, it doesn't have repo.md in the prompt: example trajectory

Image

enyst avatar Jan 30 '25 00:01 enyst

I think events actually won't keep track of those prompt extensions, which make things much harder to debug. I'm asking OpenHands to work on this (https://github.com/All-Hands-AI/OpenHands/pull/6526) - hopefully it can make things more transparent

xingyaoww avatar Jan 30 '25 18:01 xingyaoww

Ahh yeah interesting, that's a good point Xingyao

I guess we should modify the MessageAction instead of modifying the LLM user message?

rbren avatar Feb 21 '25 18:02 rbren