Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ export function registerMemoryForgetTool(
};

try {
const agentId = resolveRuntimeAgentId(runtimeContext.agentId, runtimeCtx);
const agentId = runtimeContext.agentId;
// Determine accessible scopes
let scopeFilter = resolveScopeFilter(runtimeContext.scopeManager, agentId);
if (scope) {
Expand Down Expand Up @@ -963,7 +963,7 @@ export function registerMemoryUpdateTool(
}

// Determine accessible scopes
const agentId = resolveRuntimeAgentId(runtimeContext.agentId, runtimeCtx);
const agentId = runtimeContext.agentId;
const scopeFilter = resolveScopeFilter(context.scopeManager, agentId);

// Resolve memoryId: if it doesn't look like a UUID, try search
Expand Down Expand Up @@ -1200,7 +1200,7 @@ export function registerMemoryStatsTool(
const { scope } = params as { scope?: string };

try {
const agentId = resolveRuntimeAgentId(runtimeContext.agentId, runtimeCtx);
const agentId = runtimeContext.agentId;
// Determine accessible scopes
let scopeFilter = resolveScopeFilter(context.scopeManager, agentId);
if (scope) {
Expand Down Expand Up @@ -1315,7 +1315,7 @@ export function registerMemoryListTool(
try {
const safeLimit = clampInt(limit, 1, 50);
const safeOffset = clampInt(offset, 0, 1000);
const agentId = resolveRuntimeAgentId(runtimeContext.agentId, runtimeCtx);
const agentId = runtimeContext.agentId;

// Determine accessible scopes
let scopeFilter = resolveScopeFilter(context.scopeManager, agentId);
Expand Down
Loading