Buggy string handling

I’ve been getting buggy auto-completions lately. For example, there is a property directMsgUserId which gets auto-completed from di as directMsgUserIddirectUserIddmUserId.

Not only that, I am also seeing the same duplication in the sidebar. When I selected an interface to query it with Claude 3.7, Cody duplicated interface Foo as interface FooFoo but got the rest of it right. The best part is that Claude realized this and reported

The interface name appears to be duplicated (FooFoo), which is likely a typo

Later I got “This file has been restricted by an admin.” when it has not.

And today I got The current sealed class LiveMessagePostContainerPostContainer seems redundant and there's a typo in PostContainerer() when renaming the class from PostContainer to LiveMessage in the sidebar.