fix: simphtml visibility/dialog/SVG improvements & minor agent fixes

- simphtml: rewrite visibility inheritance (area-based maxC), add isVisible to childrenInfo,
  fix className SVG compat (getAttribute), expand isDialog detection, hoist deep fixed dialogs,
  clear SVG attrs, fix warning message concat
- ga: return error messages instead of None for code_run/web_execute_js failures
- stapp: disable unsafe_allow_html
- code_run_header: add excepthook hint for ImportError/AttributeError
- mykey_template: remove stale prompt_cache comment
This commit is contained in:
Liang Jiaqing
2026-04-03 09:40:09 +08:00
parent b0d4563ae8
commit 8d537e954b
5 changed files with 34 additions and 20 deletions

View File

@@ -84,7 +84,7 @@ def agent_backend_stream(prompt):
if "messages" not in st.session_state: st.session_state.messages = []
for msg in st.session_state.messages:
with st.chat_message(msg["role"]): st.markdown(msg["content"], unsafe_allow_html=True)
with st.chat_message(msg["role"]): st.markdown(msg["content"], unsafe_allow_html=False)
# IME composition fix (macOS only) - prevents Enter from submitting during CJK input
if os.name != 'nt':