Skip to content

refactor(memory): drop dead DetectLanguage and qdrant GetByID#619

Merged
sheepbox8646 merged 6 commits into
memohai:mainfrom
ChrAlpha:worktree-memory-tier2-cleanup
Jun 17, 2026
Merged

refactor(memory): drop dead DetectLanguage and qdrant GetByID#619
sheepbox8646 merged 6 commits into
memohai:mainfrom
ChrAlpha:worktree-memory-tier2-cleanup

Conversation

@ChrAlpha

Copy link
Copy Markdown
Member

WIP after #569

  • 清除无用遗留:adapters.LLM.DetectLanguage、qdrant.GetByID、MemoryHandler.memoryStore、 SetMCPClientProvider
  • file 模式运行时从 handlers 迁入 builtin/file_runtime.go;Runtime 接口导出,消除 any 类型;复用 shared.go helper 删掉 handlers 重复实现
  • memory_extract/update.md 迁入 memllm 自行 embed,消除 memllm → internal/agent 反向依赖

ChrAlpha added 6 commits June 14, 2026 13:48
PR memohai#569 moved the file-mode memory runtime from handlers into the builtin
adapter package but kept the legacy any-typed wiring and per-runtime store
interfaces. Drop the remaining type-erased plumbing:

- builtin.Runtime: export the interface; NewBuiltinProvider takes Runtime
  directly instead of any + runtime cast.
- NewBuiltinRuntimeFromConfig returns Runtime instead of (any, error).
- NewFileRuntime returns Runtime, internal newFileRuntime takes the shared
  memoryStore interface; drop fileMemoryStore + sparseMemoryStore in favor
  of a single memoryStore in shared.go (with ArchiveAndRebuildFiles).
- cmd/agent/app.go: drop the dead 'var fileRuntime any' branch.
- builtin_test.go: drop the no-longer-reachable bad-service-type test.
The previous commit "drop dead DetectLanguage and qdrant GetByID" removed
DetectLanguage from the LLM interface; recordingLLM only kept the method
to satisfy the old interface. With it gone the stub is dead.
@ChrAlpha ChrAlpha force-pushed the worktree-memory-tier2-cleanup branch from fe8aa6e to 517de4f Compare June 14, 2026 14:22
@ChrAlpha ChrAlpha marked this pull request as ready for review June 14, 2026 14:23
@sheepbox8646 sheepbox8646 merged commit 714c268 into memohai:main Jun 17, 2026
12 checks passed
@ChrAlpha ChrAlpha deleted the worktree-memory-tier2-cleanup branch June 17, 2026 08:54
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.

2 participants