mirror of
https://github.com/mudler/LocalAI.git
synced 2026-11-05 20:13:23 -05:00
AddonRegistryProvider called requests.setScope(actor) and replaced authority.current in the render body. React may start a render and throw it away (concurrent rendering, StrictMode), so a discarded render for a new session epoch aborted live reads and reset the list of the actor that is still on screen. Render now only reads the ref: for a new actor it shows an empty list at once. A layout effect commits the new scope and the ref. It runs at commit, before the browser paints and before any passive effect, so no read of the old actor can publish in between. The hook harness of the unit tests gains useLayoutEffect and a discarded-render mode, and a test shows that a discarded render leaves a live read alone. The private-access form test expects the phrase in the owner patch, as the owner now checks it. Assisted-by: Claude Code:claude-sonnet-5-5 Signed-off-by: Ettore Di Giacinto <mudler@localai.io>