@danhachuel/thunderbolt 0.5.66 → 0.5.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/main.py +4 -9
- package/package.json +1 -1
- package/scripts/cli.mjs +5 -12
package/app/main.py
CHANGED
|
@@ -452,13 +452,9 @@ def _render_notification_toast_cycle() -> None:
|
|
|
452
452
|
_save_notification_toast_seen_ids(seen_ids)
|
|
453
453
|
|
|
454
454
|
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
_render_notification_toast_cycle()
|
|
459
|
-
else:
|
|
460
|
-
def render_global_notification_toasts() -> None:
|
|
461
|
-
_render_notification_toast_cycle()
|
|
455
|
+
def render_global_notification_toasts() -> None:
|
|
456
|
+
"""Render notifications once per app run; never start a background timer."""
|
|
457
|
+
_render_notification_toast_cycle()
|
|
462
458
|
|
|
463
459
|
|
|
464
460
|
def localized_tab_labels(labels: list[str], language: str | None = None) -> list[str]:
|
|
@@ -4630,9 +4626,8 @@ def _render_pipeline_worker_banner(worker_status: dict[str, Any], active_count:
|
|
|
4630
4626
|
st.error(f"Último erro do worker: {worker_status['last_error']}")
|
|
4631
4627
|
|
|
4632
4628
|
|
|
4633
|
-
@st.fragment(run_every=5.0)
|
|
4634
4629
|
def _render_pipeline_progress_live() -> None:
|
|
4635
|
-
"""
|
|
4630
|
+
"""Render pipeline state once; refresh occurs only after user interaction."""
|
|
4636
4631
|
worker_status = load_pipeline_worker_status()
|
|
4637
4632
|
tasks = read_json("tasks.json", [])
|
|
4638
4633
|
active = [task for task in tasks if isinstance(task, dict) and str(task.get("state") or "") == "doing"]
|
package/package.json
CHANGED
package/scripts/cli.mjs
CHANGED
|
@@ -276,18 +276,11 @@ proxy.on("error", (error) => {
|
|
|
276
276
|
proxy.listen(publicPort, "127.0.0.1", () => {
|
|
277
277
|
console.log(`Thunderbolt: interface disponível em http://localhost:${publicPort}/`);
|
|
278
278
|
});
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
}) : null;
|
|
285
|
-
const pipelineWorker = hasPendingPipelineWork() ? spawn(python, ["-m", "hermes_ui.pipeline_worker"], {
|
|
286
|
-
cwd: root,
|
|
287
|
-
stdio: "inherit",
|
|
288
|
-
env: runtimeEnv,
|
|
289
|
-
windowsHide: false,
|
|
290
|
-
}) : null;
|
|
279
|
+
// Workers contínuos só devem ser iniciados explicitamente com `worker` ou
|
|
280
|
+
// `pipeline-worker`; o arranque normal da interface não cria processos Python
|
|
281
|
+
// em background nem faz polling periódico.
|
|
282
|
+
const worker = null;
|
|
283
|
+
const pipelineWorker = null;
|
|
291
284
|
const restartExitCode = 75;
|
|
292
285
|
let shuttingDown = false;
|
|
293
286
|
let child;
|