The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(machine): machine.facts no longer sends the account's full name
alt-glitche4d4877b8792
diff --git a/tests/tui_gateway/test_machine_facts_rpc.py b/tests/tui_gateway/test_machine_facts_rpc.pyindex 49f021d9b40..7ac48f260f0 100644--- a/tests/tui_gateway/test_machine_facts_rpc.py+++ b/tests/tui_gateway/test_machine_facts_rpc.py@@ -32,7 +32,7 @@ def test_machine_facts_over_the_wire(n1x):assert result["nvidia_platform"] == "rtx_spark"assert result["machine_kind"] == "Spark"assert result["has_nvidia_gpu"] is False- assert result["full_name"] == "Ada Lovelace"+ assert "full_name" not in resultassert result["machine"]["native_arch"] == "arm64"assert result["machine"]["ram_gb"] == 128diff --git a/tui_gateway/contracts/machine.py b/tui_gateway/contracts/machine.pyindex 5643d021ee1..7a6104016ed 100644--- a/tui_gateway/contracts/machine.py+++ b/tui_gateway/contracts/machine.py@@ -28,15 +28,14 @@ class MachineInfo(Result):class MachineFactsResult(Result):"""``machine_kind`` is ``Spark``, ``Mac``, ``PC`` or ``computer``. ``nvidia_platform`` is- ``products.nvidia_platform()``: ``rtx_spark``, ``dgx_spark``, ``discrete`` or null. ``full_name`` is the OS account's- real name (never a login handle) and ``locale`` its first UI language; each is null when the OS has none."""+ ``products.nvidia_platform()``: ``rtx_spark``, ``dgx_spark``, ``discrete`` or null. ``locale`` is the OS+ account's first UI language, null when the OS has none."""machine: MachineInfomachine_kind: strhas_nvidia_gpu: boolnvidia_platform: NvidiaPlatform | None = Nonelocale: str | None = None- full_name: str | None = Nonemethod("machine.facts", params=Params, result=MachineFactsResult,diff --git a/tui_gateway/methods_machine.py b/tui_gateway/methods_machine.pyindex 9dc46fa264d..ee5062896fb 100644--- a/tui_gateway/methods_machine.py+++ b/tui_gateway/methods_machine.py@@ -15,7 +15,8 @@ method = _registry.method@method("machine.facts")def _(rid, params: dict) -> dict:from hermes_platform.host.summary import summary- return _ok(rid, summary())+ # The account's name reaches the desktop only on the onboarding name card.+ return _ok(rid, {key: value for key, value in summary().items() if key != "full_name"})def register(server) -> None: