Skip to content

Commit a571238

Browse files
committed
Update intelligent update logic to use fake_chat_response in undo state and return value
- it's been reported that 'active editor intelligent update' doesn't pass the clipboard contents yielding error: UPDATE_INSTRUCTIONS_FOR_FILE_NOT_FOUND
1 parent 9e0754c commit a571238

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/editor/src/commands/apply-chat-response-command/response-processor.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,13 +594,13 @@ export const process_chat_response = async (params: {
594594
context: params.context,
595595
panel_provider: params.panel_provider,
596596
states: intelligent_update_states,
597-
applied_content: params.chat_response,
597+
applied_content: fake_chat_response,
598598
original_editor_state: params.args?.original_editor_state
599599
})
600600

601601
return {
602602
original_states: intelligent_update_states,
603-
chat_response: params.chat_response
603+
chat_response: fake_chat_response
604604
}
605605
}
606606
return null

0 commit comments

Comments
 (0)