mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #680] [CLOSED] Add persistent chat history, local model selection, and a Windows desktop client #2761
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2761
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/680
Author: @0924haruto12
Created: 10/3/2026
Status: ❌ Closed
Base:
main← Head:codex/persistent-chat-desktop📝 Commits (10+)
b0dda4bAMD: gfx1101 (RX 7800 XT, #254 by jhohertz) and gfx1200 (RX 9060 XT, #256 by Efeisot) as community-validated cardscc97fcdsetup: AMD layer splits with --gpus (every chosen card a supported AMD arch; the engine compiled for each)e9e2ba3pinned (#243 follow-up): the shared-memory-budget cap on the sliced pin is opt-in (STRATA_ARENA_PIN_GIB=auto) - by default the arena pins as in 0.1.30; on this 64 GB PC the cap pinned 26 instead of 30 GiB and cost ~20% prompt speed and 2-4% IQ3_S decodecacffa9CS-T speed: the file tier fetched in parallel, PCIe planning without file reads, a partial pin of the RAM tier, bit-exact AVX2 multi-token kernels for Q4_K / Q5_1 / Q8_0 experts, decode-only tier statsa348c7aMerge branch 'f-131-srv' into r131-q4b93a00cMerge branch 'f-q4-on242' into r131-q48f5148cCS-T: the partial pin at most 24 GiB (STRATA_PARTIAL_PIN_GIB), the Q4_K/Q5_1/Q8_0 multi-token kernels from two tokens on5ffda19CS-T: the GGUF-in-place prefetch asks Windows for all of a layer's missed slices at once (PrefetchVirtualMemory)ed6c124#253: the 8 GiB arena pin cap only under WDDM; STRATA_ARENA_PIN_GIB; the split's prompt chunk steps down450149d--split-skip-if-fits (opt-in): an auto split runs on the main card alone when it holds every profiled expert + KV📊 Changes
47 files changed (+6077 additions, -62 deletions)
View changed files
📝
.gitignore(+17 -0)📝
README.md(+25 -0)➕
START-App.bat(+9 -0)➕
START-Coder.bat(+5 -0)➕
START-Models.bat(+5 -0)➕
START-Original.bat(+5 -0)➕
START-Quality.bat(+5 -0)➕
START-Swift.bat(+5 -0)➕
START-Uncensored.bat(+5 -0)➕
STOP-Models.bat(+5 -0)➕
desktop/Strata.Desktop/AppPolicy.cs(+150 -0)➕
desktop/Strata.Desktop/DesktopForm.cs(+416 -0)➕
desktop/Strata.Desktop/Program.cs(+61 -0)➕
desktop/Strata.Desktop/Strata.Desktop.csproj(+27 -0)➕
desktop/Strata.Desktop/strata.ico(+0 -0)➕
docs/CHAT_HISTORY.md(+100 -0)➕
docs/DESKTOP_APP.md(+111 -0)➕
docs/LOCAL_MODELS.md(+117 -0)➕
serve/chat_history.py(+569 -0)➕
serve/compaction.py(+94 -0)...and 27 more files
📄 Description
Problem and resulting behavior
The Chat page needs a durable way to reopen conversations and continue long chats without loading every saved transcript into the browser or sending it all to the model. This adds compressed, on-demand chat history, bounded conversation compaction and optional keyword recall. It also separates native Strata configurations from additional local models and provides an optional Windows desktop client for the same page.
Changes
Privacy and scope
The contribution contains source, synthetic tests and documentation. Actual API keys, machine-specific configurations, owner-specific remote deployment, chat databases/backups, downloaded models, executables and crash dumps are excluded. API-key authentication support remains available. Closing the desktop client leaves the model server running.
History is shared by clients of the same server; this does not add per-user accounts. Disk compression is lossless but summaries can omit details. Additional-provider token counts are estimates. The desktop wrapper does not claim an inference-speed improvement.
Validation
Tested on Windows with Python 3.13.5 and Node 24.19.0:
python -m unittest discover -s serve -p 'test_*.py': 257 tests, successful with 7 optional tokenizer/jsonschema dependency skips.python tools/test_start_models.py: 13 tests passed.node --test serve/web/test_context.cjs serve/web/test_history.cjs serve/web/test_disk_history.cjs serve/web/test_model_selectors.cjs serve/web/test_desktop_auth.cjs: 31 tests passed.Strata.exe --policy-testexited successfully. Policy checks use synthetic credentials and temporary configurations.git diff --checkand publication scans passed, including comparison against the local credential values without logging them.These are fixture-based server/browser checks and a Windows build/policy check. A fresh model installation, GPU inference benchmark and Linux/macOS desktop execution were not part of this validation. Setup still supplies model weights and the Python environment; the Windows app also requires the WebView2 Runtime.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.