feat : planner adapt to task failure + temporary remove frontend task panel

This commit is contained in:
martin legrand
2025-04-23 15:51:47 +02:00
parent d01ae7217f
commit 564a09c96d
6 changed files with 143 additions and 35 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ body {
.app-sections {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-columns: 1fr 1fr;
gap: 16px;
height: calc(100vh - 80px);
}
+2 -10
View File
@@ -98,6 +98,7 @@ function App() {
},
]);
setStatus(data.status);
setResponseData(data);
scrollToBottom();
} else {
console.log('Duplicate answer detected, skipping:', data.answer);
@@ -147,12 +148,8 @@ function App() {
const handleGetScreenshot = async () => {
try {
console.log('Fetching screenshot...');
const res = await axios.get('http://0.0.0.0:8000/screenshots/updated_screen.png');
setResponseData((prev) => ({ ...prev, screenshot: res.data.screenshot }));
setCurrentView('screenshot');
} catch (err) {
console.error('Error fetching screenshot:', err);
setError('Browser not in use');
}
};
@@ -164,12 +161,7 @@ function App() {
</header>
<main className="main">
<div className="app-sections">
<div className="task-section">
<h2>Task</h2>
<div className="task-details">
<p className="placeholder">No active task. Start a conversation to create a task.</p>
</div>
</div>
<div className="chat-section">
<h2>Chat Interface</h2>