mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1136] [CLOSED] Add opt-in durable chat history, legacy import and browser compaction #3053
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#3053
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/1136
Author: @medking82
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:codex/durable-chat-new-main-20261006📝 Commits (1)
64d119cAdd opt-in durable chat history, legacy import and browser compaction📊 Changes
21 files changed (+2626 additions, -35 deletions)
View changed files
📝
docs/DETAILS.md(+9 -0)➕
docs/UNIFIED_CHAT.md(+64 -0)➕
serve/chat_archive.py(+367 -0)➕
serve/chat_memory.py(+112 -0)📝
serve/mcp.py(+14 -0)📝
serve/server.py(+110 -3)➕
serve/test_chat_archive.py(+285 -0)➕
serve/test_chat_archive_http.py(+138 -0)➕
serve/test_chat_context_http.py(+133 -0)➕
serve/test_chat_memory.py(+185 -0)📝
serve/web/app.css(+18 -0)📝
serve/web/app.js(+341 -32)➕
serve/web/chat-context.js(+104 -0)➕
serve/web/chat-import.js(+130 -0)➕
serve/web/chat-library.js(+76 -0)📝
serve/web/index.html(+34 -0)➕
serve/web/retire-sw.js(+6 -0)➕
tools/test_chat_archive_ui.cjs(+190 -0)➕
tools/test_chat_context.cjs(+162 -0)➕
tools/test_chat_import.cjs(+78 -0)...and 1 more files
📄 Description
When the web app starts a new chat, owners need to keep previous conversations and import existing local histories without losing inactive branches. This adds an explicit local SQLite archive option, revision-safe chat saves, read-only legacy import, full backup, and browser prompt compaction that keeps the original conversation.
Draft for integration discussion. This rebuilds #727 on rewritten main after the history reset; it preserves the original contribution's author and the current request-body drain and forced-tool behavior.
chat_archive_pathor--chat-archive; the default has no server-side persistent archive.memory__search/recalluse existing MCP permissions and bounded message coordinates./strataand/sw.jscompatibility retain old browser data.Validation on native Windows/Python and Node:
Limits: this is an opt-in archive for one server owner, with no per-account isolation. Draft persistence happens at chat save/actions rather than every keystroke. Browser validation uses a mock engine and synthetic database; Linux behavior and manual legacy-browser migration are not claimed as exercised by these Windows checks. Existing socket ResourceWarnings remain visible without test failures.
Independent review: one GA401 Antigravity/Gemini Flash/high round completed across four whole-file logical groups covering all 21 changed files. It reported no actionable findings. The Native Review owner revalidated the exact source binding and completed evidence. This is bounded review evidence; the reviewer did not execute tests, and split groups do not provide simultaneous attention to the full source.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.