It would be a nice feature if the user can delete ...
# feedback
l
It would be a nice feature if the user can delete selected messages from the message history in OpenHands WebUI. I can see a lot of less important transactions taking up most of my usable LLM context in the chat. With this feature, user should be able to delete all the events from one user message to the next one. It would be nice, if the deleted content is replaced with some llm generated summary(just like the condensation process..)
👍 1
p
t
I've been playing with a somewhat related idea of providing a tool to allow the LLM to redact previous tool calls it no longer feels are relevant - https://github.com/seagrayc/software-agent-sdk/pull/1/files#diff-b9f4df8856afd389ebf3622deff7f9e03de4038b76c7160b9dae549bb74d1253R85 So the LLM invokes the LLMRelevanceCondenserTool & the LLMRelevanceCondenser will replace the tool response with the short explanation of why the response is no longer relevant to the thread. Potentially useful to clean up old searches; big file views once the contents have been updated etc. A lot of my reasoning was to have an excuse to explore the code base - but it does feel like just flagging a specific tool as not relevant is an easier task for the LLM than providing a full summary of a long conversation. It will break caching ... but *maybe keeping the context relevant is a worthwhile trade off. I ran it on a very small sub-set of SWE-validated (like 2 cases 🙂 ) ... and on those tests; the Agent didn't redact anything. Perhaps there would be room to encourage the Agent to explore code bases even more extensively; as it can get rid of results that don't aid the solution. Happy to discuss further if it peaks anyone's interest.
👍 1
p
@thankful-hair-66948 picture this, when you (or the agent) is debugging something sequentially step by step more often than not, it's able to suggest several steps in advance, but those steps depend on each other; e.g.: first get the id of so and so, then use that* id to curl this, etc. one thing we could do would be to retroactively append the output of the suggested next step to the previous user message (as richer context), so we keep updating the same user message, again and again, with more relevant context, until it's warranted to move on not sure I'm explaining this correctly, but I see it like a kind of steps condensation collapsing into a bigger more context heavy single-step; so caching will still work for the n-1 and previous turns
t
Interesting - I had not been thinking along those lines. Neat that it is friendlier to caching.