We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e75b30b commit ca32dd7Copy full SHA for ca32dd7
.changeset/crisp-kiwis-end.md
@@ -0,0 +1,5 @@
1
+---
2
+"@langchain/community": patch
3
4
+
5
+Fix possible race condition in FileSystemChatMessageHistory
libs/langchain-community/src/stores/message/file_system.ts
@@ -113,7 +113,6 @@ export class FileSystemChatMessageHistory extends BaseListChatMessageHistory {
113
114
protected async loadStore(): Promise<FileChatStore> {
115
try {
116
- await fs.access(this.filePath, fs.constants.F_OK);
117
const store = await fs.readFile(this.filePath, "utf-8");
118
return JSON.parse(store) as FileChatStore;
119
} catch (_error) {
0 commit comments