:lightning: smarter checking for custom feedback

This commit is contained in:
2026-03-02 18:57:24 +10:00
parent 918b32c80d
commit 84377c82af
4 changed files with 29 additions and 5 deletions

View File

@@ -101,7 +101,7 @@ export function AnalysisToolbar(): JSX.Element {
// For show_tell mode, force all annotations to the show_tell type so the
// classifier doesn't accidentally mis-label them as 'style' or 'consistency'.
const overrideType = mode === 'show_tell' ? 'show_tell' : undefined
const newAnnotations = parseAnnotationsFromAIResponse(lastMsg.content, activeFileContent, overrideType)
const { annotations: newAnnotations } = parseAnnotationsFromAIResponse(lastMsg.content, activeFileContent, overrideType)
if (newAnnotations.length > 0) {
const existing = useEditorStore.getState().annotations.filter((a) => a.type !== mode)
setAnnotations([...existing, ...newAnnotations])