more better panel stuff and promp

This commit is contained in:
legop3
2026-05-04 02:50:32 -04:00
parent a66a68d7eb
commit 0ea96613b0
6 changed files with 49 additions and 13 deletions
@@ -17,6 +17,17 @@ export default function OverseerControlPanel({ state, onClearHistory, clearingHi
const timings = state.timings || {};
const input = state.input || {};
const errors = state.errors || {};
const renderModelMessages = () => {
const messages = Array.isArray(input.modelMessages) ? input.modelMessages : [];
if (!messages.length) return '<none>';
return messages
.map((msg, idx) => {
const role = String(msg?.role || 'unknown').toUpperCase();
const content = String(msg?.content || '');
return `#${idx + 1} ${role}\n${content}`;
})
.join('\n\n----------------------------------------\n\n');
};
return (
<div className="space-y-0.5">
@@ -55,7 +66,7 @@ export default function OverseerControlPanel({ state, onClearHistory, clearingHi
<details className="surface text-xs text-slate-200" open>
<summary className="cursor-pointer select-none text-slate-300">Exact Model Input (messages[])</summary>
<pre className="mt-0.5 whitespace-pre-wrap break-words text-[0.72rem] text-slate-200">
{JSON.stringify(input.modelMessages || [], null, 2)}
{renderModelMessages()}
</pre>
</details>
@@ -87,6 +98,13 @@ export default function OverseerControlPanel({ state, onClearHistory, clearingHi
</pre>
</details>
<details className="surface text-xs text-slate-200" open>
<summary className="cursor-pointer select-none text-slate-300">Live Tool Calls</summary>
<pre className="mt-0.5 whitespace-pre-wrap break-words text-[0.72rem] text-slate-200">
{JSON.stringify(output.liveToolCalls || [], null, 2)}
</pre>
</details>
<div className="surface text-xs text-slate-200">
<div>Normalized decision: {output.normalized || '--'}</div>
<div>Model input at: {input.modelInputAt ? new Date(input.modelInputAt).toLocaleString() : 'n/a'}</div>