block-open-source / goose

Goose is a developer agent that operates from your command line to help you do the boring stuff.
https://block-open-source.github.io/goose/
Apache License 2.0
73 stars 12 forks source link

goose keeps remembering old file content #84

Open michaelneale opened 1 week ago

michaelneale commented 1 week ago

Even though it knows file has changed, it is unable to "forget" the old content of the file from its context.

Result: often old unwanted changes make their way back into a file, if you have edited it outside of the goose session.

Solution: probably need to prune past content of the file in the current session once it is detected to have changed, if at all possible.

michaelneale commented 6 days ago

I think this may be able to be addressed with a moderator: a moderator which drops old content smartly especially if it knows there is a new version of the file.

baxen commented 5 days ago

Agree! pruning reads from the history based on path probably improves performance and should also drop context naturally quite a bit