Skip to content

Frontend fixes: interim Reports pane never rendered, elapsed timer frozen, Ollama URL field restore - #4

Open
cdwashi wants to merge 3 commits into
TheLocalLab:mainfrom
cdwashi:fix/gui-frontend-bugs
Open

cdwashi wants to merge 3 commits into
TheLocalLab:mainfrom
cdwashi:fix/gui-frontend-bugs

Conversation

@cdwashi

@cdwashi cdwashi commented Jul 14, 2026

Copy link
Copy Markdown

Hi! I found these while running the GUI on my home server (Kubernetes/Olares, remote Ollama). All fixes are validated in that deployment and the full test suite passes on this branch. First-time contributor — happy to adjust anything, and maintainer edits are welcome.

Three v2-redesign regressions in app.js:

  1. Interim Reports pane never populated. The v2 template removed #report-preview-card, but renderReportPreview() still dereferences it unconditionally — it throws before drawing any tab, every time. The run-start reset crashes on the same ID before clearing currentReportSections, so previous-run sections would also leak into the next run. Both now guarded.
  2. Elapsed timer frozen at 00:00. Legacy let startTime is lexically scoped, but the v2 timer override reads window.startTime — always undefined. window.startTime is now published on run start.
  3. Ollama Server URL field. The field hardcodes value="http://localhost:11434/v1" (now uses the server-provided, env-aware provider URL), and the saved-state restorer called Array.from(el.options) — which throws on text inputs, silently aborting the whole restore batch. Restorer now handles input-vs-select.

cdogwash72 and others added 3 commits July 14, 2026 01:34
…estore

- Field template no longer hardcodes localhost; uses the server-provided
  provider URL (env-aware since d611295)
- setIfPresent threw on text inputs (Array.from(undefined)), silently
  aborting the whole late-restore batch - now handles input vs select

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The v2 template redesign removed #report-preview-card but the legacy
renderer still dereferenced it unconditionally in two places:
- renderReportPreview() crashed before drawing any tab, so interim
  analyst reports never appeared during a run
- the run-start reset crashed before clearing currentReportSections,
  leaking previous-run sections into the next run

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Legacy 'let startTime' is lexically scoped, but the v2 timer override
reads window.startTime - always undefined, so the timer never ticked.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant