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:
1 parent
b37a23698d
commit
d5cf09d738
7 files changed
+107
-11
No files matched your search
@@ -486,7 +486,7 @@ def append_transcript_object(
|
||||
|
||||
async def append_session_message_input(
|
||||
session_key: str, *, sessions: SessionManager, content: str, created_at_ms: int,
|
||||
session_message: Mapping[str, Any], expected_generation: str,
|
||||
session_message: Mapping[str, Any],
|
||||
) -> None:
|
||||
chat_id = _chat_id_from_session_key(session_key)
|
||||
if chat_id is None:
|
||||
@@ -496,7 +496,7 @@ async def append_session_message_input(
|
||||
return
|
||||
event.update(created_at_ms=created_at_ms, session_message=dict(session_message))
|
||||
await sessions.state.append_history(session_key, [fact_from_record(event)],
|
||||
expected_generation=expected_generation)
|
||||
expected_generation=None)
|
||||
|
||||
|
||||
def normalize_webui_turn_id(value: Any) -> str:
|
||||
|
||||
Reference in new issue
Block a user