• exec/chat_llm_irc.js

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sun Jun 21 00:59:50 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/e46fe0a6e953b0563203af59
    Modified Files:
    exec/chat_llm_irc.js
    Log Message:
    chat_llm_irc: disable SpiderMonkey branch-limit in the bot main loop

    js.branch_limit (alias of js.time_limit) caps the cumulative operation- callback count over the JS runtime's whole life. A long-lived daemon that polls in a while-loop for days inevitably reaches it, at which point jsexec sets js.terminated and the bot exits; the launcher relaunches it, producing
    the periodic 'guru dropped and rejoined' churn on IRC.

    Set js.branch_limit = 0 (disabled) at the top of main_loop(). This loop is
    not a runaway: it blocks on sock.poll() with a timeout and leaves promptly on js.terminated or the .stop semfile, so real shutdown still works.

    Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net