Thanks to visit codestin.com
Credit goes to github.com

Skip to content

.NET: [Bug]: The FileSystemJsonCheckpointStore did not save the "index.jsonl" file. #3169

Description

@helloxubo

Description

Hello, when CheckpointManager uses FileSystemJsonCheckpointStore, the index.jsonl file will not be automatically saved.
In the CreateCheckpointAsync method, should we force a Flush operation after each write to the index?

Code Sample

const string CheckpointPath = "checkpoints";
        var checkpointManager = CheckpointManager.CreateJson(new FileSystemJsonCheckpointStore(new DirectoryInfo(CheckpointPath)));

Error Messages / Stack Traces

Package Versions

1.0.0

.NET Version

.Net 10

Additional Context

No response

Metadata

Metadata

Assignees

Labels

.NETUsage: [Issues, PRs], Target: .NetbugUsage: [Issues], Target: all issues (Legacy, prefer issue type: bug)workflowsUsage: [Issues, PRs], Target: Workflows

Type

Fields

No fields configured for Bug.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions