forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on dcf123a8823bd55f0a656ce94de6b865f41dc08aFiltered to src/components/notes/rag-outputs-panel.test.tsxClear filter

2026-09-18

fix: 🩹 stop claiming summary work happens in the backgroundAhmet Kaan Gümüş · 2c2da01
fix: 🩹 stop claiming summary work happens in the background

The AI outputs panel flashed "Summary generation continues in the
background" whenever a reindex poll found no new output. Nothing was
running: the rag service refused the call in milliseconds, so the panel
was telling the user a lie.

Say what is true instead. A poll that ends without a new row now shows
that the summary was not created, that nothing is indexed for the note
yet, and that the button can be pressed again — an inline warning plus a
distinct empty-state line, in both locales. The happy path is unchanged:
a new row still toasts `courseNotes.ragReady` and renders at once.

Also make the button's disabled state honest: `/ai/capabilities` lists
what connected workers actually serve, so the button is live only when
some worker declares `rag.index`. A bridge reported off, or a fleet with
no rag worker, disables it with the reason visible; a discovery failure
still leaves it live so the call itself can report.

`courseNotes.ragQueued` is deleted — nothing may claim it again.