You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Automatic capture drops Agent and MCP tool results listed in includeTools #152
With a tool listed in includeTools, the Stop capture should include that tool's result. Results from the Agent tool and from MCP tools never appear in the saved document. Results from Read, Bash and Edit do appear.
Cause
The session transcript stores most tool results as a string, but Agent and MCP tool results are stored as an array of content blocks:
formatUserMessage in plugin/hooks/lib/transcript.js passes block.content straight to cleanContent, which returns an empty string for anything that is not a string. The result is then skipped as empty.
Steps to reproduce
Set "includeTools": ["Agent"] in ~/.supermemory-claude/settings.json.
In a session, ask the assistant to delegate a search to a subagent and let the turn end.
Inspect the saved document (or the request body sent to /v3/documents): the Agent tool call is there, the assistant:tool_result entry for it is missing.
Expected
The text blocks of the tool result are captured (and truncated to 500 characters) like a string result. Non-text blocks such as images stay out.
Activity