Commit graph

1249 commits

Author SHA1 Message Date
843298ee54 Force CI
Some checks failed
BotServer CI/CD / build (push) Failing after 9s
2026-04-17 18:53:29 -03:00
1571293565 Trigger CI rebuild
Some checks failed
BotServer CI/CD / build (push) Failing after 3s
2026-04-17 18:42:15 -03:00
2091169e22 Force CI rebuild after cleanup 2026-04-17 18:21:16 -03:00
b6b80d988a Test cache: small comment change
Some checks failed
BotServer CI/CD / build (push) Failing after 1s
2026-04-17 17:58:48 -03:00
4561d2d4fb Trigger CI 1776458057
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
2026-04-17 17:34:17 -03:00
de1f9b8fdb Trigger CI build
Some checks failed
BotServer CI/CD / build (push) Failing after 1s
2026-04-17 17:25:00 -03:00
a9d8f68675 Remove CI trigger comment
Some checks failed
BotServer CI/CD / build (push) Failing after 1s
2026-04-17 16:47:30 -03:00
41d7eb4c1d Fix container.rs compilation errors, add ContainerSettings to ComponentConfig, add incus to allowed commands, fix rate_limiter warning in AzureGPT5Client
Some checks failed
BotServer CI/CD / build (push) Failing after 2s
2026-04-17 16:08:39 -03:00
6005b57391 fix: skip duplicate tables.bas processing
Some checks failed
BotServer CI/CD / build (push) Failing after 4s
2026-04-17 11:00:49 -03:00
7f265bf205 fix: tables.bas only if changed, clean drive monitor logs
All checks were successful
BotServer CI/CD / build (push) Successful in 5m39s
2026-04-17 10:48:35 -03:00
eb0aba0a9a fix(basic): use centralized keyword list for lowercase conversion
All checks were successful
BotServer CI/CD / build (push) Successful in 4m54s
2026-04-17 10:25:22 -03:00
b496900165 fix(basic): lowercase DETECT keyword for Rhai
All checks were successful
BotServer CI/CD / build (push) Successful in 5m23s
2026-04-17 10:18:15 -03:00
98fcd132c6 fix: Remove unused log_jemalloc_stats import from drive_monitor
All checks were successful
BotServer CI/CD / build (push) Successful in 2m40s
2026-04-17 09:31:38 -03:00
7f1a1e5707 fix(drive_monitor): prevent config re-sync on unchanged content hash
All checks were successful
BotServer CI/CD / build (push) Successful in 5m34s
2026-04-17 09:06:00 -03:00
ec8147f00d fix(drive_monitor): remove KB processor 60s sleep, use 1s interval
All checks were successful
BotServer CI/CD / build (push) Successful in 4m16s
2026-04-17 08:27:07 -03:00
162515ba11 fix(drive_monitor): 1s interval, path matching, error isolation
All checks were successful
BotServer CI/CD / build (push) Successful in 4m31s
2026-04-17 08:17:43 -03:00
f9178e947e Use max_completion_tokens for GPT-5 models
All checks were successful
BotServer CI/CD / build (push) Successful in 3m13s
2026-04-16 16:21:16 -03:00
05f2a5b2ab Add debug logging for LLM provider detection
All checks were successful
BotServer CI/CD / build (push) Successful in 9m0s
2026-04-16 15:13:15 -03:00
c603618865 Add AzureGPT5 client and provider detection
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
- Add AzureGPT5Client struct for Responses API
- Add AzureGPT5 to LLMProviderType enum
- Detect provider via azuregpt5 or gpt5 in llm-provider config
- Fix gpt_oss_120b.rs chars.peek() issue
2026-04-16 15:07:23 -03:00
de418e8fa7 fix(schema): Change message_index from Int8 to Int4 (i64 to i32)
All checks were successful
BotServer CI/CD / build (push) Successful in 4m18s
2026-04-16 10:47:39 -03:00
57accc0deb fix(history): Ensure user/assistant alternation in conversation history
All checks were successful
BotServer CI/CD / build (push) Successful in 4m17s
2026-04-16 10:35:08 -03:00
b50e8d0f48 fix(history): Add fallback for empty html2md parse result
Some checks are pending
BotServer CI/CD / build (push) Waiting to run
2026-04-16 10:35:05 -03:00
5d1a87f145 docs: Add comment to GptOss120bHandler
All checks were successful
BotServer CI/CD / build (push) Successful in 58s
2026-04-16 09:38:20 -03:00
355854bc6b Fix: proper process_content_streaming for GptOss120bHandler to handle thinking tags during streaming
All checks were successful
BotServer CI/CD / build (push) Successful in 1m7s
2026-04-16 09:12:27 -03:00
e63c187f32 Improve LLM streaming logs: start/end with size/content, first/last bytes; fix html2md function name
Some checks failed
BotServer CI/CD / build (push) Failing after 16m34s
2026-04-15 18:15:42 -03:00
ae814508d2 fix: save raw LLM response to history instead of stripped empty content
All checks were successful
BotServer CI/CD / build (push) Successful in 3m42s
2026-04-15 16:44:56 -03:00
352ff8b45c Lower score threshold to 0.20 and add KB result logging
All checks were successful
BotServer CI/CD / build (push) Successful in 3m32s
2026-04-15 16:28:41 -03:00
2c6ed89319 fix: add stream_exit logging to trace early loop termination
All checks were successful
BotServer CI/CD / build (push) Successful in 3m49s
2026-04-15 15:24:30 -03:00
be94e5c3ad Improve embedding config logging
All checks were successful
BotServer CI/CD / build (push) Successful in 3m43s
2026-04-15 15:01:13 -03:00
cbf8e024d3 Add logging for embedding config loading and fix KB search dedup
All checks were successful
BotServer CI/CD / build (push) Successful in 4m14s
2026-04-15 14:46:02 -03:00
148ad0cc7c Fix KB search: remove score threshold to improve results
All checks were successful
BotServer CI/CD / build (push) Successful in 2m54s
2026-04-15 14:04:11 -03:00
dd699db19e fix: improve assistant message history logging with preview
All checks were successful
BotServer CI/CD / build (push) Successful in 3m34s
2026-04-15 13:47:36 -03:00
bd6ca9439f fix: strip html/markdown from assistant messages and improve error logging
All checks were successful
BotServer CI/CD / build (push) Successful in 4m30s
2026-04-15 13:32:42 -03:00
adbf84f812 refactor: mover logs verbose de info! para trace!
All checks were successful
BotServer CI/CD / build (push) Successful in 3m25s
Move logs detalhados de LLM e DriveMonitor de info! para trace!
para reduzir poluição nos logs de produção:

- bot/mod.rs: LLM chunk logs, streaming start, abort
- llm/mod.rs: LLM Request Details, provider creation logs

Estes logs são úteis para debug mas geram muito ruído em produção.
Com trace! só aparecem quando RUST_LOG=trace está configurado.
2026-04-15 12:41:31 -03:00
d1cd7513d7 aumentar: limite de resultados KB de 5/10 para 20/25
All checks were successful
BotServer CI/CD / build (push) Successful in 2m50s
Aumenta a abrangência da busca em KB para capturar mais contexto
relevante, especialmente em documentos com múltiplas entidades
como listas de ramais.

- inject_kb_context: 5 -> 20 resultados
- think_kb: 10 -> 25 resultados
- search_active_websites: 5 -> 20 resultados
2026-04-15 11:02:31 -03:00
5338ffab12 fix: use continue instead of break on low-relevance KB search results
All checks were successful
BotServer CI/CD / build (push) Successful in 4m9s
Bug: Using break instead of continue when encountering low-relevance
results caused the search to stop prematurely, missing potentially
relevant chunks in subsequent results.

- Changed break to continue when score < 0.4 in search_single_collection
- Changed break to continue when score < 0.4 in search_single_kb
- Lowered threshold from 0.5 to 0.4 for consistency

This ensures all search results are evaluated, not just those before
the first low-relevance result.
2026-04-15 10:19:13 -03:00
dd15899ac3 fix: Use broadcast channel for LLM streaming cancellation
All checks were successful
BotServer CI/CD / build (push) Successful in 5m48s
- Broadcast channel allows multiple subscribers for cancellation
- Aborts LLM task when user sends new message
- Properly stops LLM generation when cancelled
2026-04-15 09:44:42 -03:00
9db784fd5c feat: Cancel streaming LLM when user sends new message
All checks were successful
BotServer CI/CD / build (push) Successful in 6m4s
- Add active_streams HashMap to AppState to track streaming sessions
- Create cancellation channel for each streaming session
- Cancel existing streaming when new message arrives
- Prevents overlapping responses and improves UX
2026-04-15 07:37:07 -03:00
01d4f47a93 fix: strip GPT-oSS thinking content from response chunks
All checks were successful
BotServer CI/CD / build (push) Successful in 4m18s
2026-04-14 19:57:13 -03:00
fc68b21252 fix: support flexible JSON order for GPT-oSS thinking signals
All checks were successful
BotServer CI/CD / build (push) Successful in 2m36s
2026-04-14 19:42:48 -03:00
8a6970734e fix: Extract thinking signals from anywhere in chunk to prevent leakage
All checks were successful
BotServer CI/CD / build (push) Successful in 3m47s
Thinking signals ({"type":"thinking"} and {"type":"thinking_clear"})
were leaking into the final HTML response when they appeared in the
middle or end of chunks, concatenated with regular content.

The previous check only looked at the start of chunks with
chunk.trim().starts_with('{'), which missed embedded signals.

Solution:
- Use regex to find ALL thinking signal JSON objects anywhere in the chunk
- Send each thinking signal separately to the frontend
- Remove thinking signals from the chunk before content processing
- Skip to next iteration if chunk contained only thinking signals

This prevents thinking signals from appearing in the final HTML output
and ensures they're properly handled by the frontend thinking indicator.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-14 18:56:24 -03:00
1f743766a8 fix: key-order agnostic signal detection in backend
All checks were successful
BotServer CI/CD / build (push) Successful in 3m11s
2026-04-14 17:57:48 -03:00
21591e22dd fix: remove unused backend code
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
2026-04-14 17:56:56 -03:00
c8514eabe7 fix: restore chunk flow by refining tool detection
All checks were successful
BotServer CI/CD / build (push) Successful in 3m39s
2026-04-14 17:52:58 -03:00
fc0144c67c fix: compile errors in internal signal detection
All checks were successful
BotServer CI/CD / build (push) Successful in 3m22s
2026-04-14 17:32:58 -03:00
c7f5f95a37 fix: robust internal signal detection in orchestrator
Some checks failed
BotServer CI/CD / build (push) Failing after 4m16s
2026-04-14 17:24:17 -03:00
3d6db4b46f fix: orchestrator must not swallow thinking events into tool buffer
All checks were successful
BotServer CI/CD / build (push) Successful in 3m23s
2026-04-14 17:18:03 -03:00
62cdf1c638 fix: handle GLM 4.7 reasoning_content and chat_template_kwargs
All checks were successful
BotServer CI/CD / build (push) Successful in 3m29s
2026-04-14 17:14:04 -03:00
44026ba073 fix: restore suggestions during direct tool execution
All checks were successful
BotServer CI/CD / build (push) Successful in 3m36s
2026-04-14 17:04:45 -03:00
ba3e2675ef feat: stateful thinking tag stripping for Kimi, Minimax and DeepSeek stream
All checks were successful
BotServer CI/CD / build (push) Successful in 3m42s
2026-04-14 16:15:31 -03:00