Skip to content

fix: add recall and forget to CLI_ONLY set#792

Closed
garrytan-agents wants to merge 1 commit intogarrytan:masterfrom
garrytan-agents:fix/recall-cli-only
Closed

fix: add recall and forget to CLI_ONLY set#792
garrytan-agents wants to merge 1 commit intogarrytan:masterfrom
garrytan-agents:fix/recall-cli-only

Conversation

@garrytan-agents
Copy link
Copy Markdown
Contributor

@garrytan-agents garrytan-agents commented May 10, 2026

What

v0.31 added recall and forget commands in the handleCliOnly() switch statement but forgot to add them to the CLI_ONLY gate set. Both commands fall through to cliOps.get() which returns undefined → Unknown command: recall.

One-line fix: add both to the Set.

Testing

Before: gbrain recall → "Unknown command: recall"
After: gbrain recall → hits the v0.31 recall handler


View in Codesmith
Need help on this PR? Tag @codesmith with what you need.

  • Let Codesmith autofix CI failures and bot reviews

v0.31 added recall and forget commands to the switch inside
handleCliOnly() but didn't add them to the CLI_ONLY gate set.
This caused both commands to fall through to the cliOps.get()
lookup, which returns undefined → 'Unknown command' error.

Fixes: gbrain recall, gbrain forget
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant