Skip to content

fix(app): label the memory graph's own node in the app language - #20451

Merged
kodjima33 merged 2 commits into
BasedHardware:mainfrom
chicoenmascarado:fix/graph-user-node-localized
Oct 3, 2026
Merged

kodjima33 merged 2 commits into
BasedHardware:mainfrom
chicoenmascarado:fix/graph-user-node-localized

Conversation

@chicoenmascarado

@chicoenmascarado chicoenmascarado commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #19246.

What

With no given name set, the knowledge graph (Memories page and the onboarding step that embeds it) labelled the user's own node with a hardcoded English 'Me' in all 49 locales. It now falls back to the existing localized you string, so Spanish shows Tú, German Sie, and so on. A set given name is still used, trimmed.

The backend's English me / the user labels still identify the user node, so graph merging is unchanged. Only the displayed label changes.

Verification

  • flutter test test/widgets/memory_graph_empty_state_test.dart: 6 passed. Two new cases cover the localized fallback (es / de / en) and a given name.
  • flutter analyze on both changed files: no new issues. The two remaining infos are pre-existing shareXFiles deprecations.
  • python3 .github/scripts/pr_preflight.py --lane local --base upstream/main: all checks pass.

Product invariants affected

  • INV-MEM-1: touched only because app/lib/pages/memories/ is under its paths. This change alters the display label of the graph's user node. It does not touch memory tiers, collections or access.

Failure class (fixes)

Failure-Class: none

This is a pre-existing hardcoded literal. New ones in changed app/lib files are already rejected by the INV-UI-3 mobile-ux-contract ratchet, so no new class or guard is needed.

Review in cubic

With no given name set, the knowledge graph labelled the user's node with a
hardcoded English 'Me' in every locale (memories page and the onboarding
step that embeds it). Fall back to the existing localized 'you' string
instead ('Tú', 'Sie', ...). The backend's English 'me' / 'the user' labels
still identify the user node, so graph merging is unchanged.

Fixes BasedHardware#19246

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015S9js5tD3f2MwYtP3zj8GY

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 3 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Review follow-up: the localized 'you' fallback was also added to the labels
that identify the user's node, so with no given name a concept node reading
e.g. 'tú' would merge into it. Match only the backend's 'me' / 'the user'
labels and a set given name, as before; the fallback is display-only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015S9js5tD3f2MwYtP3zj8GY
@chicoenmascarado

Copy link
Copy Markdown
Contributor Author

Good catch, fixed in 7aaf137: the localized fallback is now display-only; only the backend labels and a set given name identify the user node. Added a test.

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed hardcoded 'Me' label still present on main. Small scoped fix, real issue #19246 (non-farmed filer), tests added. Confidence 5/5.

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.

Knowledge graph: the user's own node is labelled 'Me' in every language

3 participants