Repository navigation
Description
Extension
https://www.raycast.com/Rob/granola
Raycast Version
1.104.8
OS Version
Version 26.3 (25D125)
Description
The get-note-content tool returns the literal string "undefined\n\n" as content when called shortly after a meeting, before Granola has finished generating the AI-enhanced panel notes.
Root cause:
When panels are not yet available (e.g. meeting just ended), /v1/get-document-panels returns empty or no data. The tool falls back to g1(a.notes), which processes the raw ProseMirror document returned by /v2/get-documents. This document contains only a skeleton node — an empty paragraph with no content property:
{"type": "doc", "content": [{"type": "paragraph", "attrs": {"id": "..."}}]}
The Ce function (ProseMirror-to-markdown converter) then processes this empty paragraph:
case "paragraph": return e.content?.map(Ce).join(" ") + a;
When e.content is undefined, e.content?.map(Ce) returns undefined via optional chaining. JavaScript then coerces this: undefined + "\n\n" → "undefined\n\n".
Since "undefined\n\n" is a truthy string, it gets returned as the note content instead of triggering further fallbacks or an informative error.
The same issue affects heading, bulletList, and listItem nodes — all use the same pattern without null-guarding the result.
Fix:
Two changes needed:
- Guard against undefined in Ce:
case "paragraph": return (e.content?.map(Ce).join(" ") ?? "") + a;
case "heading": return `${"#".repeat(e.attrs?.level||1)} ${e.content?.map(Ce).join(" ") ?? ""} ${a}`;
case "bulletList": return (e.content?.map(Ce).join("") ?? "") + a;
case "listItem": return `- ${e.content?.map(Ce).join(" ") ?? ""} ${a}`;
- Return a clear message when panels are not yet ready, instead of falling back to the skeleton document:
if (!panelContent && !a.notes_markdown) {
return "Notes not yet generated. Please try again in a few minutes.";
}
Steps To Reproduce
0a. Install the Granola extension in Raycast.
0b. Install Raybridge on the system and set it up as HTTP server
- Have a Granola meeting with AI-generated notes
- Ask your LLM to use the get-note-content tool with a newly generated note ID.
- The content field returns "undefined\n\n" instead of the actual meeting summary
Note: Once Granola has finished processing the AI notes (typically within a few minutes to an hour after the meeting), the tool returns correct content. The bug only manifests during the processing window.
Current Behaviour
content field returns "undefined\n\n" for all notes.
Expected Behaviour
content should return an empty string or a clear message like "Notes not yet generated. Please try again in a few minutes.".
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Severity
Activity
raycastbot commentedon Mar 4, 2026
Thank you for opening this issue!
🔔 @RobErskine @jlokos you might want to have a look.
💡 Author and Contributors commands
The author and contributors of
Rob/granolacan trigger bot actions by commenting:@raycastbot close this issueCloses the issue.@raycastbot close as not plannedCloses the issue as not planned.@raycastbot close as duplicateCloses the issue as duplicate.@raycastbot rename this issue to "Awesome new title"Renames the issue.@raycastbot reopen this issueReopens the issue.@raycastbot assign meAssigns yourself to the issue.@raycastbot good first issueAdds the "Good first issue" label to the issue.@raycastbot keep this issue openMake sure the issue won't go stale and will be kept open by the bot.[-][Granola] usage via raybridge / MCP: get-note-content tool returns "undefined" — panels lookup uses wrong key[/-][+][Granola] usage via raybridge / MCP: get-note-content tool returns "undefined" instead of empty content for unprocessed meetings[/+]jlokos commentedon Mar 9, 2026
@zaengerlein I'll try to address this in a future release of Granola. It looks like it's just better error handling, but the functionality should remain in working order. Please let me know if that is not the case for you.
jlokos commentedon Sep 7, 2026
@zaengerlein the literal
undefinedcontent issue should be fixed in v2.2.0 via #30869, which has just merged and is publishing to the Store. Empty note nodes are now handled correctly. Once the update is available, please give your workflow another try and let me know if you still see this or run into any other issues.