eca icon indicating copy to clipboard operation
eca copied to clipboard

auto-compact displayed twice with a strange formatting

Open zikajk opened this issue 10 months ago • 4 comments

I have noticed that result of auto-compact is displayed twice. Once in Tool output. Second in chat itself where it is prefixed with Done.Auto-compacted chat to:\n\n

Image

I think it would be best to keep only tool output and maybe change style of messages before compact but it is just nice to have as it is easy to find where compact happened.

zikajk avatar Jan 25 '26 20:01 zikajk

that was on purpose, it was just in the tool before and then I added to chat after we had some discussion that was not easy to see the new chat content, I don't see a problem with the way it works right now, but since we are not removing the history anymore, we may want to have auto-compact not mention the new content indeed, WDYT?

ericdallo avatar Jan 26 '26 12:01 ericdallo

It is not a big deal for sure but personally I would prefer to see it just in the tool output that precedes text like "Auto-compacted.." or the text that is returned by LLM after it receives the result of compact tool.

The reason is that I might be solving some problem, it compacts and automatically continue after and this adds a noise between.

Maybe we could just keep compact tool expanded by default and that would be best of both worlds. WDYT?

zikajk avatar Jan 26 '26 17:01 zikajk

yeah I understand that, felt in the same case, I believe we can leave it only in the tool indeed, now that we don't clean the history, that seems like a good approach. Also, not trivial to expand a tool automatically from server.

ericdallo avatar Jan 26 '26 17:01 ericdallo

I liked the new UI result, seem better indeed!

ericdallo avatar Jan 26 '26 18:01 ericdallo