Skip to content

fix(import): do not mark placeholder summaries ready - #506

Open
YIKUAIBANZI wants to merge 1 commit into
MemTensor:mainfrom
YIKUAIBANZI:fix/placeholder-summary-ready-and-store-excludes
Open

YIKUAIBANZI wants to merge 1 commit into
MemTensor:mainfrom
YIKUAIBANZI:fix/placeholder-summary-ready-and-store-excludes

Conversation

@YIKUAIBANZI

@YIKUAIBANZI YIKUAIBANZI commented Sep 21, 2026 •

Copy link
Copy Markdown

Summary

restartFailedProcessing() marked a memory ready whenever hasVector(..., "vec_summary") was true. Placeholder summaries such as 摘要排队中 can still produce an embedding, so failed memories were cleared to ready and those placeholder vectors entered semantic search.

Ready is now skipped when the stored summary is still placeholder / queued text. The failed (or requeued) path remains, so retry is still possible.

Also exclude package-manager content-addressed stores from the local project scanner: .pnpm-store, .yarn/cache, and .bun/install/cache. Walking those trees inflates project_environment_profile context.

Fixes #460

Why

A vector row is a poor proxy for "summary finished". If the vector was computed from queued placeholder text, marking the memory ready hides the failure and poisons retrieval. Package-manager stores are the same class of false completion for project scans: they pass the entry-count budget while overflowing the model context.

Tests

  • vitest run tests/service/import/import-processing.test.ts (24 passed)
  • vitest run tests/service/project-environment/local-scanner.test.ts (5 passed)

A vec_summary row is not enough for ready when the summary is still
queued placeholder text. Also skip package-manager content stores in
the local project scanner.

This branch has not been deployed

No deployments
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.

[Bug] 摘要作业失败后记忆被标记为 ready 但摘要仍是占位符,语义检索静默失效(本机 88% 记忆受影响)

1 participant