前后端页面同步策略,支持分析模板热编辑以及yaml配置,修改提示词编码,占用符等问题,优化文件扫描
This commit is contained in:
@@ -209,12 +209,16 @@ function startPolling() {
|
||||
loadDataFiles();
|
||||
|
||||
// Update progress bar during analysis
|
||||
// Use rounds.length (actual completed analysis rounds) for display
|
||||
// instead of current_round (which includes non-code rounds like collect_figures)
|
||||
if (data.is_running && data.progress_percentage !== undefined) {
|
||||
updateProgressBar(data.progress_percentage, data.status_message, data.current_round, data.max_rounds);
|
||||
const displayRound = rounds.length || data.current_round || 0;
|
||||
updateProgressBar(data.progress_percentage, data.status_message, displayRound, data.max_rounds);
|
||||
}
|
||||
|
||||
if (!data.is_running && isRunning) {
|
||||
updateProgressBar(100, 'Analysis complete', data.current_round || data.max_rounds, data.max_rounds);
|
||||
const displayRound = rounds.length || data.current_round || data.max_rounds;
|
||||
updateProgressBar(100, 'Analysis complete', displayRound, data.max_rounds);
|
||||
setTimeout(hideProgressBar, 3000);
|
||||
|
||||
setRunningState(false);
|
||||
|
||||
Reference in New Issue
Block a user