Files
AIclinicalresearch/backend/src/modules
HaHafeng 740ef8b526 fix(ssa): Fix Agent mode chat leaking plan/result details + navigation reset
Backend (ChatHandlerService):
- Replace LLM-generated hints with fixed-text hints for plan/code/result steps
  to prevent SystemPrompt intent instruction conflict causing verbose chat output
- Add sendFixedHint() helper for deterministic SSE text delivery (no LLM call)
- Cancel old plan_pending/code_pending executions when regenerating plan
- Eliminates 3 unnecessary LLM calls per analysis cycle (faster response)

Frontend (SSAModule):
- Use location.key as useEffect dependency to ensure store reset on every
  navigation (fixes stale session when re-entering from other modules)
- TopNavigation uses replace:true for active module re-click to avoid
  browser history clutter

Tested: Agent mode plan/code/result hints now show brief fixed text in chat,
detailed content exclusively in right workspace panel

Made-with: Cursor
2026-03-09 08:38:02 +08:00
..