CodeReview/backend/app/services/agent/agents
lintsinghua 147dfbaf5e feat(agent): enhance streaming with in-memory event manager and fallback polling
- Implement dual-mode streaming: prioritize in-memory EventManager for running tasks with thinking_token support
- Add fallback to database polling for completed tasks without thinking_token replay capability
- Introduce SSE event formatter utility for consistent event serialization across streaming modes
- Add 10ms micro-delay for thinking_token events to ensure proper TCP packet separation and frontend incremental rendering
- Refactor stream_agent_with_thinking endpoint to support both runtime and historical event streaming
- Update event filtering logic to handle both in-memory and database event sources
- Improve logging with debug markers for thinking_token tracking and stream mode selection
- Optimize polling intervals: 0.3s for running tasks, 2.0s for completed tasks
- Reduce idle timeout from 10 minutes to 1 minute for completed task streams
- Update frontend useAgentStream hook to handle unified event format from dual-mode streaming
- Enhance AgentAudit UI to properly display streamed events from both sources
2025-12-12 10:39:32 +08:00
..
__init__.py feat: Introduce structured agent collaboration with `TaskHandoff` and `analysis_v2` agent, updating core agent logic, tools, and audit UI. 2025-12-11 23:29:04 +08:00
analysis.py feat(agent): enhance streaming with in-memory event manager and fallback polling 2025-12-12 10:39:32 +08:00
analysis_v2.py feat: Introduce structured agent collaboration with `TaskHandoff` and `analysis_v2` agent, updating core agent logic, tools, and audit UI. 2025-12-11 23:29:04 +08:00
base.py feat(agent): enhance streaming with in-memory event manager and fallback polling 2025-12-12 10:39:32 +08:00
orchestrator.py feat(agent): enhance streaming with in-memory event manager and fallback polling 2025-12-12 10:39:32 +08:00
react_agent.py feat: Introduce structured agent collaboration with `TaskHandoff` and `analysis_v2` agent, updating core agent logic, tools, and audit UI. 2025-12-11 23:29:04 +08:00
recon.py feat(agent): enhance streaming with in-memory event manager and fallback polling 2025-12-12 10:39:32 +08:00
verification.py feat(agent): enhance streaming with in-memory event manager and fallback polling 2025-12-12 10:39:32 +08:00