Skip to content

Missing legacy alias for health_snapshot RPC method #2852

@graycyrus

Description

@graycyrus

Summary

Client calls health_snapshot (without the openhuman. prefix) and gets "unknown method" error. Needs a legacy alias.

Problem

What happened: An older client/bundle calls the RPC method health_snapshot instead of openhuman.health_snapshot. The dispatch layer doesn't recognize it and returns "unknown method".

Expected: The legacy aliases table in src/core/legacy_aliases.rs should map health_snapshotopenhuman.health_snapshot.

Impact: 1 event in Sentry (CORE-RUST-FG), Linux Oracle user.

Version / Platform: openhuman@0.56.0, Linux 6.8.0-1047-oracle, rustc 1.93.0

Solution

Add health_snapshotopenhuman.health_snapshot to the LEGACY_ALIASES table in src/core/legacy_aliases.rs. Same pattern as PR #2803 which added MCP aliases.

Acceptance criteria

  • Repro gonehealth_snapshot resolves to openhuman.health_snapshot via the alias table.
  • Regression safety — Unit test for the new alias.
  • Diff coverage >= 80%

Related

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions