Commit graph

1225 commits

Author SHA1 Message Date
CREDO23
2d1ccb468a fix(chat): capture mention chips at submit so they aren't dropped
The composer cleared the live mention atom synchronously on send (via the
editor reset), which raced the async onNew handler that read it — dropping
every @-mention (docs, folders, connectors, and the new chat references)
from the request.

handleSubmit now snapshots the chips before clearing, and onNew consumes
that snapshot (falling back to the live atom for the send-button path),
derives the payload via deriveMentionedPayload, and sends mentioned_thread_ids.
2026-06-23 18:30:39 +02:00
Anish Sarkar
3695e1d5c5 Merge remote-tracking branch 'upstream/dev' into feat/api-key 2026-06-23 13:09:53 +05:30
Anish Sarkar
fd31ac34fd Merge remote-tracking branch 'upstream/dev' into feat/api-key 2026-06-20 10:50:03 +05:30
Anish Sarkar
0687561f5b feat: add personal access token settings UI 2026-06-19 20:29:03 +05:30
CREDO23
c551b34d93 style: add cited line highlight class 2026-06-19 15:31:44 +02:00
Anish Sarkar
7b981b6d16 refactor: simplify error screen layout and remove unused components
- Removed the Alert component and its related imports to streamline the error display.
- Adjusted the layout of the error screen for better responsiveness and visual clarity.
- Updated button styles and structure for improved user interaction.
2026-06-19 14:47:09 +05:30
Anish Sarkar
b54eff648e feat: implement runtime authentication handling
- Added a new proxy function to manage runtime authentication types and set cookies accordingly.
- Introduced runtime authentication configuration to dynamically adjust UI based on the selected auth type.
- Updated global styles to hide specific authentication buttons based on the current auth type.
- Refactored sign-in button and hero section components to utilize the new runtime authentication logic.
- Created a new utility file for runtime authentication configuration and initialization script.
2026-06-19 03:56:26 +05:30
DESKTOP-RTLN3BA\$punk
0729e5a915 chore: linting 2026-06-17 23:40:53 -07:00
DESKTOP-RTLN3BA\$punk
c9afeb2817 feat: fix onboarding trigger
- Introduced a new endpoint to check the existence of a global LLM configuration file.
- Updated the frontend to utilize this status, affecting onboarding flow and user experience.
- Added necessary atoms and types for managing global LLM config status in the application state.
- Refactored navigation to ensure proper routing based on the global config status.
2026-06-17 23:30:56 -07:00
DESKTOP-RTLN3BA\$punk
4e5c13f60a feat: readded google signins and add global announcement feature
- Updated .env.example to include new environment variables for Google authentication and global announcement settings.
- Integrated Google sign-in functionality in SignInButton and HeroSection components, allowing users to log in with their Google accounts.
- Added GlobalAnnouncement component to display maintenance notices or announcements on the homepage layout.
- Enhanced styling for Google sign-in buttons to improve user experience.
2026-06-17 21:29:14 -07:00
DESKTOP-RTLN3BA\$punk
b89866541e chore: linting 2026-06-17 20:50:07 -07:00
Anish Sarkar
61f071ae68 refactor(web): replace Card component with Alert for messaging channels notification to enhance user experience 2026-06-17 00:06:41 +05:30
Anish Sarkar
9b7e278114 refactor(config): update GATEWAY_ENABLED variable to FALSE and adjust related configurations for improved messaging gateway handling 2026-06-16 23:49:26 +05:30
Anish Sarkar
55c2e5c0d8 refactor(web): enhance redirect response in callback route 2026-06-16 21:00:53 +05:30
Anish Sarkar
c3a96aa532 refactor(web): simplify redirect response construction in callback route 2026-06-16 20:13:00 +05:30
Anish Sarkar
3f69bfd5e4 refactor(web): replace instances of BACKEND_URL with buildBackendUrl for improved URL handling 2026-06-16 14:51:25 +05:30
Anish Sarkar
371ff866c7 refactor(web): replace BACKEND_URL with buildBackendUrl for dynamic URL construction 2026-06-16 04:56:23 +05:30
Anish Sarkar
c5dd55e964 refactor(web): consume runtime config in auth and dashboard flows 2026-06-16 01:39:32 +05:30
Anish Sarkar
9ef2c6a60e refactor(web): route server proxies through SURFSENSE_BACKEND_INTERNAL_URL 2026-06-16 01:39:00 +05:30
Anish Sarkar
6b31997599 Merge remote-tracking branch 'upstream/dev' into experiment/lean-url-port-architecture 2026-06-15 20:52:15 +05:30
Anish Sarkar
f5d04cf8ba refactor(web): support same-origin backend and zero urls 2026-06-15 11:03:45 +05:30
Anish Sarkar
d9a4f14f99 feat(token-tracking): enhance model metadata reconciliation by adding bare model name handling 2026-06-14 12:18:22 +05:30
Anish Sarkar
3ba92dca13 refactor(layout): update container class for documentation 2026-06-13 23:00:53 +05:30
Anish Sarkar
c7409c8995 chore: ran linting 2026-06-13 21:59:35 +05:30
Anish Sarkar
97f004e7e1 refactor(onboarding, model-connections): enhance onboarding logic and streamline model connection handling by integrating chat model checks and improving state management 2026-06-13 20:48:24 +05:30
Anish Sarkar
ab5423d2d2 Merge remote-tracking branch 'upstream/dev' into feat/unified-model-connections 2026-06-13 19:04:49 +05:30
Anish Sarkar
02b5e758ed refactor(search-space-settings, model-selector): replace CircleUser icon with Settings in search space settings and comment out max_input_tokens display in model selector 2026-06-13 18:44:06 +05:30
Anish Sarkar
76843f42f1 refactor(anonymous-models): remove description field from anonymous model responses and update related UI components 2026-06-13 16:30:26 +05:30
Anish Sarkar
bd4a04f2e7 feat(database-migrations): add migration to remove legacy model config tables and remove stale model connection code 2026-06-13 12:45:43 +05:30
Anish Sarkar
7493ba9324 refactor(icons): replace Clock3 icon with AlarmClock for automations 2026-06-13 03:34:13 +05:30
Anish Sarkar
5e86885a03 feat(model-connections): integrate model provider connections panel and connection card components 2026-06-13 02:40:22 +05:30
Anish Sarkar
356f0e56c5 feat(model-connections): add provider-specific connection forms and shared components 2026-06-12 22:04:44 +05:30
Anish Sarkar
ad404b2dbc refactor(icons): replace Workflow icon with Clock3 across automation components 2026-06-12 05:15:15 +05:30
Anish Sarkar
8e8cf96faa feat(error-handling): implement LLM error adaptation and classification for chat streaming
- Introduced LLMErrorCategory and adapt_llm_exception to normalize LLM exceptions.
- Updated llm_retryable_message and llm_permanent_message to utilize the new adaptation logic.
- Enhanced classify_stream_exception to classify provider errors and return user-friendly messages.
- Added tests for error classification and adaptation to ensure robustness.
- Updated frontend error handling to display appropriate messages based on new classifications.
2026-06-12 05:03:14 +05:30
DESKTOP-RTLN3BA\$punk
05190da0a9 chore: linting 2026-06-11 15:31:43 -07:00
Anish Sarkar
72a7fe04b5 Merge remote-tracking branch 'upstream/dev' into feat/unified-model-connections 2026-06-12 03:20:46 +05:30
Rohan Verma
aee0c1a3ac
Merge pull request #1481 from AnishSarkar22/fix/chat-stream-flicker
fix(chat): stabilize active thread rendering and top-anchored scrolling
2026-06-11 14:47:15 -07:00
Anish Sarkar
908790e40f Merge remote-tracking branch 'upstream/dev' into feat/unified-model-connections 2026-06-12 03:15:28 +05:30
CREDO23
41f4a58663 Merge remote-tracking branch 'upstream/dev' into improvement-podcast-graph
# Conflicts:
#	surfsense_backend/app/tasks/celery_tasks/podcast_tasks.py
2026-06-11 23:14:49 +02:00
Anish Sarkar
e7762cda97 feat(chat): enhance thread component with active thread handling and improve message loading logic 2026-06-12 02:42:16 +05:30
Anish Sarkar
610ff063d6 refactor(model-connections): update frontend for provider-based models 2026-06-12 02:17:51 +05:30
DESKTOP-RTLN3BA\$punk
c3695e7837 feat: update auto-reload settings and enhance payment session creation
- Added currency parameter to the Stripe checkout session for auto-reload setup.
- Integrated AutoReloadSettings component into the BuyMorePage for improved user experience.
- Removed deprecated AutoReloadSettings component from user settings directory.
- Updated import paths for AutoReloadSettings in purchases page to reflect new structure.
2026-06-11 13:29:40 -07:00
CREDO23
ccd8209d12 refactor(podcasts): drop chat podcast polling state 2026-06-11 10:04:51 +02:00
DESKTOP-RTLN3BA\$punk
a7407502d3 feat(refactor): refactor payment system to implement unified credit wallet.
- Updated environment variables and - configurations for credit purchases via Stripe, replacing legacy page pack system.
- Introduced auto-reload feature for credit top-ups and modified database models to track credit transactions.
- Updated notification system to handle insufficient credits and auto-reload failures.
- Adjusted API routes and schemas to reflect changes in credit management.
2026-06-10 16:49:03 -07:00
Anish Sarkar
39cca36c31 feat(onboarding): include model connections in setup flow 2026-06-10 21:49:55 +05:30
Anish Sarkar
4bda0ffa96 feat(settings): add model connection management UI 2026-06-10 21:49:33 +05:30
Anish Sarkar
32ab2b8713 feat(web): expose model policies in automations 2026-06-10 21:49:07 +05:30
Anish Sarkar
3f21d5fdd6 Merge remote-tracking branch 'upstream/dev' into fix/changelogs 2026-06-10 10:57:21 +05:30
DESKTOP-RTLN3BA\$punk
41ff57101c feat: made chat fast
- Introduced lazy knowledge base retrieval mode, allowing the main agent to fetch KB content on demand via the `search_knowledge_base` tool, improving performance by skipping expensive pre-injection processes.
- Added cross-thread caching capability, enabling reuse of compiled graphs across different user chats, reducing latency for returning users.
- Updated middleware to support new lazy loading and caching features, ensuring efficient resource utilization and improved response times.
- Enhanced logging for performance tracking during knowledge retrieval and agent interactions.
2026-06-09 04:45:17 -07:00
DESKTOP-RTLN3BA\$punk
ce952d2ad1 chore: linting 2026-06-09 00:42:26 -07:00