LocalAI/core/http
TLoE419 b8a480df45 feat(react-ui): sync chat history to server with localStorage fallback (#9432)
useChat now probes /api/conversations on mount. When the endpoint
responds 200, the server becomes the authoritative source: the hook
merges remote conversations into local state and pushes per-chat PUT
updates on each debounced save. When the endpoint 404s - older LocalAI
deploys or the feature disabled - the hook silently keeps the old
localStorage-only behaviour, so the change is backward-compatible.

Migration: when the server is reachable but empty and the browser has
local conversations with history, the hook fires a single
PUT /api/conversations/bulk to seed the server. The atomic bulk endpoint
avoids partial-upload states where a retry would skip already-uploaded
entries.

Delete operations propagate to the server when it's available; failures
are silently swallowed so the local UI stays responsive on transient
network errors.

Assisted-by: Claude:claude-opus-4-7

Signed-off-by: TLoE419 <tloemizuchizu@gmail.com>
2026-05-18 18:06:20 -07:00
..
auth feat(api): expose chat conversation CRUD endpoints (#9432) 2026-05-18 18:06:06 -07:00
endpoints feat(api): expose chat conversation CRUD endpoints (#9432) 2026-05-18 18:06:06 -07:00
middleware fix(middleware): parse OpenAI-spec tool_choice in /v1/chat/completions (#9559) 2026-05-14 00:14:38 +02:00
react-ui feat(react-ui): sync chat history to server with localStorage fallback (#9432) 2026-05-18 18:06:20 -07:00
routes feat(api): expose chat conversation CRUD endpoints (#9432) 2026-05-18 18:06:06 -07:00
static fix(streaming): comply with OpenAI usage / stream_options spec (#9815) 2026-05-14 08:53:46 +02:00
views feat(realtime): WebRTC support (#8790) 2026-03-13 21:37:15 +01:00
app.go feat(api): expose chat conversation CRUD endpoints (#9432) 2026-05-18 18:06:06 -07:00
app_test.go fix(http): honor X-Forwarded-Prefix when proxy strips the prefix (#9614) 2026-05-13 21:59:33 +02:00
csrf_multipart_test.go chore: Security hardening (#9719) 2026-05-08 16:25:45 +02:00
explorer.go chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
http_suite_test.go refactor(tests): split app_test.go, move real-backend coverage to e2e-backends 2026-04-27 23:09:20 +00:00
openresponses_test.go feat: add distributed mode (#9124) 2026-03-30 00:47:27 +02:00
render.go feat: add distributed mode (#9124) 2026-03-30 00:47:27 +02:00
route_coverage_test.go chore: Security hardening (#9719) 2026-05-08 16:25:45 +02:00