Skip to content

[Bug]: not confirm empty message.jsonl state before commit return #1487

@wychosenone

Description

@wychosenone

Bug Description

so right now when archive finished, .done will determine completed archive. however sometimes the live service will cause root live empty operation not actually in the disk, causing later /context still regard old messages as active messages to insert.

Steps to Reproduce

official behavior:

  1. commit Phase 1 empty root live
  2. write archive/messages.jsonl
  3. Phase 2 generate .abstract.md
  4. Phase 2 generate .overview.md
  5. Phase 2 write .meta.json
  6. finally write .done

Expected Behavior

might need check:

archive_xxx/messages.jsonl exists
archive_xxx/.done exists
archive_xxx/.abstract.md exists
archive_xxx/.overview.md exists
root/messages.jsonl already empty or left out later added messages already empty or left out after commit messages
.meta.json message_count and root , have same rows.

Actual Behavior

old messages being inserted to active messages

Minimal Reproducible Example

Error Logs

OpenViking Version

0.3.8

Python Version

3.10

Operating System

Linux

Model Backend

None

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions