flow: own worker flow state in runtime sessions

This commit is contained in:
2026-08-09 18:04:32 +09:00
parent c0532fda4e
commit 068ba9afa5
46 changed files with 5112 additions and 76 deletions
@@ -36,6 +36,7 @@ fn round_trip_write_and_read() {
},
LogEntry::UserInput {
ts: 2000,
extensions: vec![],
segments: vec![protocol::Segment::text("Hello")],
},
LogEntry::AssistantItem {
@@ -214,6 +215,7 @@ fn read_entry_count_matches_append_tally() {
},
LogEntry::UserInput {
ts: 2000,
extensions: vec![],
segments: vec![protocol::Segment::text("Hello")],
},
];
@@ -253,6 +255,7 @@ fn unterminated_utf8_tail_is_ignored_and_replaced_on_append() {
let next = LogEntry::UserInput {
ts: 2,
extensions: vec![],
segments: vec![protocol::Segment::text("recovered")],
};
store.append(sid, segid, &next).unwrap();
@@ -453,6 +453,7 @@ async fn session_auto_forks_on_conflict() {
// Simulate another Worker writing to the same segment behind our back.
let extra_entry = LogEntry::UserInput {
ts: 9999,
extensions: vec![],
segments: vec![protocol::Segment::text("Interloper")],
};
store.append(sid, original_segid, &extra_entry).unwrap();