Skip to content

granola-ingest: obsidian CLI calls may hang in script context #10

@mackh

Description

@mackh

Problem

05 Meta/scripts/granola-ingest calls obsidian CLI directly from within a bash script at lines 214, 231, and 236:

obsidian "vault=$VAULT_NAME" search "query=granola_id: $granola_id" ...
obsidian "vault=$VAULT_NAME" search "query=$display_name" ...
obsidian "vault=$VAULT_NAME" search "query=$kebab" ...

The obsidian CLI spawns Electron, which can hang indefinitely in non-interactive script contexts. This was the root cause of sb-today-scan and sb-github-sync hanging after the PR #8 merge — those scripts had the same pattern and were fixed by removing obsidian CLI calls.

granola-ingest may work when Obsidian is already running (the Electron instance reuses the existing app), but this is environment-dependent and could cause intermittent hangs during /eod Step 0.75.

Fix options

  1. Replace obsidian search with direct file-based lookups (grep frontmatter for granola_id, find person files by name)
  2. Have the script output data for Claude to query, similar to the sb-today-scan / sb-github-sync pattern

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions