You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pit toggle: ride out the stale-helper window after launch instead of failing (#103)
First click on bonita after tron upgrade: 'The pit resolver couldn't start', and the helper log showed the 3.3.0 helper listening with no pit: line at all. The request had reached the OLD 3.2.8 helper, which the launcher replaces in the background a moment after launch; it answered 404 {error:not-found} and the sidebar showed the generic message.
The background now retries /pit/start every 2s for up to 5 attempts while the answer is a 404 or nobody is listening, then reports helper-stale; the sidebar names that case (try again, or quit and relaunch) and shows the error code on the generic fallback. The helper logs unknown routes so a stale-version hit leaves a trace next time. Helper version 3.3.1.
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: apps/desktop/extensions/ai-sidebar/sidepanel.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -337,8 +337,10 @@ async function togglePit() {
337
337
showNetStatus('warn','Couldn’t reach the TronBrowser helper. Restart TronBrowser and try again, or run <code>tron upgrade</code>.');
338
338
}elseif(err==='pit-port-busy'){
339
339
showNetStatus('warn',`Port ${PIT_SOCKS_PORT} on this machine is taken by another program, so the pit resolver couldn’t start.`);
340
+
}elseif(err==='helper-stale'){
341
+
showNetStatus('warn','TronBrowser’s helper is still the older version, which has no pit resolver. It is normally replaced a few seconds after launch — try 🤘 Pit again; if it keeps failing, quit TronBrowser completely and relaunch it.');
340
342
}else{
341
-
showNetStatus('warn','The pit resolver couldn’t start. See <code>~/.tronbrowser/tor-helper.log</code> for the reason.');
343
+
showNetStatus('warn',`The pit resolver couldn’t start (${safeHost(err||'pit-failed')}). See <code>~/.tronbrowser/tor-helper.log</code> for the reason.`);
0 commit comments