diff --git a/app/[locale]/agent/page.tsx b/app/[locale]/agent/page.tsx index 4cc6b5ed..fe79a54c 100644 --- a/app/[locale]/agent/page.tsx +++ b/app/[locale]/agent/page.tsx @@ -30,7 +30,7 @@ export default async function AgentPage({ params }: { params: Promise<{ locale:
{c.subtitle}
{/* fallback は実カードの復元前 (外枠 + 見出し) と同じ形にする — 大きな予約 → 縮む → 伸びる、の 2 回シフトを避ける。 */} -{hashError ? props.c.error : props.c.loading}
: ( + // cookie の持ち主 O とカードの Agent A は別物。O の切替で操作・表示状態も破棄する。 +{c.lead}
:{c.signedInAs} {owner!.slice(0, 6)}…{owner!.slice(-4)}
} +{status}
+ {/* 未接続ではサインインの署名ができない (useSiweSession が wallet_not_connected を投げる) → ボタンではなく接続への案内。 */} + {signedOut ? (isConnected + ? + :{c.connectFirst}
) : null} + {notBound && !verify.isPending && !verify.isError ?{c.notBoundLead}
| {label} | )}||
|---|---|---|
| {txUrl ? {c.viewTx} : null} | +{item.resource.path ?? item.resource.pathTag ?? '—'}{item.resource.host && item.resource.host !== 'open-pay.jp' ? {item.resource.host} : null}{item.resourceOrigin === 'first-party' ? c.originFirstParty : item.resourceOrigin === 'listed' ? c.originListed : c.originClaimed} | +{item.amount} {item.asset}{item.fee !== undefined ? + {item.fee} {c.feeSuffix} : null} | +
{c.empty}
: null} + {result.truncated ?{c.truncated}
: null} +{c.sinceNote}
+{c.caveat}
+ + > + ) : null} + > + ); +} diff --git a/components/agent/AgentTryPrompts.tsx b/components/agent/AgentTryPrompts.tsx index ccaeb989..1853adf6 100644 --- a/components/agent/AgentTryPrompts.tsx +++ b/components/agent/AgentTryPrompts.tsx @@ -4,6 +4,7 @@ import { useState } from 'react'; import { useCopyToClipboard, useHydrationSafeAvailable } from '@/hooks/useCopyToClipboard'; import type { AgentPageContent } from '@/lib/agentPage'; import { trackAgentEvent } from '@/lib/agentTrack'; +import { env } from '@/lib/env'; const tagColors = { free: 'bg-slate-100 text-slate-700', @@ -23,7 +24,7 @@ export function AgentTryPrompts({ locale, c }: { locale: string; c: AgentPageCon{c.lead}