add switching logic
This commit is contained in:
parent
70fb012d63
commit
6b09eb062f
@ -1779,19 +1779,22 @@ class AIQueryInterface {
|
||||
version: data.metadata.version || '1.0',
|
||||
auditEntries: data.auditTrail?.length || 0,
|
||||
toolsCount: data.recommendation.recommended_tools?.length || 0,
|
||||
checksum: data.checksum?.slice(0, 8) + '...' || 'none'
|
||||
checksum: data.checksum?.slice(0, 8) + '...' || 'none',
|
||||
originalMode: data.metadata.mode,
|
||||
currentMode: this.currentMode
|
||||
});
|
||||
|
||||
this.hideResults();
|
||||
this.hideError();
|
||||
this.hideLoading();
|
||||
|
||||
this.displayUploadedResults(data);
|
||||
|
||||
if (data.metadata.mode && data.metadata.mode !== this.currentMode) {
|
||||
console.log(`[AI Interface] Switching from ${this.currentMode} to ${data.metadata.mode} mode for uploaded analysis`);
|
||||
this.setMode(data.metadata.mode);
|
||||
}
|
||||
|
||||
this.displayUploadedResults(data);
|
||||
|
||||
if (data.metadata.userQuery && this.elements.input) {
|
||||
this.elements.input.value = data.metadata.userQuery;
|
||||
this.updateCharacterCount();
|
||||
|
Loading…
x
Reference in New Issue
Block a user