Skip to content

st.text_area height=1 crashes on newer Streamlit (min 68px required) #680

Description

@double-tu

Description

frontends/stapp.py line 146 uses height=1 for st.text_area, which is valid in older Streamlit but raises StreamlitAPIException on newer versions (≥1.29) where minimum height is 68px.

Steps to reproduce

  1. Install Streamlit ≥ 1.29
  2. Launch launch.pyw
  3. Open the web UI — sidebar crashes immediately

Expected behavior

Sidebar renders normally with compact text area.

Actual behavior

StreamlitAPIException: Invalid height 1px for st.text_area - must be at least 68 pixels.
Traceback:
File "frontends/stapp.py", line 146, in render_sidebar
    st.text_area(..., height=1)

Fix

Change height=1height=68. The existing CSS override (lines 141-145) already compresses the visual height:

-    st.text_area(..., height=1)
+    st.text_area(..., height=68)

Environment

  • Streamlit: 1.29+
  • GenericAgent: main @ 9941022

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions