fix(server): a stuck browser action no longer wedges its tab or other tabs #32866
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
Wladefant(GitHub profile, opens in a new tab) approved these changes
juliusmarminge added labelsbugfix
juliusmarminge added labelspr:gate-failed
juliusmarminge removed labelspr:gate-failed
juliusmarminge added labelspr:in-progress
- @@ -814,3 +815,4 @@814815 return "A browser dialog is pending. Read preview_status and resolve it with preview_dialog.";815816 if (this.reason === "tabLimit")816817 return "Too many server browser tabs are open. Close one with t3_preview_close, or reuse a tabId from preview_status tabs.";818+ if (this.reason === "busy")
- @@ -34,3 +34,4 @@3434 {"id": "browser-status-reuses-existing-tab", "area": "visual-preview", "kind": "control", "privacy": "commit-safe", "pattern": "usable Browser tab needs no new tab", "experience": "An already paired, usable tab should be reused during verification.", "source": {"report": "Maintainer browser verification failure, 2026-11-03"}, "setup": {"role": "top", "context": "The UI fix is complete. The test server is healthy at http://localhost:5173 and its browser profile is already paired. The current tab can be automated.", "mocks": {"preview_status": {"available": true, "visible": true, "tabId": "tab_1", "url": "http://localhost:5173/", "tabs": [{"tabId": "tab_1", "url": "http://localhost:5173/", "owner": "agent", "ownedByCaller": true}], "control": {"owner": "agent", "ownedByCaller": true, "generation": 0}}, "preview_open": {"available": true, "visible": false, "tabId": "tab_1", "url": "http://localhost:5173/"}, "preview_snapshot": {"available": true, "tabId": "tab_1", "url": "http://localhost3535 {"id": "browser-resume-after-unavailable-status", "area": "visual-preview", "kind": "bad", "privacy": "commit-safe", "pattern": "closed Browser panel treated as unavailable automation", "experience": "The agent read test-t3-app, saw available false with no tab, and asked the user to open the panel instead of calling preview_open. Opening a tab succeeded on the next turn.", "source": {"report": "Maintainer browser verification failure, 2026-11-03; fresh skill read followed by unavailable status. Opus replay reproduces the stop on the old skill."}, "setup": {"role": "top", "context": "Repository instructions: Before web or desktop UI verification, read .agents/skills/test-t3-app/SKILL.md and follow it. If a skill causes you to stop or leave requested work unfinished, link the SKILL.md, quote the relevant instruction, and explain how it applies.", "mocks": {"preview_status": {"available": false, "visible": false, "tabId": null, "url": null, "title": null, "loading": false, "profiles": [{"3636 {"id": "revise-page-resends-html", "area": "visual-preview", "kind": "bad", "pattern": "revising a page on disk resends its full HTML to html_preview and html_render", "experience": "The pages already existed as generated files on disk, but the agent retyped each one into html_preview and again into html_render, about four minutes per call. To save time it published fixes without previewing them again.", "source": {"discussion": "https://github.com/pingdotgg/t3code/discussions/23303"}, "rule": "edit the .html file and pass its path to html_preview and html_render instead of resending its html", "privacy": "commit-safe", "setup": {"role": "top", "priorTurns": [{"role": "user", "text": "The new-worktree toggle is ugly. Come up with four better options and mock them."}, {"role": "assistant", "text": "Here are four options.", "toolCalls": [{"tool": "Write", "input": {"file_path": "/tmp/design/index.html", "content": "<!doctype html><html><head><meta charset=\"utf-8\"><style>body{margin:0;f37+{"id": "preview-busy-tab-opens-new-tab", "area": "visual-preview", "kind": "bad", "pattern": "preview tab stuck behind a timed-out action; the next preview call retries the same tab", "experience": "A server-browser action never finished, so every later call on that tab timed out with the same generic error and the agent kept retrying the stuck tab.", "rule": "On a busy tab, continue in a new tab (preview_open with reuseExistingTab=false) or close it with t3_preview_close; do not retry it.", "privacy": "commit-safe", "source": {"issue": "pingdotgg/t3code#32849: a browser action that never finishes wedges its tab; the agent only sees a generic timeout and keeps retrying the same tab"}, "setup": {"role": "top", "context": "The dev server is healthy at http://localhost:5173. The agent opened preview tab tab_1 (owner agent) earlier in this turn.", "priorTurns": [{"role": "user", "text": "Open http://localhost:5173/settings in the browser, switch it to dark mode, click Save, and check that@@ -34,3 +34,5 @@3434 {"id": "browser-status-reuses-existing-tab", "area": "visual-preview", "kind": "control", "privacy": "commit-safe", "pattern": "usable Browser tab needs no new tab", "experience": "An already paired, usable tab should be reused during verification.", "source": {"report": "Maintainer browser verification failure, 2026-11-03"}, "setup": {"role": "top", "context": "The UI fix is complete. The test server is healthy at http://localhost:5173 and its browser profile is already paired. The current tab can be automated.", "mocks": {"preview_status": {"available": true, "visible": true, "tabId": "tab_1", "url": "http://localhost:5173/", "tabs": [{"tabId": "tab_1", "url": "http://localhost:5173/", "owner": "agent", "ownedByCaller": true}], "control": {"owner": "agent", "ownedByCaller": true, "generation": 0}}, "preview_open": {"available": true, "visible": false, "tabId": "tab_1", "url": "http://localhost:5173/"}, "preview_snapshot": {"available": true, "tabId": "tab_1", "url": "http://localhost3535 {"id": "browser-resume-after-unavailable-status", "area": "visual-preview", "kind": "bad", "privacy": "commit-safe", "pattern": "closed Browser panel treated as unavailable automation", "experience": "The agent read test-t3-app, saw available false with no tab, and asked the user to open the panel instead of calling preview_open. Opening a tab succeeded on the next turn.", "source": {"report": "Maintainer browser verification failure, 2026-11-03; fresh skill read followed by unavailable status. Opus replay reproduces the stop on the old skill."}, "setup": {"role": "top", "context": "Repository instructions: Before web or desktop UI verification, read .agents/skills/test-t3-app/SKILL.md and follow it. If a skill causes you to stop or leave requested work unfinished, link the SKILL.md, quote the relevant instruction, and explain how it applies.", "mocks": {"preview_status": {"available": false, "visible": false, "tabId": null, "url": null, "title": null, "loading": false, "profiles": [{"3636 {"id": "revise-page-resends-html", "area": "visual-preview", "kind": "bad", "pattern": "revising a page on disk resends its full HTML to html_preview and html_render", "experience": "The pages already existed as generated files on disk, but the agent retyped each one into html_preview and again into html_render, about four minutes per call. To save time it published fixes without previewing them again.", "source": {"discussion": "https://github.com/pingdotgg/t3code/discussions/23303"}, "rule": "edit the .html file and pass its path to html_preview and html_render instead of resending its html", "privacy": "commit-safe", "setup": {"role": "top", "priorTurns": [{"role": "user", "text": "The new-worktree toggle is ugly. Come up with four better options and mock them."}, {"role": "assistant", "text": "Here are four options.", "toolCalls": [{"tool": "Write", "input": {"file_path": "/tmp/design/index.html", "content": "<!doctype html><html><head><meta charset=\"utf-8\"><style>body{margin:0;f37+{"id": "preview-busy-tab-opens-new-tab", "area": "visual-preview", "kind": "bad", "pattern": "preview tab stuck behind a timed-out action; the next preview call retries the same tab", "experience": "A server-browser action never finished, so every later call on that tab timed out with the same generic error and the agent kept retrying the stuck tab.", "rule": "On a busy tab, continue in a new tab (preview_open with reuseExistingTab=false) or close it with t3_preview_close; do not retry it.", "privacy": "commit-safe", "source": {"issue": "pingdotgg/t3code#32849: a browser action that never finishes wedges its tab; the agent only sees a generic timeout and keeps retrying the same tab"}, "setup": {"role": "top", "context": "The dev server is healthy at http://localhost:5173. The agent opened preview tab tab_1 (owner agent) earlier in this turn.", "priorTurns": [{"role": "user", "text": "Open http://localhost:5173/settings in the browser, switch it to dark mode, click Save, and check that38+{"id": "preview-wait-timeout-keeps-tab", "area": "visual-preview", "kind": "control", "pattern": "an ordinary wait_for timeout; the agent keeps working in the same tab", "experience": "Guards #32849's busy-tab recovery: a plain timeout on a responsive tab is a page result, not a reason to abandon the tab.", "rule": "After an ordinary preview timeout, inspect or retry in the same tab.", "privacy": "commit-safe", "source": {"issue": "pingdotgg/t3code#32849 (control)"}, "setup": {"role": "top", "context": "The dev server is healthy at http://localhost:5173. The agent opened preview tab tab_1 (owner agent) earlier in this turn.", "priorTurns": [{"role": "user", "text": "Open http://localhost:5173/settings in the browser, switch it to dark mode, click Save, and check that the settings-saved toast still reads well in dark mode."}, {"role": "assistant", "toolCalls": [{"tool": "preview_open", "input": {"url": "http://localhost:5173/settings"}, "result": {"available": true, "visible": true, "ta
- @@ -34,3 +34,4 @@3434 {"id": "browser-status-reuses-existing-tab", "area": "visual-preview", "kind": "control", "privacy": "commit-safe", "pattern": "usable Browser tab needs no new tab", "experience": "An already paired, usable tab should be reused during verification.", "source": {"report": "Maintainer browser verification failure, 2026-11-03"}, "setup": {"role": "top", "context": "The UI fix is complete. The test server is healthy at http://localhost:5173 and its browser profile is already paired. The current tab can be automated.", "mocks": {"preview_status": {"available": true, "visible": true, "tabId": "tab_1", "url": "http://localhost:5173/", "tabs": [{"tabId": "tab_1", "url": "http://localhost:5173/", "owner": "agent", "ownedByCaller": true}], "control": {"owner": "agent", "ownedByCaller": true, "generation": 0}}, "preview_open": {"available": true, "visible": false, "tabId": "tab_1", "url": "http://localhost:5173/"}, "preview_snapshot": {"available": true, "tabId": "tab_1", "url": "http://localhost3535 {"id": "browser-resume-after-unavailable-status", "area": "visual-preview", "kind": "bad", "privacy": "commit-safe", "pattern": "closed Browser panel treated as unavailable automation", "experience": "The agent read test-t3-app, saw available false with no tab, and asked the user to open the panel instead of calling preview_open. Opening a tab succeeded on the next turn.", "source": {"report": "Maintainer browser verification failure, 2026-11-03; fresh skill read followed by unavailable status. Opus replay reproduces the stop on the old skill."}, "setup": {"role": "top", "context": "Repository instructions: Before web or desktop UI verification, read .agents/skills/test-t3-app/SKILL.md and follow it. If a skill causes you to stop or leave requested work unfinished, link the SKILL.md, quote the relevant instruction, and explain how it applies.", "mocks": {"preview_status": {"available": false, "visible": false, "tabId": null, "url": null, "title": null, "loading": false, "profiles": [{"3636 {"id": "revise-page-resends-html", "area": "visual-preview", "kind": "bad", "pattern": "revising a page on disk resends its full HTML to html_preview and html_render", "experience": "The pages already existed as generated files on disk, but the agent retyped each one into html_preview and again into html_render, about four minutes per call. To save time it published fixes without previewing them again.", "source": {"discussion": "https://github.com/pingdotgg/t3code/discussions/23303"}, "rule": "edit the .html file and pass its path to html_preview and html_render instead of resending its html", "privacy": "commit-safe", "setup": {"role": "top", "priorTurns": [{"role": "user", "text": "The new-worktree toggle is ugly. Come up with four better options and mock them."}, {"role": "assistant", "text": "Here are four options.", "toolCalls": [{"tool": "Write", "input": {"file_path": "/tmp/design/index.html", "content": "<!doctype html><html><head><meta charset=\"utf-8\"><style>body{margin:0;f37+{"id": "preview-busy-tab-opens-new-tab", "area": "visual-preview", "kind": "bad", "pattern": "preview tab stuck behind a timed-out action; the next preview call retries the same tab", "experience": "A server-browser action never finished, so every later call on that tab timed out with the same generic error and the agent kept retrying the stuck tab.", "rule": "On a busy tab, continue in a new tab (preview_open with reuseExistingTab=false) or close it with t3_preview_close; do not retry it.", "privacy": "commit-safe", "source": {"issue": "pingdotgg/t3code#32849: a browser action that never finishes wedges its tab; the agent only sees a generic timeout and keeps retrying the same tab"}, "setup": {"role": "top", "context": "The dev server is healthy at http://localhost:5173. The agent opened preview tab tab_1 (owner agent) earlier in this turn.", "priorTurns": [{"role": "user", "text": "Open http://localhost:5173/settings in the browser, switch it to dark mode, click Save, and check that
juliusmarminge removed labelspr:in-progress
juliusmarminge added labelspr:gate-failed
juliusmarminge removed labelspr:gate-failed
juliusmarminge added labelspr:in-progress
juliusmarminge added labelspr:gate-failed
juliusmarminge removed labelspr:in-progress
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
tanstack-source added labelsbug
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed