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-title" content="Roomba Rover" />
<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">
</head>
<body>
@@ -69,7 +69,7 @@ function createChatBridgeHandlers(deps) {
const toolsBlock = formatToolCallsCodeBlock(toolCalls);
let text = baseText;
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.trim()) return;
@@ -161,11 +161,6 @@ export default function ChatMessageRow({ message }) {
{formatTime(message.ts)}
</span>
</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 ? (
<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) => {
@@ -181,6 +176,11 @@ export default function ChatMessageRow({ message }) {
})}
</div>
) : 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>
);
}