Repository navigation
Conversation
allozaur
force-pushed
the
allozaur/feat/model-configuration
branch
from
November 3, 2026 10:02
1f901ba to
14cf1da
Compare
allozaur
force-pushed
the
allozaur/feat/model-configuration
branch
12 times, most recently
from
November 10, 2026 09:50
73c3fba to
eb7c0b4
Compare
allozaur
force-pushed
the
allozaur/feat/ui-server-storage
branch
from
November 10, 2026 09:50
a2d3021 to
2bb6f89
Compare
allozaur
force-pushed
the
allozaur/feat/model-configuration
branch
7 times, most recently
from
November 12, 2026 01:29
d9e5ba2 to
44e3ef4
Compare
allozaur
added a commit
that referenced
this pull request
Nov 12, 2026
Replayed onto develop: only the PR's own two commits, its branch sits on a stale copy of the stack.
allozaur
force-pushed
the
allozaur/feat/model-configuration
branch
from
November 12, 2026 11:16
44e3ef4 to
9c8d0f1
Compare
allozaur
force-pushed
the
allozaur/feat/ui-server-storage
branch
from
November 12, 2026 11:16
2bb6f89 to
b309451
Compare
allozaur
force-pushed
the
allozaur/feat/ui-server-storage
branch
from
November 16, 2026 11:28
1871c0b to
5adf074
Compare
allozaur
force-pushed
the
allozaur/feat/model-configuration
branch
2 times, most recently
from
November 16, 2026 11:43
15abee0 to
770a302
Compare
allozaur
force-pushed
the
allozaur/feat/ui-server-storage
branch
from
November 16, 2026 11:43
5adf074 to
032f756
Compare
allozaur
force-pushed
the
allozaur/feat/model-configuration
branch
from
November 16, 2026 11:56
770a302 to
0bf250a
Compare
allozaur
force-pushed
the
allozaur/feat/ui-server-storage
branch
from
November 16, 2026 11:56
032f756 to
1ddd03c
Compare
allozaur
force-pushed
the
allozaur/feat/model-configuration
branch
from
November 16, 2026 12:07
0bf250a to
b73f54a
Compare
allozaur
force-pushed
the
allozaur/feat/ui-server-storage
branch
2 times, most recently
from
November 16, 2026 12:13
7cae7fa to
fe20463
Compare
allozaur
force-pushed
the
allozaur/feat/model-configuration
branch
from
November 16, 2026 12:13
b73f54a to
45df633
Compare
allozaur
force-pushed
the
allozaur/feat/ui-server-storage
branch
2 times, most recently
from
November 16, 2026 13:09
ec2061d to
5b5c81e
Compare
allozaur
force-pushed
the
allozaur/feat/model-configuration
branch
from
November 16, 2026 13:44
09603b8 to
7c32001
Compare
allozaur
force-pushed
the
allozaur/feat/ui-server-storage
branch
from
November 16, 2026 13:44
5b5c81e to
6cd48af
Compare
allozaur
force-pushed
the
allozaur/feat/model-configuration
branch
from
November 16, 2026 13:52
7c32001 to
6025c8f
Compare
allozaur
force-pushed
the
allozaur/feat/ui-server-storage
branch
from
November 16, 2026 13:52
6cd48af to
1e05140
Compare
allozaur
force-pushed
the
allozaur/feat/model-configuration
branch
from
November 16, 2026 16:12
6025c8f to
dcbe7d9
Compare
allozaur
force-pushed
the
allozaur/feat/ui-server-storage
branch
3 times, most recently
from
November 16, 2026 17:36
9e2a5a5 to
c91085d
Compare
allozaur
force-pushed
the
allozaur/feat/model-configuration
branch
from
November 16, 2026 17:36
140894c to
a245d3d
Compare
allozaur
force-pushed
the
allozaur/feat/ui-server-storage
branch
3 times, most recently
from
November 17, 2026 05:21
7164bfa to
ee39039
Compare
allozaur
force-pushed
the
allozaur/feat/model-configuration
branch
2 times, most recently
from
November 17, 2026 05:55
f13c596 to
f8ede25
Compare
allozaur
force-pushed
the
allozaur/feat/ui-server-storage
branch
from
November 17, 2026 05:55
ee39039 to
0b63c53
Compare
Split DatabaseService into pure tree rules (utils/conversation-tree) and a row-level StorageBackend, with IdbBackend holding the Dexie code. Route localStorage access through PreferencesService, which also classifies keys as user data or device-local state. No behaviour change. Assisted-by: Claude (Opus 5.5 Medium)
Add an opt-in llama-server document store (--ui-storage, --ui-storage-dir) that keeps one JSON file per conversation under the platform data directory and serves it on /storage/conversations, rejecting writes based on a stale revision with 409. Settings (/storage/settings) and records such as groups, projects and prompts (/storage/records/:kind) are merged per key or id. In the UI, DocumentStoreBackend implements StorageBackend over a StorageAdapter: it caches documents and records, batches writes per transaction and replays its edits when another client wrote first. llama-server is the built-in adapter and is always reached on the server serving the UI; others (Postgres via Supabase or Neon, PocketBase) can be added in $lib/storage-adapters, see docs/storage-adapters.md. Settings -> Import/Export offers each available adapter, copies this browser's data on switch and keeps the API key in the browser. Assisted-by: Claude (Opus 5.5 Medium)
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Conversations, groups, projects, prompts and settings can optionally be stored on disk by llama-server instead of in the browser, so they survive clearing browser data and are shared across browsers and ports. Storage goes through adapters, with llama-server as the default, so other backends (Postgres via Supabase or Neon, PocketBase, ...) can be added.
Additional information
Outside the work-in-progress stack on the fork, based on
allozaur/feat/model-configuration(#36), which sits on the prompt library (#29): storage needs both under it. Its diff is only this layer (two commits), and its files are underui/apps/chatnow that the stack starts with the move toui/(#54). Since 13 November MCP as an extension (#61) is below it, and the extensions' on/off choices are kept through the preferences service with the rest of the user's settings.Rebased onto the new structure on 12 November. Master's group work came after this layer was written, so three pieces of it are ported onto the storage backend: a fork keeps its source's group, an import assigns conversations to groups, and moving conversations into or out of a group. Groups list by creation, as on master.
The storage work from ggml-org#31361, rebased onto this stack and extended to the groups, projects and prompts the stack adds. The upstream PR and its branch are unchanged.
Experimental and off by default: anyone who can reach the server can read the stored data. Each browser origin picks its storage once in Settings → Import/Export → Storage. Known gaps: every save rewrites the whole conversation document, attachments included, and
--connecttunnel peers can reach the storage routes.Server
--ui-storage(envLLAMA_ARG_UI_STORAGE) enables it;--ui-storage-dir PATHsets the directory and implies it. The default isllama.cpp/uiin the platform data directory.GET /storage/conversations,GET|POST|DELETE /storage/conversations/:id: one JSON file per conversation,{ rev, conv, messages }. A write based on a stalerevgets 409.GET|POST /storage/settingsandGET|POST /storage/records/:kind(groups, projects, prompts, and any later kind): merged per key or id. A record whoseiddoesn't match its key gets 400./propsreportsui_storage. In router mode only the router serves storage.What changed
DatabaseServiceintoutils/conversation-tree, and rows go through aStorageBackend(IdbBackendfor IndexedDB). That now includes groups, projects and prompts as "records", along with the stack's schema versions. Every localStorage access, including the stack's new ones inui,servers,modelsandModelsManager/utils, goes throughPreferencesService, which marks each key as user data or device state. Model overrides and dismissed recommended servers sync; the selected model, active server and sidebar layout stay per device.StorageAdapter(types/storage.d.ts) is the eight-method contract.DocumentStoreBackendimplementsStorageBackendon top of any adapter: it caches documents and records, batches the writes of a transaction, rolls them back when it fails, and on a conflict refetches and replays its own edits.LOCAL_BACKEND_ID), whichever server chats target, and Settings offers it fromserverStore.localProps. Storage activates inhydrateStores, before settings are read.docs/storage-adapters.mdsketches Postgres and PocketBase adapters, untested.Commits (2)
Testing
/props.Requirements
Claude (Opus 5.5 Medium)