Skip to content

tighten up detection#1

Open
IgorWarzocha wants to merge 1 commit intoariane-emory:mainfrom
IgorWarzocha:tighten-detection-fix
Open

tighten up detection#1
IgorWarzocha wants to merge 1 commit intoariane-emory:mainfrom
IgorWarzocha:tighten-detection-fix

Conversation

@IgorWarzocha
Copy link

@IgorWarzocha IgorWarzocha commented Jan 26, 2026

wasn't quite working for me, I rebuilt it completely (see my howaboua branch). My mate Gemini identified this as the single line that will make it work more reliably in your monolith-style version. up to you if you wanna merge ;)

Technical Details

  • Replaced the specific type cast (part as { text: string }) with (part as any) during the text replacement loop.
  • This ensures that property mutation on the output.parts objects is more resilient to variations in the internal Part type structure across different SDK environments, preventing silent failures during prompt interception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant