Skip to content

hume-ai: create_omi_memory posts to /v1/integrations/{app_id}/memories, a route the backend does not serve (404) — emotion memories are never saved ($25 bounty proposed) #14340

Closed

Description

@Suyann

Symptom

plugins/hume-ai/app.py → create_omi_memory() never saves an emotion memory. Every call logs ✗ Omi API error: 404 - {"detail":"Not Found"} and returns {"success": false}, so the "create memory from detected emotion" path of the Hume plugin is dead in production.

Evidence

The plugin posts to https://api.omi.me/v1/integrations/{app_id}/memories?uid={uid} (plugins/hume-ai/app.py:273). That route does not exist on the backend — backend/routers/integration.py only registers the v2 import routes:

POST /v2/integrations/{app_id}/user/memories      (create memories)
POST /v2/integrations/{app_id}/user/conversations
GET  /v2/integrations/{app_id}/memories

Live check against production (no key needed — a missing route 404s, a real route asks for the key):

$ curl -s -X POST -H 'Content-Type: application/json' -d '{"text":"t"}' \
    'https://api.omi.me/v1/integrations/testapp/memories?uid=u1'
{"detail":"Not Found"}                                   # HTTP 404

$ curl -s -X POST -H 'Content-Type: application/json' -d '{"text":"t"}' \
    'https://api.omi.me/v2/integrations/testapp/user/memories?uid=u1'
{"detail":"Missing or invalid Authorization header. Must be 'Bearer API_KEY'"}   # HTTP 401

The payload the plugin already sends ({"text": ..., "timestamp": ..., "emotions": [...]}) is accepted by the v2 route (ExternalIntegrationCreateMemory requires text or memories; extra keys are ignored), so only the path is wrong.

Fix

One-line route change to /v2/integrations/{app_id}/user/memories?uid=, plus a hermetic regression test (stubs the Hume SDK and httpx, pins route/header/payload) registered in .github/checks-manifest.yaml. PR incoming.

Bounty

Per the Contribution guide ("No bounties available? … suggest your own"), proposing a US$25 bounty for this fix + regression test. cc @josancamon19 @kodjima33

Investigated and fixed with Claude Code on behalf of @Suyann; every command above was actually run.

Activity

  1. moved this from Someday to In progress in omi TODO / bountieson Sep 17, 2026
  2. shuoYun114 commented on Sep 19, 2026

    @shuoYun114
    Contributor

    Locking this task / bounty.

    As an active contributor with merged PRs (#14224, #14546), claiming lock privilege per official Omi Contribution Guidelines:

  3. Suyann commented on Sep 19, 2026

    @Suyann
    ContributorAuthor

    For the record: this issue was opened together with PR #14342 (2026-09-17), which fixes it with a hermetic regression test and manifest registration. #14342 was approved by @kodjima33 on 2026-09-17 and re-approved on 2026-09-18 (5/5), verified end to end by the maintainer assistant, and is conflict-free against current main (the manifest conflict noted in the review was resolved on 2026-09-19). So the fix is already in the merge queue rather than unclaimed; leaving the merge decision to the maintainers.

  4. moved this from In progress to In review in omi TODO / bountieson Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions