Description
Every time AI edits a file, if there's any generic tags it strips without me asking. And if I ask to add it back it can't, it keeps trying to edit but nothing happens. It happens with all models, I think it is related to the edit tool.
This started after I removed oh-my-opencode, I tried doing a clean re-install, but it didn't work.
Here's a few examples:
diff
- <DashboardSectionWithSheet<ProductShowcaseRecord & { _id: string }>
+ <DashboardSectionWithSheet
- export const getStaticProps: GetStaticProps<ExplorePageProps> = async () => {
+ export const getStaticProps: GetStaticProps = async () => {
- return result as ObjectTypeParser<SqlFeaturedBusiness, Date, string>;
+ return result as ObjectTypeParser;
asking it to re-insert my generics
Plugins
only built-ins
OpenCode version
1.4.3
Steps to reproduce
- Ask it to make changes to a TS file with generics
- Watch it strip all your generic without you asking for it
Screenshot and/or share link
https://opncd.ai/share/2db8Z5yU
Operating System
macOS 26.3.1
Terminal
Ghostty
Description
Every time AI edits a file, if there's any generic tags it strips without me asking. And if I ask to add it back it can't, it keeps trying to edit but nothing happens. It happens with all models, I think it is related to the edit tool.
This started after I removed
oh-my-opencode, I tried doing a clean re-install, but it didn't work.Here's a few examples:
diff
asking it to re-insert my generics
Plugins
only built-ins
OpenCode version
1.4.3
Steps to reproduce
Screenshot and/or share link
https://opncd.ai/share/2db8Z5yU
Operating System
macOS 26.3.1
Terminal
Ghostty