Skip to content

gstack-memory-ingest broken on gbrain >=0.18: still calls renamed put_page subcommand #1346

@simonkhc

Description

@simonkhc

Environment

  • gstack 1.26.4.0 (~/.claude/skills/gstack/VERSION)
  • gbrain 0.18.2
  • Linux, bun runtime

Reproducer

$ gbrain --version
gbrain 0.18.2
$ gbrain --help | grep -A 1 PAGES
PAGES
  get <slug>                         Read a page
  put <slug> [< file.md]             Write/update a page
$ echo "hi" | gbrain put_page --slug test --type note
Unknown command: put_page
Run gbrain --help for available commands.

Result: every transcript ingest fails. In a fresh setup with 292 transcripts queued, all 292 hit [put-error] ... Unknown command: put_page and nothing lands in the brain.

Expected

gstack-memory-ingest should use the canonical gbrain page-write subcommand and successfully ingest pages.

Actual

bin/gstack-memory-ingest.ts:768 builds the args array with the literal "put_page":

const args = [
  "put_page",
  "--slug", page.slug,
  "--title", page.title,
  "--type", page.type,
  "--tags", page.tags.join(","),
];
execFileSync("gbrain", args, { ... });

put_page is the gbrain <=0.17 name. gbrain >=0.18 renamed it to put (same flags, same stdin contract for the body).

Suggested fix

One-line change at bin/gstack-memory-ingest.ts:768: "put_page" -> "put". The rest of the call site (flags, stdin body, timeouts) is unchanged. PR to follow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions