Prevent prompt_no_outputs on pruned worker branch prompts

This commit is contained in:
Robert Wojciechowski
2026-03-02 07:06:17 +00:00
parent dd3fbfadbe
commit 2d5a56a95e
3 changed files with 118 additions and 4 deletions
+6
View File
@@ -602,6 +602,12 @@ export class DistributedUI {
logBtn.style.cssText = BUTTON_STYLES.base + BUTTON_STYLES.workerControl;
logBtn.classList.add("btn--log");
logBtn.title = "View remote worker log";
// Keep disabled workers from showing a log button before state sync.
if (!data.enabled) {
logBtn.classList.add("is-hidden");
logBtn.style.display = "none";
logBtn.disabled = true;
}
controlsWrapper.appendChild(logBtn);
} else {
const controls = this.createWorkerControls(data.id, {