plandex icon indicating copy to clipboard operation
plandex copied to clipboard

The same file can be added to context twice

Open JonatanE opened this issue 10 months ago • 6 comments

The same file can be added twice with plandex add. When plandex rm is run on the filename, it reports removing it twice.

JonatanE avatar Apr 08 '24 15:04 JonatanE

Thanks for reporting @JonatanE. In this case, if the file is outdated, it should alert the user and then update the file rather than adding it again if the user confirms. If the file isn't outdated it should just be a no-op.

I'll get this fixed.

danenania avatar Apr 08 '24 17:04 danenania

This might also be a good one for a contributor.

danenania avatar Apr 08 '24 18:04 danenania

Hey @danenania can you assign me to this issue?

abrl91 avatar Apr 09 '24 03:04 abrl91

@abrl91 Done, thank you!

danenania avatar Apr 09 '24 16:04 danenania

@danenania I couldn't reproduce this issue image

@JonatanE can you provide steps to reproduce?

abrl91 avatar Apr 11 '24 08:04 abrl91

image image

It also doesn't seem to update and notifies my in every action. I press "y" to update but it doesnt seem to work.

I'm on WSL2, arch linux btw

JonatanE avatar Apr 11 '24 11:04 JonatanE