List rows: one-sentence AI summary (#45 follow-up) #53

Manually merged
jfro merged 0 commits from feat/45-ai-summary into main 2026-11-11 13:56:57 +00:00
Owner

Follow-up to #45: list rows (dashboard and history) now show a one-sentence AI summary instead of "AI diagnosis ready". The full diagnosis stays on the details page, unchanged.

How

  • The diagnosis system prompt asks the model to start with a Summary: line (one short sentence), then the diagnosis as before. Diagnosis.split_summary/1 takes that line off, so it's the same single call for every provider, with no new setting, env var or dependency.
  • New nullable reports.diagnosis_summary column, rewritten on every completed diagnosis (cleared if the model leaves the line out). The details page shows diagnosis as before, minus the summary line.
  • In the row the sentence links to the details page and is clamped to two lines. "Diagnosing…", "Waiting to be diagnosed…" and "Diagnosis failed" are unchanged.
  • Reports diagnosed before this (no stored summary) fall back to the diagnosis's first sentence (Report.list_summary/1).

Screenshots (example data: nextcloud row has a stored summary, gitea row is diagnosing, pve1 updates row is an older diagnosis using the first-sentence fallback; history shows a resolved row with a summary)

Dashboard, desktop
list desktop

Dashboard, 390px
list 390

History, desktop
history desktop

History, 390px
history 390

mix precommit passes locally (887 tests).

Follow-up to #45: list rows (dashboard and history) now show a one-sentence AI summary instead of "AI diagnosis ready". The full diagnosis stays on the details page, unchanged. **How** - The diagnosis system prompt asks the model to start with a `Summary: ` line (one short sentence), then the diagnosis as before. `Diagnosis.split_summary/1` takes that line off, so it's the same single call for every provider, with no new setting, env var or dependency. - New nullable `reports.diagnosis_summary` column, rewritten on every completed diagnosis (cleared if the model leaves the line out). The details page shows `diagnosis` as before, minus the summary line. - In the row the sentence links to the details page and is clamped to two lines. "Diagnosing…", "Waiting to be diagnosed…" and "Diagnosis failed" are unchanged. - Reports diagnosed before this (no stored summary) fall back to the diagnosis's first sentence (`Report.list_summary/1`). **Screenshots** (example data: nextcloud row has a stored summary, gitea row is diagnosing, pve1 updates row is an older diagnosis using the first-sentence fallback; history shows a resolved row with a summary) Dashboard, desktop ![list desktop](https://git.knope.dev/attachments/fe32179d-7fff-4f50-8682-ce8a41f8c594) Dashboard, 390px ![list 390](https://git.knope.dev/attachments/3a6432ea-9faa-4128-9d7a-1c93d4e43099) History, desktop ![history desktop](https://git.knope.dev/attachments/e05252a5-9e05-47bb-8a7b-9045e74fbe22) History, 390px ![history 390](https://git.knope.dev/attachments/7dcae960-c001-491b-a9cf-27c46c66bec8) `mix precommit` passes locally (887 tests).
feat(reports): show a one-sentence AI summary in list rows
All checks were successful
CI / test (pull_request) Successful in 1m18s
8e2a348104
The diagnosis now starts with a Summary line, stored in its own
diagnosis_summary column and taken off the diagnosis text. List rows show
it (two lines at most, linking to the details) instead of 'AI diagnosis
ready'; reports diagnosed before fall back to the diagnosis's first
sentence.

Refs #45
jfro manually merged commit bccfe98c9b into main 2026-11-11 13:56:57 +00:00
Sign in to join this conversation.
No description provided.