Commit graph

4430 commits

Author SHA1 Message Date
e8e1b7d65b ci: Move workspace to /tmp to avoid permission issues
All checks were successful
BotServer CI/CD / build (push) Successful in 1m37s
- Use /tmp/persistent-botserver instead of /opt/gbo/data
- Use /tmp/sccache and /tmp/cargo for caches
- Runner has full permissions on /tmp
- Fixes 'Operation not permitted' on chown
2026-04-17 12:53:30 -03:00
2b432c763c ci: Use HOME/USER env vars instead of su/sudo
Some checks failed
BotServer CI/CD / build (push) Failing after 0s
- Remove su - and sudo -u which require passwords
- Set HOME=/home/gbuser and USER=gbuser as env vars
- Run git/cargo with proper HOME prefix
- Fix runner hanging on authentication
2026-04-17 12:49:13 -03:00
f67de0e85c ci: Use /home/gbuser instead of /opt/gbo/data to avoid permission issues
Some checks failed
BotServer CI/CD / build (push) Failing after 3s
- Move CI workspace to /home/gbuser/persistent-botserver
- Cache now in /home/gbuser/.cache and /home/gbuser/.cargo
- No more permission conflicts with /opt/gbo/data
2026-04-17 12:39:57 -03:00
e59892f9b4 ci: Use su - instead of sudo -u for runner compatibility
Some checks failed
BotServer CI/CD / build (push) Failing after 6s
- Replace sudo with su - gbuser -c for proper user switching
- Simplify permission handling with chown/chmod as root
- Use su - for all gbuser operations
2026-04-17 12:03:47 -03:00
7673eccc59 ci: Fix workflow to run as gbuser with proper permissions
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
- Use sudo -u gbuser for all git operations
- Add chown/chmod for cache directories
- Use git pull instead of fetch/reset for cleaner updates
- Ensure consistent gbuser ownership
2026-04-17 11:57:22 -03:00
a826be35f7 ci: Update workflow permissions handling
Some checks failed
BotServer CI/CD / build (push) Failing after 1s
2026-04-17 11:40:45 -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
9be8e6d788 ci: Use persistent directories for incremental builds
All checks were successful
BotServer CI/CD / build (push) Successful in 28m1s
2026-04-16 10:06:35 -03:00
823a4fbddf fix(ci): Fix YAML syntax errors
Some checks failed
BotServer CI/CD / build (push) Has been cancelled
2026-04-16 09:58:38 -03:00
a46bee361b fix(ci): Remove log redirection, output directly to console 2026-04-16 09:55:01 -03:00
e8a2a78946 Trigger CI - fix permissions
Some checks failed
BotServer CI/CD / build (push) Failing after 5s
2026-04-16 09:47:23 -03:00
63161462dc Trigger rebuild
Some checks failed
BotServer CI/CD / build (push) Failing after 7s
2026-04-16 09:44:00 -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
0f944fcdc6 Trigger botserver CI
All checks were successful
BotServer CI/CD / build (push) Successful in 1m6s
2026-04-16 09:05:23 -03:00
04bfd668a4 Fix: simple redirect to /tmp/build.log
All checks were successful
BotServer CI/CD / build (push) Successful in 1m10s
2026-04-16 08:49:50 -03:00
5960126d6a Fix: use script to redirect build output to /tmp/build.log 2026-04-16 08:47:52 -03:00
de14de0a73 Fix: create build.log with proper permissions before build
Some checks failed
BotServer CI/CD / build (push) Failing after 6s
2026-04-16 08:46:11 -03:00
af9626f8c5 Trigger CI - fix build log
Some checks failed
BotServer CI/CD / build (push) Failing after 8s
2026-04-16 08:45:47 -03:00
6d60c7c98d Force CI build
Some checks failed
BotServer CI/CD / build (push) Failing after 8s
2026-04-16 08:24:24 -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