okay render tools above messages.. yay

This commit is contained in:
legop3
2026-05-19 17:59:45 -04:00
parent b8d00e063f
commit 4d179b4372
4 changed files with 8 additions and 8 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -11,7 +11,7 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="Roomba Rover" /> <meta name="apple-mobile-web-app-title" content="Roomba Rover" />
<title>Roomba Rover</title> <title>Roomba Rover</title>
<script type="module" crossorigin src="/assets/index-DCMWdA-v.js"></script> <script type="module" crossorigin src="/assets/index-ClGCoQVl.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DSJcZoco.css"> <link rel="stylesheet" crossorigin href="/assets/index-DSJcZoco.css">
</head> </head>
<body> <body>
@@ -69,7 +69,7 @@ function createChatBridgeHandlers(deps) {
const toolsBlock = formatToolCallsCodeBlock(toolCalls); const toolsBlock = formatToolCallsCodeBlock(toolCalls);
let text = baseText; let text = baseText;
if (toolsBlock) { if (toolsBlock) {
text = text ? `${text}\n\n${toolsBlock}` : `Overseer ran tools (no chat line).\n\n${toolsBlock}`; text = text ? `${text}\n\n${toolsBlock}` : `${toolsBlock}`;
} }
if (text.length > 1900) text = `${text.slice(0, 1897)}...`; if (text.length > 1900) text = `${text.slice(0, 1897)}...`;
if (!text.trim()) return; if (!text.trim()) return;
@@ -161,11 +161,6 @@ export default function ChatMessageRow({ message }) {
{formatTime(message.ts)} {formatTime(message.ts)}
</span> </span>
</div> </div>
{hasText ? (
<div className={`w-full break-words leading-tight whitespace-pre-wrap ${isBot ? 'text-emerald-100' : 'text-slate-100'}`}>
{message.text}
</div>
) : null}
{open && toolCalls.length > 0 ? ( {open && toolCalls.length > 0 ? (
<div className="w-full rounded border border-slate-700/70 bg-slate-900/70 p-0.5 text-[0.68rem] text-slate-200"> <div className="w-full rounded border border-slate-700/70 bg-slate-900/70 p-0.5 text-[0.68rem] text-slate-200">
{toolCalls.map((entry, idx) => { {toolCalls.map((entry, idx) => {
@@ -181,6 +176,11 @@ export default function ChatMessageRow({ message }) {
})} })}
</div> </div>
) : null} ) : null}
{hasText ? (
<div className={`w-full break-words leading-tight whitespace-pre-wrap ${isBot ? 'text-emerald-100' : 'text-slate-100'}`}>
{message.text}
</div>
) : null}
</div> </div>
); );
} }