feat: add XaiSession backend, improve handler switch & tg resilience

This commit is contained in:
Liang Jiaqing
2026-02-17 13:18:09 +08:00
parent 67c7b3fa71
commit f8e501a27a
5 changed files with 81 additions and 25 deletions

View File

@@ -42,6 +42,7 @@ def render_sidebar():
if st.button("强行停止任务"):
agent.abort()
st.toast("已发送停止信号")
st.rerun()
if st.button("重新注入System Prompt"):
agent.llmclient.last_tools = ''
st.toast("下次将重新注入System Prompt")