Repository navigation
Persist persona chat in the character workspace - #349
Merged
sparkleMing merged 5 commits intoAug 21, 2026
Merged
Conversation
PR AI Review / PR AI 语义预检中文
AI 语义预检未得到可解析结果,需要 maintainer 人工审核。 影响范围
黄金链路
风险项
测试缺口
English
AI semantic review did not return a parseable result; maintainer review is required. Affected Areas
Golden Path
Findings
Test Gaps
|
Collaborator
Author
PR Preflight Summary / PR 预检汇总中文
English
PR Policy Preflight / PR 规则预检PR Policy Preflight / PR 规则预检中文
未发现确定性规则问题。 English
No deterministic policy findings. PR Flutter Quality / Flutter 质量预检PR Flutter Quality / Flutter 质量预检中文
English
Flutter Analyzer Baseline
No new analyzer issues introduced by this PR. Flutter Test Baseline
No new Flutter test failures introduced by this PR. |
Private-chat history and reply cursors lived only in SQLite, so restoring a workspace did not restore the conversation. Keep messages.jsonl and state.json as the durable store and rebuild the SQLite projection from them.
sparkleMing
force-pushed
the
feat/persona-chat-workspace-persistence
branch
from
August 21, 2026 02:27
a4c8900 to
0cd46fb
Compare
sparkleMing
force-pushed
the
feat/persona-chat-workspace-persistence
branch
from
August 21, 2026 02:33
0cd46fb to
c8760d3
Compare
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.
Summary
Conversation/messages.jsonl, using a normal message shape withid,role, content blocks, timestamps, origin, and optionalturn_id/fact_id.metadata.jsoninstead of writing control records into the message log..pending_commit.jsonwrite-ahead file. Recovery rewinds to the recorded byte offset and replays the exact message rows, so a crash cannot expose half a turn or duplicate it.turn_idin the authoritative message rows for retry idempotency. Metadata only caches the most recent committed turn; older retries fall back to the message log, so there is no receipt directory or second idempotency fact.MigrationStateServicemarker. The unreleased episode-based workspace format is intentionally not a migration source or runtime compatibility branch.Workspace layout
All workspace paths remain centralized in
FileSystemService, and character IDs are validated before becoming path components.Consistency and performance
Fixes #347
Test plan
flutter test: 851 passed, 5 skipped live/environment-dependent tests, 0 failed.flutter analyze: no errors or warnings; 158 pre-existing info-level lints remain outside the changed files.