Skip to content

Conversation

@victorm-lc
Copy link

@victorm-lc victorm-lc commented Oct 27, 2025

Problem

When connecting to a LangChain 1.0 backend, the UI crashed with:

Unable to coerce message from array: only human, AI, system, developer, or tool message coercion is currently supported.

Received: {
  "content": "",
  "additional_kwargs": {},
  "response_metadata": {},
  "type": "remove",
  "name": null,
  "id": "__remove_all__"
}

This happened because the UI was built with pre-1.0 LangChain packages that don't recognize new message types like "remove".

Changes

  • Upgrade @langchain/core to 1.0.2 and @langchain/langgraph-sdk to 1.0.0
  • Replace deprecated Sass @import with @use syntax
  • Fix FileViewDialog to handle non-string file content
  • Fix files list being replaced instead of accumulated on updates

Testing

Tested with local DeepAgent running LangChain 1.0. All features working correctly.

@victorm-lc victorm-lc requested a review from nhuang-lc October 27, 2025 20:22
@vercel
Copy link

vercel bot commented Oct 27, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
deep-agents-ui Error Error Oct 27, 2025 10:13pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants