feat(frontends): stapp2 UI enhancements with modular stapp2_extensions#443
Open
SeveralMiles wants to merge 6 commits into
Open
feat(frontends): stapp2 UI enhancements with modular stapp2_extensions#443SeveralMiles wants to merge 6 commits into
SeveralMiles wants to merge 6 commits into
Conversation
- 保留文件上传/粘贴/缩略图删除功能 - 保留多轮推理中间步骤折叠功能 - 新增 stapp2_old.py 参考文件、start_streamlit.bat、test_files/ Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- 将 ANTHROPIC_CSS 精简为仅 :root CSS 变量定义,移除暖棕背景/侧边栏/按钮覆盖,页面恢复 Streamlit 默认主题
- 恢复汉堡菜单可见(移除 #MainMenu display:none)
- 新增 st.title("🖥️ Cowork") 与 Origin stapp.py 保持一致
- 重写 render_sidebar():新增强行停止、重新注入工具、桌面宠物、自主行动区等按钮,LLM 选择框改为 collapsed 标签
- launch.pyw:切换至 stapp2.py,启动等待从 2s 升至 5s,idle_monitor 首次等待延长至 12s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- FILE_UPLOAD_CSS: replace broken .input-row-container rule with :has() selector to pin upload column at 54px and fill remainder with chat input, fixing the upload button stacking on top of input in the 600px webview window - launch.pyw: initialize window=None at module level so idle_monitor guard short-circuits cleanly before webview.create_window() is called; add diagnostic prints + try/except around webview.start() to surface errors Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Move attachment upload, paste-to-upload, sidebar controls, and compact uploader layout into stapp2_extensions.py so stapp2.py stays closer to upstream and PR review is easier. Co-authored-by: Cursor <cursoragent@cursor.com>
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
stapp2.pyfrontends/stapp2_extensions.pyfor easier review:stapp2.pycloser to upstream; fold multi-turn**LLM Running (Turn N)**segments into expanderslaunch.pywrobustness tweaksReview guide
stapp2_extensions.py— all new UI behavior (primary review)stapp2.py— integration hooks + turn expanderslaunch.pyw— launcher changesTest plan
python -m streamlit run frontends/stapp2.py(orpython launch.pyw)