Commit graph

15 commits

Author SHA1 Message Date
Anish Sarkar
ff6514a99f feat: add DedupHITLToolCallsMiddleware to prevent duplicate tool calls
- Introduced DedupHITLToolCallsMiddleware to prevent duplicate HITL tool calls within a single LLM response, ensuring only the first occurrence of each tool call is retained.
- Updated the create_surfsense_deep_agent function to include the new middleware, enhancing the efficiency of tool interactions.
- Added a new middleware file for better organization and maintainability of the codebase.
2026-03-21 03:47:30 +05:30
Anish Sarkar
744ad1fa79 feat: enforce single invocation for tool actions across various services
- Added a guideline to ensure that each tool (Gmail, Google Calendar, Google Drive, Linear, Notion) is called only once per user request.
- Updated documentation to clarify that the system will automatically select the most relevant match when multiple items share the same title or subject, enhancing user experience and preventing redundant calls.
2026-03-21 03:07:13 +05:30
Anish Sarkar
8850fac722 feat: implement knowledge base synchronization for Linear and Notion issue creation
- Added `sync_after_create` methods in `LinearKBSyncService` and `NotionKBSyncService` to handle synchronization of newly created issues and pages with the knowledge base.
- Enhanced the `create_issue.py` and `create_page.py` tools to provide user feedback on the success of the knowledge base update, indicating whether the content has been synced or will be added in the next scheduled sync.
- Improved error handling during synchronization to log failures and manage duplicate document scenarios effectively.
2026-03-20 17:50:36 +05:30
Anish Sarkar
df872e261e feat: implement re-authentication flow for Linear and Notion HITL connectors and improve their HITL flow and error states
- Added re-authentication endpoints for Linear and Notion connectors to handle expired authentication.
- Enhanced error handling in issue creation, deletion, and update tools to return appropriate authentication error messages.
- Updated UI components to display authentication status and guide users on re-authentication steps.
- Improved account health checks to ensure valid tokens are used for operations.
2026-03-18 14:10:11 +05:30
Anish Sarkar
20c444f83c refactor: edit HITL prompts to be more expressive 2026-03-17 21:16:37 +05:30
DESKTOP-RTLN3BA\$punk
a3cd598e01 feat: added improved llm model selector 2026-02-20 14:28:01 -08:00
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
CREDO23
e79ec9234a fix label clear bug, invalid delete URL, and remove dead connector method 2026-02-19 14:35:30 +02:00
CREDO23
5bb619227e fix linear connector methods to return status dicts 2026-02-18 19:13:14 +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