Commit graph

139 commits

Author SHA1 Message Date
CREDO23
a49a4db6d6 perf: use asyncio.to_thread for embed_text in FastAPI paths 2026-03-09 16:33:24 +02:00
DESKTOP-RTLN3BA\$punk
ecb0a25cc8 feat: enhance memory management and session handling in database operations
- Introduced a shielded async session context manager to ensure safe session closure during cancellations.
- Updated various database operations to utilize the new shielded session, preventing orphaned connections.
- Added environment variables to optimize glibc memory management, improving overall application performance.
- Implemented a function to trim the native heap, allowing for better memory reclamation on Linux systems.
2026-02-28 23:59:28 -08:00
DESKTOP-RTLN3BA\$punk
40a091f8cc feat: enhance knowledge base search and document retrieval
- Introduced a mechanism to identify degenerate queries that lack meaningful search signals, improving search accuracy.
- Implemented a fallback method for browsing recent documents when queries are degenerate, ensuring relevant results are returned.
- Added limits on the number of chunks fetched per document to optimize performance and prevent excessive data loading.
- Updated the ConnectorService to allow for reusable query embeddings, enhancing efficiency in search operations.
- Enhanced LLM router service to support context window fallbacks, improving robustness during context window limitations.
2026-02-28 19:40:24 -08:00
DESKTOP-RTLN3BA\$punk
f4b2ab0899 feat: enhance caching mechanisms to prevent memory leaks
- Improved in-memory rate limiting by evicting timestamps outside the current window and cleaning up empty keys.
- Updated LLM router service to cache context profiles and avoid redundant computations.
- Introduced cache eviction logic for MCP tools and sandbox instances to manage memory usage effectively.
- Added garbage collection triggers in chat streaming functions to reclaim resources promptly.
2026-02-27 17:56:00 -08:00
DESKTOP-RTLN3BA\$punk
0e723a5b8b feat: perf optimizations
- improved search_knowledgebase_tool
- Added new endpoint to batch-fetch comments for multiple messages, reducing the number of API calls.
- Introduced CommentBatchRequest and CommentBatchResponse schemas for handling batch requests and responses.
- Updated chat_comments_service to validate message existence and permissions before fetching comments.
- Enhanced frontend with useBatchCommentsPreload hook to optimize comment loading for assistant messages.
2026-02-27 17:19:25 -08:00
DESKTOP-RTLN3BA\$punk
664c43ca13 feat: add performance logging middleware and enhance performance tracking across services
- Introduced RequestPerfMiddleware to log request performance metrics, including slow request thresholds.
- Updated various services and retrievers to utilize the new performance logging utility for better tracking of execution times.
- Enhanced existing methods with detailed performance logs for operations such as embedding, searching, and indexing.
- Removed deprecated logging setup in stream_new_chat and replaced it with the new performance logger.
2026-02-27 16:32:30 -08:00
DESKTOP-RTLN3BA\$punk
1e4b8d3e89 feat: enhance document formatting and context management for LLM tools
- Introduced dynamic character budget calculation for document formatting based on model's context window.
- Updated `format_documents_for_context` to respect character limits and improve output quality.
- Added `max_input_tokens` parameter to various functions to facilitate context-aware processing.
- Enhanced error handling for context overflow in LLM router service.
2026-02-26 20:47:19 -08:00
DESKTOP-RTLN3BA\$punk
e9892c8fe9 feat: added configable summary calculation and various improvements
- Replaced direct embedding calls with a utility function across various components to streamline embedding logic.
- Added enable_summary flag to several models and routes to control summary generation behavior.
2026-02-26 18:24:57 -08:00
DESKTOP-RTLN3BA\$punk
aabc24f82c feat: enhance performance logging and caching in various components
- Introduced slow callback logging in FastAPI to identify blocking calls.
- Added performance logging for agent creation and tool loading processes.
- Implemented caching for MCP tools to reduce redundant server calls.
- Enhanced sandbox management with in-process caching for improved efficiency.
- Refactored several functions for better readability and performance tracking.
- Updated tests to ensure proper functionality of new features and optimizations.
2026-02-26 13:00:31 -08:00
DESKTOP-RTLN3BA\$punk
d198c8b89d chore; linting 2026-02-25 01:50:28 -08:00
Rohan Verma
d0ee8b12b6
Merge pull request #834 from CREDO23/google-drive-hitl
[Feature] Add human in the loop for google drive sensitive actions (create:docs,sheets & delete)
2026-02-24 16:34:25 -08:00
CREDO23
30ab464ba7 fix reauth error handling and stale log messages 2026-02-24 13:33:47 +02:00
CREDO23
e89b68520a rename trash_google_drive_file to delete_google_drive_file 2026-02-24 13:18:39 +02:00
CREDO23
6265e9a437 add delete_from_kb support to trash google drive file tool 2026-02-24 13:01:55 +02:00
CREDO23
465233d4c6 instruct llm not to retry on insufficient_permissions 2026-02-24 12:45:25 +02:00
CREDO23
521e72e5a4 catch 403 and return insufficient_permissions in google drive tools 2026-02-23 16:51:08 +02:00
DESKTOP-RTLN3BA\$punk
634f6f24bf chore: linting 2026-02-20 22:44:56 -08:00
DESKTOP-RTLN3BA\$punk
ed497909fa feat: add new FastAPI debug configurations and enhance web crawling capabilities with real-time web query support 2026-02-20 17:28:20 -08:00
DESKTOP-RTLN3BA\$punk
81dfc7102f feat: fixed live connectors citations 2026-02-20 16:45:50 -08:00
DESKTOP-RTLN3BA\$punk
a3cd598e01 feat: added improved llm model selector 2026-02-20 14:28:01 -08:00
CREDO23
856d258318 fix bugs and pattern inconsistencies in google drive tools 2026-02-20 19:41:29 +02:00
CREDO23
9abe136646 register google drive tools in registry 2026-02-20 19:22:22 +02:00
CREDO23
cd7ebd60d0 add google drive create/trash agent tools 2026-02-20 19:21:24 +02:00
Rohan Verma
f15833fec6
Merge pull request #826 from AnishSarkar22/fix/report-artifact
fix: improve report artifact & enhance revision handling
2026-02-19 19:10:21 -08:00
Anish Sarkar
3dfc908270 fix: update length constraint in report generation to specify ~400 words for brief reports 2026-02-19 23:34:17 +05:30
Anish Sarkar
e568ded743 feat: enhance report generation with length constraints and user-friendly language guidelines 2026-02-19 23:33:08 +05:30
CREDO23
c8413ee2bf fix: resolve graphql complexity, json extraction, kb sync, and ui prefill for linear HIL 2026-02-19 18:30:20 +02:00
CREDO23
d4e2ebb99f fix(hitl): rollback on KB delete failure, tighten linear tool guards
- delete_linear_issue + delete_notion_page: add db_session.rollback()
  in the KB document deletion exception handler so the session is never
  left in a PendingRollbackError state after a failed commit, which
  would otherwise break all subsequent DB operations in the same request
- delete_linear_issue: include issue identifier (e.g. ENG-42) in the
  success message so the caller can confirm which issue was archived
- update_linear_issue: remove redundant label_ids ternary
  (x if x is not None else None -> x)
- create_linear_issue: add logger.error on empty-title guard for parity
  with the equivalent Notion tool
2026-02-19 16:27:02 +02:00
CREDO23
ca624385a6 fix(linear): align KB sync messaging and fix log terminology
- update_issue: handle not_indexed KB sync status with a distinct user
  message (matches Notion parity)
- delete_issue: fix log message "not found in DB" → "not found in KB"
2026-02-19 16:08:51 +02:00
Anish Sarkar
e059ee4193 chore: ran linting 2026-02-19 19:34:25 +05:30
CREDO23
090b69cf1e fix: guard empty update_issue call and unify delete_from_kb naming
- LinearConnector.update_issue: return error early when no fields are
  provided, preventing a silent no-op mutation and unnecessary KB sync
- Rename delete_from_db → delete_from_kb in delete_notion_page tool and
  its frontend component to match the more accurate Linear naming and
  keep both tool APIs consistent for the LLM
2026-02-19 15:22:36 +02:00
Anish Sarkar
8ae37bdccf refactor: improve Markdown fence handling in report generation and viewer 2026-02-19 18:32:50 +05:30
CREDO23
e79ec9234a fix label clear bug, invalid delete URL, and remove dead connector method 2026-02-19 14:35:30 +02:00
Anish Sarkar
f7bbce098b fix: remove duplicate footers in report generation and ensure single standard disclaimer is appended 2026-02-19 17:26:28 +05:30
Anish Sarkar
b426653dfb feat: add standard report footer to generated reports 2026-02-19 15:35:21 +05:30
Anish Sarkar
69dfe943b7 refactor: enhance report generation tool with improved source strategies and revision handling 2026-02-19 15:33:32 +05:30
CREDO23
5bb619227e fix linear connector methods to return status dicts 2026-02-18 19:13:14 +02:00
CREDO23
f0e1f3419e fix(notion): remove parent_page_id from create_notion_page tool signature 2026-02-18 19:02:16 +02:00
CREDO23
c201a0602a feat(linear): register linear tools in registry 2026-02-18 18:46:45 +02:00
CREDO23
e618deaefc feat(linear): add tools __init__ 2026-02-18 18:41:43 +02:00
CREDO23
94ae9989de feat(linear): add delete_linear_issue tool 2026-02-18 18:41:09 +02:00
CREDO23
72df61da6e feat(linear): add update_linear_issue tool 2026-02-18 18:28:47 +02:00
CREDO23
46bdb64476 feat(linear): add create_linear_issue tool 2026-02-18 18:12:23 +02:00
CREDO23
d28aed14b3 Guard KB sync on document_id; fix comment style 2026-02-18 12:31:28 +02:00
CREDO23
7d1bd1fab4 Implement KB sync after Notion page updates with block ID verification
- Add NotionKBSyncService for immediate KB updates after page changes
- Implement block ID verification to ensure content freshness
- Refactor duplicate block processing logic to shared utils
- Add user-friendly status messages
- Include debug logging for troubleshooting
2026-02-17 20:30:12 +02:00
CREDO23
2f65536c6d use document_id instead of page_id for kb sync lookup 2026-02-17 18:25:56 +02:00
CREDO23
b240bc3e1a add kb sync for notion updates 2026-02-17 17:37:47 +02:00
DESKTOP-RTLN3BA\$punk
7bd3a4e08f chore: linting 2026-02-16 23:30:35 -08:00
DESKTOP-RTLN3BA\$punk
9390f195cc refactor: fix decision handling and error message extraction in Notion tools
- Improved decision extraction logic in create, delete, and update Notion page tools to ensure proper handling of approval decisions.
- Added a static method to NotionHistoryConnector for consistent error message extraction from API responses, enhancing readability and maintainability.
2026-02-16 02:14:26 -08:00
DESKTOP-RTLN3BA\$punk
81c70befcf chore: linting 2026-02-15 23:38:15 -08:00