-
Notifications
You must be signed in to change notification settings - Fork 4.2k
FilesystemMiddleware can emit an unreadable /conversation_history/<uuid>.md reference after oversized HumanMessage eviction #6554
Copy link
Copy link
Open
Labels
org:externalIssue or pull request created by someone outside the `langchain-ai` GitHub organization.Issue or pull request created by someone outside the `langchain-ai` GitHub organization.package:deepagentsChanges related to the `deepagents` SDK and agent harness.Changes related to the `deepagents` SDK and agent harness.priority:backlogNot currently planned/prioritized work, often affecting a limited feature or set of users.Not currently planned/prioritized work, often affecting a limited feature or set of users.topic:backendsFilesystem and storage backends for Deep Agents.Filesystem and storage backends for Deep Agents.topic:filesystemFilesystem tools and file-management behavior.Filesystem tools and file-management behavior.type:bugAn unexpected problem or incorrect behavior.An unexpected problem or incorrect behavior.
Description
Activity
Metadata
Metadata
Assignees
Labels
org:externalIssue or pull request created by someone outside the `langchain-ai` GitHub organization.Issue or pull request created by someone outside the `langchain-ai` GitHub organization.package:deepagentsChanges related to the `deepagents` SDK and agent harness.Changes related to the `deepagents` SDK and agent harness.priority:backlogNot currently planned/prioritized work, often affecting a limited feature or set of users.Not currently planned/prioritized work, often affecting a limited feature or set of users.topic:backendsFilesystem and storage backends for Deep Agents.Filesystem and storage backends for Deep Agents.topic:filesystemFilesystem tools and file-management behavior.Filesystem tools and file-management behavior.type:bugAn unexpected problem or incorrect behavior.An unexpected problem or incorrect behavior.
Submission checklist
Area (Required)
Related Issues / PRs
Related issue: #5123
That issue requests exposing
FilesystemMiddlewareeviction limits throughcreate_deep_agent(), but it was automatically closed without resolution.Reproduction Steps / Example Code (Python)
Error Message and Stack Trace (if applicable)
Error: File '/conversation_history/473efc2b-7d37-4fe2-ba65-eadda9f36464.md' not foundDescription
The oversized HumanMessage is evicted to a randomly generated
/conversation_history/<uuid>.mdpath. The model receives that path, butread_filereports that it does not exist. Re-execution can generate anotherUUID and repeat the same sequence.
And this end in a non-stop loop.
Environment / System Info
OS: Linux
deepagents: 0.6.8
langchain: 1.3.10
langchain-core: 1.4.7
Backend: StateBackend
Execution environment: durable/replayed workflow runtime