diff --git a/e2e-chatbot-app/app.py b/e2e-chatbot-app/app.py index e483eca4..0634a6b0 100644 --- a/e2e-chatbot-app/app.py +++ b/e2e-chatbot-app/app.py @@ -334,3 +334,8 @@ def query_responses_endpoint_and_render(input_messages): # Add assistant response to history st.session_state.history.append(assistant_response) + + # Rerun so the new response is re-rendered through the history loop above, + # which attaches the feedback widget. Without this the feedback control is + # missing on the first message until the next request triggers a rerun. + st.rerun()