busya
e8d6d7d0db
fix(agent): critical agent chat bugs — backend startup & frontend streaming state
Backend (tools.py):
- Add Python docstrings to all 17 @tool functions (LangChain ValueError)
- Add @INVARIANT ADR: docstring requirement documented in module header
- Fix 2 f-string escaped-quote syntax errors (Python 3.13)
Frontend — compile errors (+page.svelte):
- Fix mismatched <button>/</Button> tags
- Fix missing Button import for mobile sidebar close
Frontend — streaming state loss on conversation switch (AgentChatModel):
- Add _commitStreamingPartial() helper — saves in-progress text before cancelling
- selectConversation() commits partial text to OLD conversation before switching
- createConversation() commits partial text before clearing state
- loadHistory() sets _userCancelled=true to suppress fallback messages
Frontend — ConnectionManager:
- Pass error reason through onDisconnectedPermanent callback → model.error
Frontend — null safety:
- Guard _client.submit() calls against null _client in _sendNow and resumeConfirm
2026-06-30 13:25:28 +03:00
..
2026-06-30 13:25:28 +03:00
2026-06-29 17:15:25 +03:00
2026-06-29 17:15:25 +03:00
2026-06-11 19:12:35 +03:00
2026-06-29 17:15:25 +03:00
2026-06-15 15:38:59 +03:00
2026-06-18 14:41:13 +03:00
2026-06-18 23:54:57 +03:00
2026-06-08 16:30:59 +03:00
2026-06-18 14:41:13 +03:00
2026-06-29 17:15:25 +03:00