Skip to content

Mind Map rebuild offers Retry but returns canonical-graph 409 #20481

Closed

Description

@aryanorastar

Report

Featurebase report “Is anyone from the dev team even seeing these???” (Bradley Hanada, Sept 2026) includes an Android in-app omi.me screen showing: Failed to rebuild knowledge graph: {"detail":"Canonical knowledge graph state is derived from canonical memories and cannot be deleted or rebuilt directly."} The screen offers Retry, but the same request is rejected. Another Featurebase post (“Mind map not working”, Jonas) shows the same error, so this is not an isolated screenshot.

Current-main evidence (2026-10-03)

POST /v1/knowledge-graph/rebuild in backend/routers/knowledge_graph.py calls _require_legacy_graph_mutation, which returns HTTP 409 when canonical graph state exists. The mobile API client still exposes rebuildKnowledgeGraph(), and onboarding can call it when its GET has no content nodes. The attached screen is an in-app web view; its exact caller has not yet been identified. The raw backend conflict being shown with a Retry button is itself a client/backend contract failure.

Expected

Canonical-memory accounts should not be offered a rebuild action that deterministically fails. The mind map should load or recover through a canonical-safe path, and any remaining error should be actionable without exposing the raw backend response.

Related

Technical resolution verified — 2026-10-26

The code fixes are merged and present on main at 372cfbcb56b5c69c787b4a1a8a1394ca1beb69ec:

For #23712 head 43866f9f0032844e08902aa01f41ce390cc6ef14, CI is complete with no failed or pending checks (22 successful, 25 conditional skips, one neutral); the full Dart Analyze & Tests job passed. The changed API, onboarding caller and regression file on main are byte-identical to the tested PR head. Local evidence also includes 88 focused graph/API/widget/identity tests, nine selected hermetic journey checks and 27 manifest checks. These exercise production client behavior with synthetic/local fixtures, not live-account recovery.

Closing as completed for the technical code scope. The Featurebase/support case remains open: #23712 still needs a confirmed mobile store release, then affected users must verify map loading and persistence after refresh/reopen. This final client-only change needs no additional backend deployment. Earlier fixes are already included in iOS 1.0.576 and Android 1.0.573. #12878 is closed unmerged and is not a dependency. No claim is made that either customer's current account has been recovered.

Activity

  1. added
    bug
    backend
    memory
    p1
    on Oct 3, 2026
  2. featurebase-for-github commented on Oct 3, 2026

    @featurebase-for-github

    This issue is linked to our feedback platform. For feedback and updates, please visit this link.

  3. featurebase-for-github commented on Oct 3, 2026

    @featurebase-for-github

    This issue is linked to our feedback platform. For feedback and updates, please visit this link.

  4. aryanorastar commented on Oct 3, 2026

    @aryanorastar
    CollaboratorAuthor

    Additional confirmed reproduction from the Featurebase “Mind map not working” discussion:

    • Jonas (iOS) reports the exact canonical-graph 409 text after Mind Map worked for several weeks. A Pro subscription did not avoid it.
    • Bradley (Samsung Galaxy S24 Ultra, Android 16, Omi AI 1.0.548 build 1129) reports that the map has shown “No Knowledge Graph yet” from first setup. Expanding it and tapping Build Graph produces the same 409. The same error also appeared during the Get Started voice-question onboarding flow, requiring several retries to finish setup.

    This identifies a concrete client action, Build Graph, and an onboarding path. It also suggests this is not limited to one platform or subscription tier. Do not treat the 409 as a user-side account, device, or paid-plan problem.

  5. featurebase-for-github commented on Oct 3, 2026

    @featurebase-for-github

    This issue is linked to our feedback platform. For feedback and updates, please visit this link.

  6. julio23jaz-dotcom commented on Oct 3, 2026

    @julio23jaz-dotcom

    @josancamon19 @kodjima33 — following the paid-bounty suggestion workflow in the contribution guide: would you approve a US$30 cash bounty for a small, separately scoped fix here, if this is not already owned by #12878?

    Code inspection at main d4062b9ee88cb290305c988ab5ac09f642f0261d found the onboarding caller in app/lib/pages/onboarding/wrapper.dart::_prebuildKnowledgeGraph: an empty GET result (or any caught GET failure) falls through to the legacy rebuild POST. The backend's canonical-state 409 is an intentional data-preservation guard and should not be removed. Also, the current Flutter API already sanitizes HTTP error bodies, so the reported raw-error screen may be an older or separate web-view caller; that part is not yet reproduced.

    Proposed bounded work: confirm the affected caller, distinguish canonical conflict from a transient failure, stop the deterministic rebuild/retry path there, preserve canonical memory/graph state, and add hermetic regression tests. This is not a full Brain Map redesign. If #12878 already covers it, I will not duplicate that work.

    This investigation is Codex-assisted for @julio23jaz-dotcom. No production/account data was accessed, and no patch or passing-test result is being claimed yet. Please confirm availability, the cash amount and contributor/payment eligibility before I undertake the PR.

  7. aryanorastar commented on Oct 4, 2026

    @aryanorastar
    CollaboratorAuthor

    Featurebase update (Bradley Hanada, Oct 4): the reporter can now open the Memory Graph from Memories and sees a larger map. This is one-account recovery, not evidence that the 409 rebuild/retry path is fixed or deployed; please keep this issue open until that path is retested. The new screenshot also shows a separate owner-like user node and a given-name person node. That presentation/data-identity concern is tracked separately in #20578.

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

    androidbackendbugiosmemorymobilep1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions