fix(clmm): align task lifecycle with copilotkit v2#383
Draft
0xTomDaniel wants to merge 8 commits intonextfrom
Draft
fix(clmm): align task lifecycle with copilotkit v2#3830xTomDaniel wants to merge 8 commits intonextfrom
0xTomDaniel wants to merge 8 commits intonextfrom
Conversation
Keep summarize cycles in working state and complete on fire\ncommands so tasks don't terminate after each poll. Migrate\nweb-ag-ui CopilotKit usage to v2 with persisted thread\nIDs and event-based interrupt handling. Patch\n@copilotkit/sdk-js to avoid root langchain imports and add\nambient langgraph typings for NodeNext builds.
revert to 1.50.1 to avoid patched langgraph build remove the local patch and type shim configuration
retain intercepted tool call metadata in local state reorder imports to satisfy lint rules
use the LangGraph SDK to create assistants, rewind threads, and join resumable runs for cron and hire execution. add stable thread ids derived from wallet addresses and cover behavior in unit tests.
treat array entries as equivalent when their serialized values match so snapshot merges keep stable prefixes instead of replacing the entire array.
introduce a LangGraphAttachAgent to attach to existing threads, emit snapshots, and retry or fall back when streams fail. use the connect route with SSE keep-alives and update the agent hook to attach and queue commands with stable thread ids.
add vitest unit/e2e configs and setup to boot LangGraph locally for connect coverage. include route, attach, and hook unit tests plus end-to-end SSE snapshot checks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Align CLMM task lifecycle with CopilotKit v2 migration and runtime fixes for web-ag-ui.
Changes
Testing
Related Issues
Closes #N/A
Notes
Includes a pnpm patch for @copilotkit/sdk-js to resolve langchain export/runtime issues.