fix(webui): preserve cross-session provenance at display persistence (#6379)

* fix(session): bind internal input identity before acceptance

* fix(webui): bind cross-session display writes at persistence boundary

* fix(webui): simplify session messages to current-target display writes

* chore: trim redundant session message comments
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-22 01:24:18 +08:00
1 parent b37a23698d
commit d5cf09d738
7 files changed
+107 -11

No files matched your search

+2 -1
View File
@@ -715,8 +715,9 @@ class SessionState:
)
async def append_history(
self, key: str, facts: Sequence[HistoryFact], *, expected_generation: str,
self, key: str, facts: Sequence[HistoryFact], *, expected_generation: str | None,
) -> None:
"""Append to an existing session; None selects its current generation."""
records = list(facts)
await self._execute(
key,