diff --git a/studio/frontend/src/features/chat/chat-page.tsx b/studio/frontend/src/features/chat/chat-page.tsx index 65080bda3b..00d407fab9 100644 --- a/studio/frontend/src/features/chat/chat-page.tsx +++ b/studio/frontend/src/features/chat/chat-page.tsx @@ -98,9 +98,14 @@ function HighlightedSnippet({ [language, source], ); + // Streamdown memoizes/diffs markdown blocks and can hold onto previously + // highlighted content when only an inline value inside the code fence + // changes (e.g. the API key). Forcing a remount keyed on the source string + // guarantees the displayed snippet always matches the latest props. return (