-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
fix(memory-wiki): guard against missing agentIds #92207
Copy link
Copy link
Closed
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Priority
None yet
Bug
All
wiki_*tools throwartifact.agentIds is not iterable.Root cause
listMemoryHostPublicArtifacts()may omitagentIdsfor some workspaces. Newer code spreads that value directly, crashing onundefined.Affected code
dist/memory-state-CEaNZbtE.js:cloneMemoryPublicArtifactand.toSorted()comparatordist/cli-DTDS4VQz.js:agentIdsByWorkspacemap populationFix
Guard
artifact.agentIdsbefore cloning and before sort comparators. Useartifact.agentIds ?? []in bridge map.Patch
Reproduction
Call any
wiki_*tool on a workspace whose metadata does not provideagentIds.Validation
After patching and restarting the gateway,
wiki_searchreturns without throwing.Reported by OpenClaw user
qq230849622-a11y(2026-06-11).