Commit graph

4980 commits

Author SHA1 Message Date
DESKTOP-RTLN3BA\$punk
68f3f9313c Merge commit '7c61668823' into dev 2026-04-14 01:48:51 -07:00
Rohan Verma
451868906b
Merge pull request #1223 from MODSetter/dev_mod
feat: added ai file sorting, updated model selector, various agent updates
2026-04-14 01:47:43 -07:00
DESKTOP-RTLN3BA\$punk
4bee367d4a feat: added ai file sorting 2026-04-14 01:43:30 -07:00
Oscar Zhou
0bdc08162e perf: optimize next/image sizes with dynamic maxWidth (#1089) 2026-04-14 17:58:45 +09:30
Anish Sarkar
55099a20ac feat: enhance token usage tracking in chat messages with UI integration and dropdown display 2026-04-14 13:40:46 +05:30
Anish Sarkar
3cfe53fb7f feat: implement token usage tracking for LLM calls with new accumulator and callback 2026-04-14 13:40:32 +05:30
Oscar Zhou
d37417cbe9 refactor: move pure utility functions out of UI components (#1194) 2026-04-14 17:39:11 +09:30
Anish Sarkar
917f35eb33 feat: add token_usage table and relationships for tracking LLM token consumption 2026-04-14 13:26:53 +05:30
DESKTOP-RTLN3BA\$punk
fa0b47dfca feat: add FAQ section to pricing component with dynamic question handling and styling improvements 2026-04-13 22:53:44 -07:00
DESKTOP-RTLN3BA\$punk
5d3142332b Merge commit 'e1e4bb4706' into dev_mod 2026-04-13 20:35:04 -07:00
Rohan Verma
e1e4bb4706
Merge pull request #1219 from AnishSarkar22/fix/sensitive-actions
refactor: Unified sensitive actions using HITL & many UI/UX changes
2026-04-13 20:33:23 -07:00
Matt Van Horn
1188550bf6
feat: add dashboard-scoped error boundary
Closes #1195.

Adds `surfsense_web/app/dashboard/error.tsx` so unhandled errors in any
dashboard route render inside the dashboard layout (sidebar/nav stay
visible) instead of blowing out to the root-level error page. `reset()`
now retries just the failed segment.

Follows the same PostHog capture pattern as the root error.tsx and adds
a secondary "Go to dashboard home" link for recovery when `reset()`
doesn't help.
2026-04-13 22:59:38 -04:00
DESKTOP-RTLN3BA\$punk
b5301fa438 feat: enhance sandbox functionality with threading support and file download capabilities 2026-04-13 16:41:46 -07:00
DESKTOP-RTLN3BA\$punk
38b9e8dcc5 feat: reworked model selector 2026-04-13 16:10:29 -07:00
Anish Sarkar
136901276a Merge remote-tracking branch 'upstream/dev' into fix/sensitive-actions 2026-04-14 04:10:00 +05:30
Anish Sarkar
3f68962772 feat: implement cache invalidation for MCP connectors upon deletion in search source connectors 2026-04-14 04:09:30 +05:30
Anish Sarkar
26695b949e refactor: enhance ThreadContent layout and improve navigation handling in LayoutDataProvider 2026-04-14 03:57:37 +05:30
Rohan Verma
7c4d1a6af6
Merge pull request #1218 from CREDO23/feature/sandbox-integration
Some checks are pending
Build and Push Docker Images / tag_release (push) Waiting to run
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-24.04-arm, linux/arm64, arm64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-latest, linux/amd64, amd64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-24.04-arm, linux/arm64, arm64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-latest, linux/amd64, amd64) (push) Blocked by required conditions
Build and Push Docker Images / create_manifest (backend, surfsense-backend) (push) Blocked by required conditions
Build and Push Docker Images / create_manifest (web, surfsense-web) (push) Blocked by required conditions
[Feat] Add Daytona sandbox code execution + KB search fix
2026-04-13 14:11:27 -07:00
Anish Sarkar
43744713f7 refactor: simplify Composer component logic and improve message submission handling 2026-04-14 02:38:49 +05:30
Anish Sarkar
3d1a504395 refactor: streamline Composer component by removing unused state and simplifying popover handling 2026-04-14 01:50:37 +05:30
Anish Sarkar
2b40592f0b feat: add Agent Model Manager component for managing LLM configurations and enhance UI in related components 2026-04-14 01:30:30 +05:30
CREDO23
9396ee9c85 fix: delete broken sandbox before creating replacement to prevent orphan accumulation 2026-04-13 21:57:06 +02:00
Anish Sarkar
f22d7434ce refactor: enhance layout and styling in settings components for improved UI consistency 2026-04-14 01:10:35 +05:30
CREDO23
facfb1f7e7 disable file sync to sandbox, LLM handles data extraction itself 2026-04-13 20:59:31 +02:00
CREDO23
5ea2732bf2 make execute_code a Python tool: auto-wrap, print() nudge on empty output 2026-04-13 20:53:17 +02:00
Anish Sarkar
ae3d254a2c refactor: enhance inline mention editor and prompt picker UI with improved trigger handling and loading states 2026-04-14 00:10:57 +05:30
CREDO23
5719a794a0 refine execute_code prompts: tool description + XML workflow guidance 2026-04-13 19:51:34 +02:00
Anish Sarkar
ec27807644 refactor: improve document processing error handling and UI state management 2026-04-13 22:22:50 +05:30
CREDO23
a71338e368 rewrite snapshot script: use run_commands, dotenv, idempotent delete 2026-04-13 18:29:17 +02:00
Anish Sarkar
635cdde0eb refactor: enhance roles manager component with expanded role details and improved permissions display 2026-04-13 21:45:53 +05:30
CREDO23
c4a5ac4144 delete existing snapshot before recreating 2026-04-13 18:11:40 +02:00
CREDO23
4bd9ff15eb add /documents symlink to sandbox snapshot 2026-04-13 18:06:45 +02:00
Anish Sarkar
25644e1c0b refactor: replace Eye icon with ScanEye in multiple components and enhance model not found messages 2026-04-13 21:36:07 +05:30
CREDO23
bb41c09eef clean execute_code tool description, remove sandbox internals 2026-04-13 18:03:22 +02:00
CREDO23
c9e3b1a08a fix KB search skipping when system message follows user message 2026-04-13 18:03:16 +02:00
Anish Sarkar
b6e2510e55 refactor: remove export functionality from DocumentsFilters and streamline DocumentsSidebar export handling 2026-04-13 21:25:17 +05:30
Anish Sarkar
fce465a40f refactor: simplify layout structure in user settings components 2026-04-13 21:06:16 +05:30
Anish Sarkar
71f4f77f26 refactor: unify interrupt handling in various tools
Refactored the context types for create, delete, and update functionalities across multiple tools including Confluence, Dropbox, Gmail, Google Calendar, Jira, Linear, Notion, and OneDrive to utilize a consistent type definition. This change enhances code clarity and maintains uniformity in handling user approvals by integrating the useHitlDecision hook for decision dispatching.
2026-04-13 20:25:49 +05:30
Anish Sarkar
041af34820 refactor: unify interrupt handling in OneDrive tools
Refactored the create and delete file functionalities in OneDrive tools to utilize a consistent InterruptResult interface with specific context types. This change enhances code clarity and maintains uniformity in handling user approvals by integrating the useHitlDecision hook for decision dispatching.
2026-04-13 20:23:03 +05:30
Anish Sarkar
5169d3d56c refactor: unify interrupt handling in Linear and Notion tools
Refactored the create, update, and delete functionalities in Linear and Notion tools to utilize a consistent InterruptResult interface with specific context types. This change enhances code clarity and maintains uniformity in handling user approvals by integrating the useHitlDecision hook for decision dispatching.
2026-04-13 20:22:47 +05:30
Anish Sarkar
e6065b6793 refactor: unify interrupt handling in Gmail and Google Calendar tools
Refactored the create, send, update, and delete functionalities in Gmail and Google Calendar tools to utilize a consistent InterruptResult interface with specific context types. This change enhances code clarity and maintains uniformity in handling user approvals by integrating the useHitlDecision hook for decision dispatching.
2026-04-13 20:22:26 +05:30
Anish Sarkar
1c9c496e01 feat: implement MCP Tool Trust methods for managing trusted tools
Added methods to trust and untrust tools in the MCP connector's "Always Allow" list, allowing for streamlined tool usage without HITL approval. This enhancement supports better management of trusted tools within the application.
2026-04-13 20:21:46 +05:30
Anish Sarkar
71cd04b05e refactor: unify interrupt handling in Dropbox and Google Drive tools
Refactored the create and delete file functionalities in Dropbox and Google Drive tools to utilize a consistent InterruptResult interface with specific context types. This change enhances code clarity and maintains uniformity in handling user approvals by integrating the useHitlDecision hook for decision dispatching.
2026-04-13 20:21:16 +05:30
Anish Sarkar
f844c3288c refactor: unify interrupt handling in Confluence and Jira tools
Refactored the create, delete, and update functions in Confluence and Jira tools to utilize a consistent InterruptResult interface with specific context types. This change enhances code clarity and maintains uniformity in handling user approvals across different tools by integrating the useHitlDecision hook for decision dispatching.
2026-04-13 20:20:38 +05:30
Anish Sarkar
ea7bcebcd0 refactor: integrate HITL approval UI for interrupt results
Enhanced the NewChatPage to utilize the new GenericHitlApprovalToolUI for handling interrupt results. Updated the ToolFallback component to conditionally render the approval UI based on the result type. Additionally, introduced a new GenericHitlApprovalToolUI component to manage user approvals and parameter editing for tool actions.
2026-04-13 20:19:23 +05:30
Anish Sarkar
b3a8364fbd feat: add MCP Tool Trust routes for managing trusted tools 2026-04-13 20:18:12 +05:30
Anish Sarkar
8d8ba6cbe8 refactor: replace interrupt calls with request_approval utility in Linear and Notion tools
Updated the create, delete, and update functions in Linear and Notion tools to utilize the new request_approval utility for handling user approvals. This change improves code consistency and simplifies decision handling by directly merging parameters from the approval response.
2026-04-13 20:17:36 +05:30
Anish Sarkar
4875fd9211 refactor: replace interrupt calls with request_approval utility in Jira and OneDrive tools
Updated the create, delete, and update functions in Jira and OneDrive tools to utilize the new request_approval utility for handling user approvals. This change improves code consistency and simplifies decision handling by directly merging parameters from the approval response.
2026-04-13 20:17:06 +05:30
Anish Sarkar
2f59fc9c72 refactor: replace interrupt calls with request_approval utility in Google Calendar and Drive tools
Updated the create, delete, and update functions in Google Calendar and Google Drive tools to utilize the new request_approval utility for handling user approvals. This change enhances code consistency and simplifies decision handling by directly merging parameters from the approval response.
2026-04-13 20:16:09 +05:30
Anish Sarkar
85baaacd0a refactor: replace interrupt calls with request_approval utility in Gmail tools
Updated the create, send, update, and trash functions in Gmail tools to utilize the new request_approval utility for handling user approvals. This change improves code consistency and simplifies decision handling by directly merging parameters from the approval response.
2026-04-13 20:15:31 +05:30