Cannot record the feedback in stream chat_input or chat forum

stream version : 1.37.1
python version is : Python 3.9.6

if ‘chat_history’ not in st.session_state:
st.session_state.chat_history =

with st.form(“chat_input”,clear_on_submit=True):
user_input = st.text_input(“Enter the question here:”)
submit_button = st.form_submit_button(“Send”)

if submit_button:
    st.write("My name is Anthony Golzales....")

    fd1 = st.selectbox("how was the response to the query?", ["Valid", "Invalid"])
    submit_button2 = st.form_submit_button("Send Feedback")

    if submit_button2:
        st.session_state.chat_history.append({
        "question": user_input,
        "result": fd1
        })
        st.write(session.chat_history)

As soon, hit the submit_button2, nothing in the if construct ‘if submit_button2’ get executed. This has happened with thumbs up/down buttons too. Please suggest the solution, or is it known bug in streamlit.