feat: Claude Code / Codex 聊天记录导入、异步迁移队列与新手引导 Agent 迁移环节 - #159
Merged
Conversation
…ob queue and onboarding stage - Add Claude Code and Codex entries to the connect-source menu with auto-discovery of ~/.claude and ~/.codex - Brand icons for claude/codex across sources, settings, and the @ external conversation picker - Remove import caps (file count, per-session messages, message chars, file size) from local agent history parsing - Fix DELETE/POST without body failing on Content-Type mismatch in the migrations gateway bridge - Raise gateway threads body limit and batch thread uploads by content size - Introduce persistent migration_jobs queue: appendThreads only persists and enqueues memory_index jobs, finish returns immediately, a single-concurrency worker drains with event-loop yields, retries failed jobs, and completes runs - clear() now soft-hides threads and FTS instantly, then a source_gc job removes memory sessions, catalog entries, and rows in the background; begin() rejects deleting sources - recover() on startup re-drives stalled runs and resumes GC after crashes - Stream local agent history parsing file-by-file with adaptive batches to cap peak memory - Add an agent-migration onboarding stage between memory and room that scans local agents, lets users pick which histories to migrate, and routes openclaw through its own adapter - Include notification bridge and dev script improvements
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
~/.claude/~/.codex(未发现时可选目录),复用 OpenClaw 的迁移记录表展示、重试与重导入Content-Type: application/json报 "Body cannot be empty";threads 路由提升 bodyLimit,桌面端按内容大小自适应分批migration_jobs持久化任务队列——appendThreads只落库+入队、finish立即返回、单并发 worker 带 yield 逐个建 memory 索引并自动重试;删除改为软隐藏 + 后台source_gc渐进清理;启动recover()恢复中断的 run 与 GC,任意时刻重启可续传Test plan
pnpm --filter @nxcore/desktop typecheckpnpm --filter @nxcore/gateway exec vitest run tests/data-migrations.test.ts(含软删除 GC、崩溃恢复新用例)