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-05-25 08:36:33 +03:00
2026-06-11 19:12:49 +03:00
2026-05-17 14:18:02 +03:00
2026-06-30 13:25:28 +03:00
2026-06-29 17:15:25 +03:00
2026-05-26 19:18:28 +03:00
2026-05-26 19:18:28 +03:00
2026-06-15 17:31:43 +03:00
2026-06-16 09:34:10 +03:00
2026-05-26 15:28:03 +03:00
2026-06-01 16:34:07 +03:00
2026-06-10 16:38:06 +03:00
2026-06-19 14:59:05 +03:00
2026-06-29 17:15:25 +03:00
2026-05-20 14:31:37 +03:00
2026-06-29 17:15:25 +03:00
2026-05-20 23:54:53 +03:00
2026-05-14 11:20:17 +03:00