Skip to content

fix: Use correct backend hive name 'org_notes' for note commands#266

Merged
maximelb merged 1 commit intocli-v2from
fix/hive-shortcut-names
Mar 21, 2026
Merged

fix: Use correct backend hive name 'org_notes' for note commands#266
maximelb merged 1 commit intocli-v2from
fix/hive-shortcut-names

Conversation

@maximelb
Copy link
Copy Markdown
Contributor

Summary

  • The note shortcut command passed "note" as the hive name to Hive(), but the backend hive is "org_notes"
  • This caused UNKNOWN_HIVE errors when the SDK's Hive class hit the API directly at /hive/note/...
  • Fixed make_hive_group("note", "org_notes", "note") in note.py
  • Also fixed _KNOWN_HIVE_TYPES list and explain text in hive.py

How it was found

The ai-sessions project uses the Python SDK's Hive class directly to persist Claude Code memories as org_notes. Every hive.set() call returned UNKNOWN_HIVE.

Test plan

  • limacharlie note list still works
  • limacharlie note set --key test --input-file ... creates a record
  • limacharlie hive list --hive-name org_notes matches limacharlie note list

🤖 Generated with Claude Code

@maximelb maximelb requested a review from dzimine-lc March 21, 2026 23:40
The note shortcut command was passing 'note' as the hive name to the
SDK's Hive class, which hits the REST API at /hive/note/... — but the
backend hive is named 'org_notes'. This caused UNKNOWN_HIVE errors
when using the SDK directly (not through the CLI gateway which may
translate names).

Also fixes the _KNOWN_HIVE_TYPES list and explain text.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@maximelb maximelb force-pushed the fix/hive-shortcut-names branch from 8ec29dc to bf74615 Compare March 21, 2026 23:42
@maximelb maximelb marked this pull request as ready for review March 21, 2026 23:42
@maximelb maximelb merged commit 35a6c43 into cli-v2 Mar 21, 2026
7 checks passed
@maximelb maximelb deleted the fix/hive-shortcut-names branch March 21, 2026 23:47
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