Commit Graph

8 Commits

Author SHA1 Message Date
dtarkent2-sys 64defb3939 debug: add logging to trace analysis execution 2026-02-20 11:19:35 +00:00
dtarkent2-sys 223879bc04 feat: parallelize analyst agents for ~3x speedup
Run all 4 analysts (Market, Social, News, Fundamentals) concurrently
using asyncio.gather instead of sequentially. Each analyst gets its own
isolated message state and tool-calling loop. Cuts analyst phase from
~8-9 min to ~2-3 min (total analysis from ~11 min to ~4-5 min).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 11:13:16 +00:00
dtarkent2-sys f5519b9efe fix: add SSE replay buffer + fix research agent status tracking
- Replace global update_research_team_status() with local buf calls
  (was updating CLI's global buffer, not analysis-specific one)
- Add replay buffer: all events stored in memory per analysis
- Support ?last_event=N query param for reconnection replay
- Send event IDs so browser can track position
- Mark analysis as done so replay works after completion

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 03:48:22 +00:00
dtarkent2-sys 777226722a fix: add SSE heartbeat to prevent Railway proxy timeout
Railway kills idle connections after ~30s. During long LLM calls
between agent stages, the SSE stream goes silent and gets dropped.
Now sends heartbeat events every 15s to keep the connection alive.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 03:25:53 +00:00
dtarkent2-sys 52228414ed Replace Chainlit with FastAPI SSE backend
Swap Chainlit chatbot UI for a minimal FastAPI service with:
- POST /analyze to start analysis
- GET /analyze/{id}/stream for SSE progress events
- GET /health for Railway healthcheck

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 02:43:24 +00:00
dtarkent2-sys ac782d179d feat: rebuild Chainlit UI to match CLI experience
Replaces the barebones web UI with one that mirrors the CLI:
- Agent status table with team/agent/status tracking
- Reuses CLI's MessageBuffer, update_analyst_statuses, classify_message_type
- Shows full debate transcripts (Bull/Bear, Risk team)
- Live stats (LLM calls, tokens, elapsed time)
- Collapsible Steps for each phase with full report content

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 02:04:13 +00:00
dtarkent2-sys 76f1e0abf0 fix: use correct Claude model ID (claude-sonnet-4-6)
The old model ID claude-sonnet-4-5-20241022 returns 404. Updated to
the current claude-sonnet-4-6 for the deep thinking model.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:52:46 +00:00
dtarkent2-sys eade96f1c9 feat: add Chainlit web UI + Dockerfile for Railway deployment
Adds a Chainlit-based web interface that wraps TradingAgentsGraph,
streaming analyst reports, research debates, and final decisions
to the browser in real-time. Configured for Anthropic Claude models.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 00:52:45 +00:00