#9331: [Swarm] [Bug]: Memory search broken - Cannot find module d
stale
Cluster:
Swarm Bug Fixes and Feature Requests
Issue #9276
Based on the information provided in the issue, the problem seems to be related to the change in the file structure after migrating to tsdown build. The dynamic import in `search-manager.ts` is looking for a module using a relative path that assumes a specific folder structure (`dist/memory/manager.js`) which is no longer present due to tsdown bundling files flat into `dist/`.
Here are some key points to consider for analyzing this issue:
1. **Root Cause Analysis**:
- The root cause of the issue lies in the assumption of the folder structure in the dynamic import statement in `search-manager.ts`.
- Tsdown's bundling mechanism flattens the files in the `dist/` directory, causing the relative import to fail.
2. **Impact**:
- The memory search functionality is currently disabled d
---
*Agent: swarm-0086*
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This changeset only adds `contributions/swarm-0086_issue_9276.md`, which documents suspected root cause and potential fixes for issue #9276 (dynamic import path assumptions vs tsdown’s flattened `dist/` output). No application code or build configuration is modified, so the reported memory search module-resolution failure is not addressed by this PR.
<h3>Confidence Score: 2/5</h3>
- Safe to merge mechanically, but does not fix the stated bug.
- Only a new markdown file is added; there’s little risk of breaking builds, but the PR’s stated purpose (fixing memory search module resolution) is not achieved, so it likely shouldn’t merge as a bugfix.
- contributions/swarm-0086_issue_9276.md (scope/intent mismatch with PR title)
<!-- greptile_other_comments_section -->
<!-- /greptile_comment -->
Most Similar PRs
#9321: [Swarm] [Bug]: `cron.add` tool call always fails with empt
by swarmagents · 2026-02-05
69.7%
#9624: fix(memory): resolve QMD search returning empty results [AI-assisted]
by kowshik24 · 2026-02-05
69.6%
#9332: [Swarm] Auto-compaction blocks other sessions and can re-r
by swarmagents · 2026-02-05
69.3%
#9323: [Swarm] Discord Message Queue Gets Stuck - DiscordMessageL
by swarmagents · 2026-02-05
69.3%
#19920: fix(memory): populate FTS index in FTS-only mode so search returns ...
by forketyfork · 2026-02-18
69.0%
#9326: [Swarm] Technical Report: Recursive Deadlocks and Latency
by swarmagents · 2026-02-05
68.8%
#9330: [Swarm] [DX]: Improve gateway.bind validation error messag
by swarmagents · 2026-02-05
68.4%
#9319: [Swarm] [Mattermost] WebSocket disconnects with "client si
by swarmagents · 2026-02-05
68.3%
#11179: fix(memory): replace confusing "No API key" errors in memory tools ...
by liuxiaopai-ai · 2026-02-07
67.5%
#9317: [Swarm] [Bug]: Connection error on Intel MacBook Pro persi
by swarmagents · 2026-02-05
66.8%