Commit graph

214 commits

Author SHA1 Message Date
889c02fccb
chat: lazy-render reasoning_content into a collapsible thinking block
Qwen3.x / Deepseek-R1 / o1 stream model thinking via
delta.reasoning_content during SSE; the final answer arrives later via
delta.content. Previously chat.js parsed only delta.content, so any
thinking time appeared to the user as a long empty pause followed by a
sudden answer.

Both generator functions (sendMessage, sendMessageWithCustomHistory)
gain an opts.onThinking(text) callback that fires only when the server
actually streams reasoning_content. Backward compatible: existing
callers ignore the option, see no behaviour change.

handleUserInput now passes an onThinking callback that lazy-creates a
<details class="chat-thinking"> block above the answer span on the
first reasoning delta. When the first content delta arrives, the
thinking block auto-collapses into a "thinking (click to expand)"
summary so the answer is the visible focus.

If a response never thinks (thinking off, simple prompt, etc.), no
thinking DOM element is ever created — no visual artefact at all.

Existing enable_thinking:false request bodies kept for now; this change
is rendering-only and activates automatically the moment any caller
flips thinking on.
2026-05-25 14:49:33 -04:00
a7f71b5a8b
tts: dropdown voice picker, sticky Play footer, default voice foxhop 2026-05-25 08:17:32 -04:00
535f4ce027
text-to-speech.html: F5-TTS is the live engine, not Qwen3-TTS
Updates marketing copy to reflect actual production state: F5-TTS replaced
Qwen3-TTS as the default engine after head-to-head benchmarking showed
faster inference and cleaner clones on the same reference clips. Engine
count goes from 5 to 6 (F5-TTS additive). Qwen3-TTS remains wired up but
marked Self-host. Updates Makefile snippets to F5 targets, and the sidebar
nav now links F5-TTS at the top of the engine list.
2026-05-25 06:57:40 -04:00
bbfeff4b60
text-to-speech.html: announce voice 42 (foxhop, self-recorded)
Adds a third demo block for the self-recorded voice 42 alongside aria
and atlas. Updates the "what's live" copy to acknowledge that 41 voices
come from LibriSpeech public-domain and 1 is the operator's own voice.
Slot 41 left intentionally empty as a Hitchhiker tribute.
2026-05-25 06:29:47 -04:00
cbc4596315
tts: raise chunk caps to 500/2500 (sidecar phantom fix landed, single-chunk MSE streaming back) 2026-05-24 13:34:16 -04:00
0c024fa899
tts: complete clara->atlas remap in normalizeModelVoice fallback 2026-05-24 11:50:37 -04:00
ddc895de4c
tts: switch default voice clara -> atlas (clean male voice per transcription test) 2026-05-24 11:50:18 -04:00
378662b62f
tts: switch default voice aria -> clara (aria has loud F5 phantom bleed) 2026-05-24 11:14:53 -04:00
ad3568ff3c
tts: cap chunks at 120 chars to prevent F5 internal-chunking ref_audio bleed 2026-05-24 10:56:22 -04:00
7a5f545c00
tts: trim leading silence per chunk via Web Audio decode to skip F5 phantom-phoneme artifacts 2026-05-24 10:32:43 -04:00
075db9154a
tts: punctuate unbounded chunks, strip URLs and paths, log chunk text 2026-05-24 10:20:52 -04:00
29c400bdb4
tts: hotfix qwen 503s and primer noise (5 stale defaults, AudioContext primer, normalizeModelVoice) 2026-05-24 10:16:37 -04:00
9e36a1b6c2
tts: harden Safari freeze paths (#003) with timeouts, audio priming, defensive guards 2026-05-24 10:08:15 -04:00
d8949d0b6c
tts: ship F5 backend by default with pipelined playlist streaming 2026-05-24 10:03:50 -04:00
2834e990bd
rag: rank cross-page context by BM25 relevance, drop unrelated pages 2026-05-22 06:31:41 -04:00
21edbe7d81
translate: add open-in-tab button, move controls above preview, fix blob lifetime 2026-05-21 21:26:38 -04:00
bd30ee1fab
chat: disable Qwen3 thinking via chat_template_kwargs (8x faster) 2026-05-21 21:26:37 -04:00
1099535827
syntax error
modified:   public/src/config.js
2026-05-04 15:23:41 -04:00
f5b9244747
disable thinking by default.
modified:   CLAUDE.md
	modified:   public/src/chat.js
	modified:   public/src/config.js
2026-05-04 15:12:47 -04:00
3a1d4cde52 skip TTS endpoint fetch when TTS is disabled 2026-03-28 12:38:58 -04:00
d55d84655e bump firefox zip to 4.2.1 2026-03-19 18:45:58 -04:00
6da9a9f597 rebuild all extension zips with unminified bundle, update size labels 2026-03-19 18:44:30 -04:00
e2d84178c7 disable bundle minification for AMO compliance, update firefox zip 2026-03-19 18:41:16 -04:00
30fe5f3120 update Firefox extension zip: add data_collection_permissions, bump to 4.2.0 2026-03-19 18:08:57 -04:00
ca4eac93ce bump browser toys release link to v4.2.0 2026-03-19 17:19:54 -04:00
3b8b7eb640 add Firefox Add-ons marketplace link, collapse manual install into details 2026-03-19 15:49:15 -04:00
5596565759 gate TTS buttons on isTTSEnabled(), update deploy policy in CLAUDE.md 2026-03-17 07:05:40 -04:00
00ef650b0e Replace translate preview popup with inline iframe
Firefox (and other browsers) block window.open popups from the
translate modal. Render translated HTML in an iframe via blob URL
instead. Fix translate modal header layout by removing negative
margin hack, use proper article padding structure. Add CSS for
iframe preview and raw HTML toggle.
2026-03-14 11:46:35 -04:00
dfc1cb2a36 add Reverse RAG whitepaper PDF with full keyword slug, link GitLab source repo 2026-03-07 20:06:53 -05:00
377f245e0d fix vault gate display cleanup, add GitLab source link to Reverse RAG whitepaper 2026-03-07 20:06:16 -05:00
93258f3ae8 remove greeting from system prompts: introduce material directly instead of welcoming users 2026-03-04 16:41:48 -05:00
6d867260a6 add sprint mode, bundle-extension scripts, fix context bloat in DOM extraction 2026-03-03 18:49:08 -05:00
cd6a432e3f fix page styles bleeding into chatbot input (#013): CSS isolation for form elements 2026-03-03 18:26:37 -05:00
a0a2327af6 implement reverse RAG, journey-aware greetings, vault viewer, crawl mode, unfirehose sharing (#004-#012) 2026-03-03 17:46:55 -05:00
b76c902c07 replace all flexbox with css grid, checkbox labels inline 2026-03-03 16:50:54 -05:00
f5fe6f4aee fix checkbox layout: flex container, 18px checkbox, label inline with gap 2026-03-03 16:42:08 -05:00
940d9c849f fix fitPageContent: proportional overhead, never drop all content on small contexts 2026-03-03 16:38:32 -05:00
d0d65f8ae4 floating button font-size 18px 2026-03-03 16:35:17 -05:00
f71d00295f floating button font-size 14px 2026-03-03 16:34:36 -05:00
433fb137f5 floating button border-radius 21px 2026-03-03 16:34:22 -05:00
ed7993712d floating button height 69px 2026-03-03 16:33:51 -05:00
1d0582bfc9 floating button width 121px, perfect square label 2026-03-03 16:33:29 -05:00
45c630f17a floating button right 42px 2026-03-03 16:32:48 -05:00
9e711d344d floating button bottom 69px 2026-03-03 16:32:15 -05:00
5003c89684 floating button bottom 141px to 89px (20 + 69) 2026-03-03 16:31:10 -05:00
93926bfbfc smart content collapsing for context overflow, spinner CSS, ticket updates
fitPageContent() in content.js: 6 progressive collapse stages (dedup,
nav links, references, lists, code blocks, sidebar debris) before hard
truncation. No summarization, real content structurally compressed.
Wired into both page extraction points in embed modal.
Added .working pulse and .uncloseai-spinner CSS animations for #004.
Updated tickets #001 (CSP root cause), #004 (CSS ready), #005 (fixed).
2026-03-03 16:26:01 -05:00
12e9e79f25 disable TTS via feature flag, move floating button up 121px, add bug tickets
TTS disabled by default for all users (tickets #002 freeze, #003 truncation).
Embedders re-enable with window.UNCLOSEAI_ENABLE_TTS = true.
Floating button bottom 20px to 141px to avoid overlapping page buttons.
Added docs/tickets/ with 5 issues from cthegray.
Bundle extension script and biome config updates.
2026-03-03 15:56:09 -05:00
5687fa1c22 add AGPL-3.0-only licence preamble to Reverse RAG page 2026-02-26 07:14:24 -05:00
95d6baeebb add canonical permacomputer preamble to all source files 2026-02-25 17:39:59 -05:00
4cbfacfa95 rename reverse-rag to reverse-retrieval-augmented-generations-rag.html, update all sidebar links 2026-02-24 23:21:29 -05:00