- Optimisation and streamlining of messages in ExecutionProgressTracker (ept)

- Adaptation of ProgressTracker to handle these optimised messages
- Hardening SSE-streaming in eveai_chat_client
This commit is contained in:
Josako
2025-10-03 08:58:44 +02:00
parent 79a3f94ac2
commit 5465dae52f
5 changed files with 40 additions and 13 deletions

View File

@@ -240,15 +240,15 @@ export default {
const data = JSON.parse(event.data);
console.log('Progress update:', data);
// Check voor processing_type om te bepalen welke handler te gebruiken
if (data.processing_type === 'EveAI Specialist Complete') {
// Check voor processing_type om te bepalen welke handler te gebruiken (ondersteun legacy en genormaliseerde waarden)
if (data.processing_type === 'EveAI Specialist Complete' || data.processing_type === 'EVEAI_COMPLETE') {
console.log('Detected specialist complete via processing_type');
this.handleSpecialistComplete(event);
return;
}
// Check voor andere completion statuses en errors
if (data.processing_type === 'EveAI Specialist Error')
if (data.processing_type === 'EveAI Specialist Error' || data.processing_type === 'EVEAI_ERROR')
{
console.log('Detected specialist error via processing_type or status');
this.handleSpecialistError(event);

View File

@@ -301,7 +301,8 @@ def task_progress_stream(task_id):
mimetype='text/event-stream',
headers={
'Cache-Control': 'no-cache',
'X-Accel-Buffering': 'no'
'X-Accel-Buffering': 'no',
'Connection': 'keep-alive'
}
)
except Exception as e: