• exec/chat_llm.js

    From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Thu Oct 29 22:22:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/745720a44f06eafb8f934ab2
    Modified Files:
    exec/chat_llm.js
    Log Message:
    chat_llm: ignore the #anchor when matching a wiki URL to the query

    append_wiki_url_if_missing() only appends a wiki link when a query
    word also appears in the URL. It tokenized the whole URL, #section
    anchor included, and anchors are full of generic how-to words ("step", "adding", "your"). So an off-topic "step on toes" matched howto:dove-net#step_3_adding_your_system and the reply got a DOVE-Net
    link. Match against the page name only; the appended URL still keeps
    its anchor.

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