Commit graph

1246 commits

Author SHA1 Message Date
Anish Sarkar
652a25be37 refactor(chat): use shared authenticated fetch for chat requests 2026-06-26 22:04:33 +05:30
Anish Sarkar
ef9b5b42a8 feat: update JWT token lifetime and enhance header management in chat page
- Increased ACCESS_TOKEN_LIFETIME_SECONDS from 30 minutes to 60 minutes for improved session duration.
- Introduced getRequestHeadersWithCurrentDesktopAuth function to streamline authorization header management across fetch requests in the chat page.
2026-06-26 21:25:27 +05:30
Anish Sarkar
de4507f413 feat: enhance session management in chat page
- Implemented session refresh logic in the fetchWithTurnCancellingRetry function to handle 401 errors more gracefully.
- Added a new import for refreshSession utility to facilitate session renewal.
2026-06-26 21:00:55 +05:30
DESKTOP-RTLN3BA\$punk
1bf7f116d6 chore: linting 2026-06-25 20:20:26 -07:00
Rohan Verma
94fdb8a113
Merge pull request #1539 from CREDO23/improve-chat-agent-context-and-citations
[FEAT] Unified [n] citation registry for KB + web, pull-based retrieval
2026-06-25 13:34:52 -07:00
Rohan Verma
96e42a1003
Merge pull request #1536 from CREDO23/feature-mention-chat-in-chat
[Feat] Chat : Reference past chats via @-mention as read-only context
2026-06-25 13:32:25 -07:00
Rohan Verma
efa9efc80b
Merge pull request #1532 from CREDO23/imporve-artifacts-accessibility
[Feat] Artifacts sidebar for chat deliverables
2026-06-25 13:31:45 -07:00
Anish Sarkar
d5e2540e51 refactor(api): rename personal access tokens to API keys and update related UI components for consistency 2026-06-25 23:22:11 +05:30
CREDO23
2beafbdec8 agent: retire eager KB priority/planner path and its dead flags
The pull-based KB design (on-demand search_knowledge_base tool + pre-injected
workspace tree) fully replaced the old eager retrieval path. Remove its last
remnants:

- Delete KnowledgePriorityMiddleware (knowledge_search.py) and its tests.
- Drop the kb_priority state field + reducer default; trim
  KbContextProjectionMiddleware to project only workspace_tree_text.
- Remove the now-dead feature flags enable_kb_priority_preinjection and
  enable_kb_planner_runnable across backend (flags, route schema, tests,
  env examples) and frontend (settings toggle, zod schema).
- Scrub <priority_documents> and stale KnowledgePriorityMiddleware references
  from prompts, docstrings, and the ADR.

No functional change: nothing wrote kb_priority and neither flag gated live
behavior after the cutover. Full backend suite green (pre-existing unrelated
failures aside).
2026-06-25 18:37:14 +02:00
Anish Sarkar
d6bffa6f07 chore: fix linting 2026-06-25 04:31:22 +05:30
Anish Sarkar
f98d874185 fix(dashboard):use session aware loading 2026-06-24 03:59:19 +05:30
Anish Sarkar
0ef8a0f2c9 fix(zero):refresh authenticated zero context 2026-06-24 03:55:40 +05:30
Anish Sarkar
c8ac7d3fa6 fix(web):remove token callback handling 2026-06-24 03:55:40 +05:30
Anish Sarkar
9fedd0a81f fix(web):update login cutover flows 2026-06-24 03:55:40 +05:30
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
CREDO23
a5be3fbcf8 feat: add artifacts library page 2026-06-23 15:18:08 +02:00
Anish Sarkar
bf8772e312 Merge remote-tracking branch 'upstream/dev' into feat/auth-revamp 2026-06-23 15:52:11 +05:30
Anish Sarkar
3695e1d5c5 Merge remote-tracking branch 'upstream/dev' into feat/api-key 2026-06-23 13:09:53 +05:30
Anish Sarkar
b37114f193 fix(web):refresh dashboard session queries 2026-06-23 13:01:41 +05:30
Anish Sarkar
3cbd109e8d fix(zero):load authz context for queries 2026-06-23 12:59:16 +05:30
Anish Sarkar
54ff86dcc2 fix(web):update secondary auth entrypoints 2026-06-23 12:58:39 +05:30
Anish Sarkar
1163557453 fix(web):update password auth forms 2026-06-23 12:58:25 +05:30
CREDO23
ec907431d5 feat: surface chat page artifacts 2026-06-22 22:38:15 +02:00
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