Skip to content

refactor(memory-lancedb): remove dead legacy path scan - #113299

Merged
steipete merged 1 commit into
mainfrom
cleanup/memory-lancedb-default-path
Jul 24, 2026
Merged

steipete merged 1 commit into
mainfrom
cleanup/memory-lancedb-default-path

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The memory-lancedb default database path resolver still performed filesystem checks and contained a legacy-directory scan even though the legacy directory list is permanently empty. Every branch ultimately returned the same preferred path.

Why This Change Was Made

Replace the no-op resolver with the direct default path expression and remove the now-unused filesystem import. This is a behavior-neutral 29-line simplification in the existing config owner.

AI-assisted: yes. The branch was reviewed with the mandated Codex autoreview helper.

User Impact

No user-visible behavior or config shape changes. The default remains ~/.openclaw/memory/lancedb; plugin startup no longer performs redundant synchronous existence checks.

Evidence

  • node scripts/run-vitest.mjs extensions/memory-lancedb/config.test.ts — 10 passed.
  • node scripts/run-vitest.mjs extensions/memory-lancedb/index.test.ts — 137 passed.
  • node scripts/check-changed.mjs -- extensions/memory-lancedb/config.ts — passed on Blacksmith Testbox, including extension production/test typechecks, formatting, lint, import-cycle checks, and architecture guards.
  • Global autoreview helper, Codex branch mode against origin/main — clean, 0 accepted/actionable findings.

@openclaw-barnacle openclaw-barnacle Bot added extensions: memory-lancedb Extension: memory-lancedb size: XS maintainer Maintainer-authored PR labels Jul 24, 2026
@steipete steipete self-assigned this Jul 24, 2026
@steipete
steipete marked this pull request as ready for review July 24, 2026 10:11
@steipete
steipete force-pushed the cleanup/memory-lancedb-default-path branch from 8cc2b82 to b1e6973 Compare July 24, 2026 10:37
@steipete
steipete merged commit 445eea2 into main Jul 24, 2026
83 checks passed
@steipete
steipete deleted the cleanup/memory-lancedb-default-path branch July 24, 2026 10:43
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 24, 2026
…omic-publication-20260724

* origin/main:
  refactor(memory-lancedb): remove dead legacy path scan (#113299)
  fix(test): satisfy no-map-spread in exec approvals (#113303)
  fix: keep OAuth refresh failures terminal [AI] (#112957)
  fix: reusable exec approvals apply to approved arguments (#112946)
  refactor(agents): split tool search internals (#113296)
  fix: keep inline eval approvals one-shot [AI] (#112956)
  refactor(normalization): reuse trimmed list helpers (#113295)
  fix(openai): fail fast on invalid TLS certificates (#111818)
  fix: recognize more shell wrappers [AI] (#112955)
  fix(i18n): correct Indonesian seconds labels
  chore(i18n): refresh native locales
  fix: block opaque exec dispatch wrappers (#112953)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: memory-lancedb Extension: memory-lancedb maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant