MicroFish/frontend
andreicarpen 0a89d657f0 fix(report): clear failed state on resume_start and report_complete
Two symptoms reported after a successful resume:
1. Banner stays visible even though the report finished — because the
   historical 'error' log entry still lives in agent_log.jsonl, and every
   fetch from line 0 re-flipped reportStatus to 'failed'.
2. Polling dies mid-resume — stopPolling() was called when the error
   entry was re-read, killing the timers before the resume_start /
   report_complete entries landed.

Fixes:
- On 'resume_start': reset reportStatus back to 'generating' so the
  banner clears as soon as the resume kicks in.
- On 'report_complete': force reportStatus='completed', clear
  reportError. Belt-and-suspenders even if an older error entry is
  re-read later.
- Remove stopPolling() from the error handlers (both agent-log and
  progress-poll). The polling naturally stops on report_complete; if
  a real terminal failure never resumes, the component unmounts when
  the user navigates away. Better to waste a few extra polls than to
  soft-lock the UI during a legitimate resume.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-19 11:13:38 +03:00
..
public Remove outdated README.md and update favicon in index.html 2025-12-16 20:58:48 +08:00
src fix(report): clear failed state on resume_start and report_complete 2026-04-19 11:13:38 +03:00
.gitignore Add project status report and frontend documentation 2025-12-10 14:49:11 +08:00
index.html fix(i18n): set HTML lang attribute before Vue mounts via inline script 2026-04-02 14:21:09 +08:00
package-lock.json fix(security): upgrade axios, rollup, picomatch to fix 3 high severity vulnerabilities 2026-04-02 15:00:33 +08:00
package.json fix(security): upgrade axios, rollup, picomatch to fix 3 high severity vulnerabilities 2026-04-02 15:00:33 +08:00
vite.config.js fix(i18n): fix curly quotes and missing @ alias in vite config 2026-04-01 15:45:43 +08:00