The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(5805): withhold the raw message, unblock relay, format\n\nThree review points.\n\n**Do not log the raw classified message** (CodeRabbit, security). The\nclassifier accepts the sentinel anywhere in the string so the demotion\nsurvives context wrapping — which means everything around the sentinel\nis arbitrary caller-supplied text, and a wrapper is exactly where an id,\na path or a pasted value ends up. The permissive matcher is the right\ntrade for correctness; a careful log is the other half of it. The only\npart of the body this arm can vouch for is the sentinel, and that is a\nconstant, so nothing diagnostic is lost: `domain` and `operation` still\ncarry the correlation. Same reasoning as the param-validation skip in\njsonrpc.rs, which redacts because its messages embed caller-supplied\nparam names.\n\n**Start the wallet-independent relay request immediately** (Codex P2).\nAwaiting the wallet probe before building the pair delayed `relayInfo()`\nbehind it, which defeats the reason the two are settled separately.\nRelay is now fired before anything is awaited, in both callers — the\ndiscover panel had the same shape and is fixed with it.\n\n**Prettier.** Three files were hand-formatted and disagreed with the\nformatter; that is what turned the Frontend Checks lane red.\n\nRefs tinyhumansai/openhuman#5805\n
M3gA-Mind32cdd6e693db
diff --git a/app/src/components/intelligence/TinyPlaceOrchestrationTab.tsx b/app/src/components/intelligence/TinyPlaceOrchestrationTab.tsxindex 6861fb6a4d..75407f9b66 100644--- a/app/src/components/intelligence/TinyPlaceOrchestrationTab.tsx+++ b/app/src/components/intelligence/TinyPlaceOrchestrationTab.tsx@@ -136,12 +136,15 @@ export default function TinyPlaceOrchestrationTab() {// either way — preserving the "one failure never hides the other" property// above. Only a positive `no` skips; `unknown` falls through and the core// boundary classifier handles anything that follows.- const skipIdentity = (await resolveWalletConfigured()) === 'no';- const [identityResult, relayResult] = await Promise.allSettled([- // `null` marks "not asked", which is distinct from "asked and failed".- skipIdentity ? Promise.resolve(null) : orchestrationClient.selfIdentity(),- orchestrationClient.relayInfo(),- ]);+ // Fire the wallet-independent read FIRST, before awaiting anything: relay+ // must not be delayed by the wallet probe, which is the whole reason the+ // two are settled separately. `null` marks "not asked", which is distinct+ // from "asked and failed".+ const relayPromise = orchestrationClient.relayInfo();+ const identityPromise = resolveWalletConfigured().then(configured =>+ configured === 'no' ? null : orchestrationClient.selfIdentity()+ );+ const [identityResult, relayResult] = await Promise.allSettled([identityPromise, relayPromise]);if (!mountedRef.current) return;if (identityResult.status === 'fulfilled') {const identity = identityResult.value;diff --git a/app/src/components/orchestration/DiscoverPanel.tsx b/app/src/components/orchestration/DiscoverPanel.tsxindex 095fe784b7..dac6c1859e 100644--- a/app/src/components/orchestration/DiscoverPanel.tsx+++ b/app/src/components/orchestration/DiscoverPanel.tsx@@ -39,23 +39,20 @@ export default function DiscoverPanel() {// travels as an Err and lands as an error-level report (#5805). Ask// wallet_status, which answers the same question without erroring, and skip// only on a positive `no`. relayInfo() needs no wallet and always runs.- void resolveWalletConfigured()- .then(configured =>- Promise.allSettled([- configured === 'no'- ? Promise.resolve(null)- : orchestrationClient.selfIdentity(),- orchestrationClient.relayInfo(),- ])- )- .then(([id, rel]) => {- if (cancelled) return;- // `null` is the skipped case — leave `identity` null, exactly as a- // failed fetch would, so the render path is unchanged.- if (id.status === 'fulfilled' && id.value !== null) setIdentity(id.value);- if (rel.status === 'fulfilled') setRelay(rel.value);- setIdentityLoading(false);- });+ // Fire the wallet-independent read FIRST so relay is never delayed by the+ // wallet probe.+ const relayPromise = orchestrationClient.relayInfo();+ const identityPromise = resolveWalletConfigured().then(configured =>+ configured === 'no' ? null : orchestrationClient.selfIdentity()+ );+ void Promise.allSettled([identityPromise, relayPromise]).then(([id, rel]) => {+ if (cancelled) return;+ // `null` is the skipped case — leave `identity` null, exactly as a+ // failed fetch would, so the render path is unchanged.+ if (id.status === 'fulfilled' && id.value !== null) setIdentity(id.value);+ if (rel.status === 'fulfilled') setRelay(rel.value);+ setIdentityLoading(false);+ });return () => {cancelled = true;};diff --git a/app/src/hooks/useTinyPlaceIdentity.test.ts b/app/src/hooks/useTinyPlaceIdentity.test.tsindex b77aedb449..b8c2bbe503 100644--- a/app/src/hooks/useTinyPlaceIdentity.test.ts+++ b/app/src/hooks/useTinyPlaceIdentity.test.ts@@ -13,9 +13,7 @@ vi.mock('../lib/orchestration/orchestrationClient', () => ({// `wallet_status` RPC failing into the `unknown` fall-through; `beforeEach`// defaults it to a configured wallet, which is the path they were written for.const fetchWalletStatus = vi.fn();-vi.mock('../services/walletApi', () => ({- fetchWalletStatus: () => fetchWalletStatus(),-}));+vi.mock('../services/walletApi', () => ({ fetchWalletStatus: () => fetchWalletStatus() }));describe('useTinyPlaceIdentity (#5424)', () => {beforeEach(() => {diff --git a/app/src/hooks/useTinyPlaceIdentity.ts b/app/src/hooks/useTinyPlaceIdentity.tsindex f2c7ec02c9..67851c58f9 100644--- a/app/src/hooks/useTinyPlaceIdentity.ts+++ b/app/src/hooks/useTinyPlaceIdentity.ts@@ -25,7 +25,6 @@import { useEffect, useState } from 'react';import { orchestrationClient } from '../lib/orchestration/orchestrationClient';-import { resolveWalletConfigured } from './useWalletConfigured';export interface TinyPlaceIdentityState {diff --git a/src/core/observability.rs b/src/core/observability.rsindex 7f4d59a323..436e7c3ed2 100644--- a/src/core/observability.rs+++ b/src/core/observability.rs@@ -2144,12 +2144,29 @@ fn report_expected_message(kind: ExpectedErrorKind, message: &str, domain: &str,// core-side change makes the call succeed — so demote to info: the// breadcrumb survives for correlation, no error event fires.// See `ExpectedErrorKind::WalletNotConfigured` (#5805).+ //+ // The raw message is deliberately NOT logged, and that follows from+ // how this kind is matched. The classifier accepts the sentinel+ // anywhere in the string so the demotion survives context wrapping —+ // which means everything *around* the sentinel is arbitrary+ // caller-supplied text. Today's wrappers are tame (`self_identity+ // key_status: …`), but nothing constrains a future one, and a+ // wrapper is exactly where an id, a path or a pasted value ends up.+ // The permissive matcher is the right trade for correctness; paying+ // for it with a careful log is the other half of that trade.+ //+ // Nothing is lost: the only part of the body this arm can vouch for+ // is the sentinel itself, and it is a constant. `domain` and+ // `operation` carry the correlation, which is what a breadcrumb is+ // for. Same reasoning as the param-validation skip in+ // `jsonrpc.rs`, which redacts because its messages embed+ // caller-supplied param names.tracing::info!(domain = domain,operation = operation,kind = "wallet_not_configured",- error = %message,- "[observability] {domain}.{operation} skipped expected wallet-not-configured error: {message}"+ "[observability] {domain}.{operation} skipped expected wallet-not-configured \+ error (message withheld: the wrapper around the sentinel is caller-supplied)");}ExpectedErrorKind::MemoryIdentifierRejected => {