mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-15 17:12:59 -04:00
okay render tools above messages.. yay
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user