This commit is contained in:
Aditya kumar singh 2026-08-27 23:15:16 +05:30 committed by GitHub
commit d2c4305e22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,9 +32,12 @@ export function register(deps: ToolDeps) {
const effectiveTag = await deps.resolveContainerTag()
const client = deps.getClient()
const document = await client.getDocument(args.documentId)
const docTags = document.containerTags
const docTags = Array.isArray(document.memoryEntries)
? document.memoryEntries
.map((entry: any) => entry.spaceContainerTag)
.filter(Boolean)
: []
if (
Array.isArray(docTags) &&
docTags.length > 0 &&
!docTags.includes(effectiveTag)
) {