fix(stapp): raise Loop prompt textarea height from 1 to 68 to satisfy Streamlit minimum (closes #632)#668
Open
Kailigithub wants to merge 1 commit into
Conversation
… Streamlit minimum Streamlit enforces a minimum height of 68px on st.text_area; height=1 triggers StreamlitAPIException on every sidebar render, which collapses the whole page so the main chat input never appears (issue lsdefine#632).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Raise the Loop prompt textarea minimum height from 1px to 68px to satisfy Streamlit's hard lower bound on
st.text_area, which was throwingStreamlitAPIExceptionduring sidebar render and collapsing the whole page so the main chat input never appeared.Root Cause
The exception originates at
frontends/stapp.py:145(was line 124 at the time the issue was filed):Streamlit's runtime validation rejects
height=1with:Sidebar rendering fails → the entire page collapses → the user sees no chat input dialog.
Fix
68px is exactly Streamlit's documented minimum. The existing sidebar CSS still overrides the visible height (
min-height: 1.6em !important; height: auto !important), so the field continues to grow with content — this change only unblocks Streamlit's API gate.Scope
frontends/stapp.pyCloses #632