diff --git a/web/src/App.tsx b/web/src/App.tsx index 70761155..8e4d412b 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -558,6 +558,7 @@ function StatCard({ // Decision Card Component with CoT Trace - Binance Style function DecisionCard({ decision, language }: { decision: DecisionRecord; language: Language }) { + const [showInputPrompt, setShowInputPrompt] = useState(false); const [showCoT, setShowCoT] = useState(false); return ( @@ -581,6 +582,25 @@ function DecisionCard({ decision, language }: { decision: DecisionRecord; langua + {/* Input Prompt - Collapsible */} + {decision.input_prompt && ( +
+ + {showInputPrompt && ( +
+ {decision.input_prompt} +
+ )} +
+ )} + {/* AI Chain of Thought - Collapsible */} {decision.cot_trace && (
diff --git a/web/src/types.ts b/web/src/types.ts index c61eca80..fbc224bc 100644 --- a/web/src/types.ts +++ b/web/src/types.ts @@ -64,6 +64,7 @@ export interface AccountSnapshot { export interface DecisionRecord { timestamp: string; cycle_number: number; + input_prompt: string; cot_trace: string; decision_json: string; account_state: AccountSnapshot; diff --git a/web/src/types/index.ts b/web/src/types/index.ts index 94e59e9f..6e648e2f 100644 --- a/web/src/types/index.ts +++ b/web/src/types/index.ts @@ -56,6 +56,7 @@ export interface DecisionAction { export interface DecisionRecord { timestamp: string; cycle_number: number; + input_prompt: string; cot_trace: string; decision_json: string; account_state: {