MicroFish/backend
FeelRatchanons 878481eef3 fix(interview): repair interview-history endpoint and surface past interviews in UI
The interview-history feature already existed (interviews are recorded to each
platform's OASIS sqlite DB and `POST /api/simulation/interview/history` reads
them) but was broken on two fronts:

1. Backend crash: get_interview_history sorts merged twitter+reddit results by
   "timestamp", but the two platforms store created_at with different types
   (one int-like, one datetime string), raising
   "'<' not supported between instances of 'int' and 'str'". Coerce the sort
   key to str so mixed-type timestamps sort safely.

2. Step 5 (Interaction) never loaded that history, so past interviews vanished
   on reload. Add getInterviewHistory() and load it on mount, seeding the
   per-agent chat cache (chronological, prompt-prefix stripped, deduped across
   platforms) so selecting an agent shows prior Q&A.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-13 14:28:29 +07:00
..
app fix(interview): repair interview-history endpoint and surface past interviews in UI 2026-06-13 14:28:29 +07:00
scripts Add UTF-8 encoding support for Windows in simulation_runner.py and run_parallel_simulation.py to resolve character encoding issues with third-party libraries. 2025-12-26 18:14:57 +08:00
pyproject.toml fix(backend): constrain Python version to 3.11-3.12 2026-05-24 22:59:36 +08:00
requirements.txt fix(file_parser): handle non-UTF-8 encoded text files with automatic encoding detection 2026-01-22 18:28:37 +08:00
run.py Add UTF-8 encoding support for Windows console in run.py and logger.py to prevent character encoding issues 2025-12-26 17:58:48 +08:00
uv.lock fix(backend): constrain Python version to 3.11-3.12 2026-05-24 22:59:36 +08:00