Commit graph

7089 commits

Author SHA1 Message Date
CREDO23
f8a71581c0 adr: resolve @chat as non-indexed read reference 2026-06-24 21:44:25 +02:00
CREDO23
7e147137d6 references: pointer renderer tests 2026-06-24 21:42:17 +02:00
CREDO23
ce67c282b9 references: package surface 2026-06-24 21:42:17 +02:00
CREDO23
05b58b80ed chore: track references tests package 2026-06-24 21:42:17 +02:00
CREDO23
0afaf94ee9 references: pointer renderer 2026-06-24 21:41:27 +02:00
CREDO23
ee9b9af8d3 references: models 2026-06-24 21:41:27 +02:00
CREDO23
d0b2548019 chore: track references source package 2026-06-24 21:41:27 +02:00
CREDO23
ff5ea157bb test(chat): add citation registry tests 2026-06-24 21:35:19 +02:00
CREDO23
85b999a52d feat(chat): add citations package surface 2026-06-24 21:35:19 +02:00
CREDO23
61b8af0af4 feat(chat): add citation registry 2026-06-24 21:35:19 +02:00
CREDO23
98b164c2d3 feat(chat): add citation entry data shapes 2026-06-24 21:35:19 +02:00
CREDO23
7f09c8a290 docs: add RAG citation and context architecture ADR 2026-06-24 21:35:19 +02:00
Anish Sarkar
eb76c02d43 feat(oauth): implement OAuth page rendering and enhance authentication flow 2026-06-24 18:37:04 +05:30
Anish Sarkar
c4e35ac21c chore: add GOOGLE_DESKTOP_CLIENT_ID to environment variables in workflows and update .env.example 2026-06-24 16:06:49 +05:30
Anish Sarkar
dfa34dc047 chore: update .gitignore to exclude surfsense_desktop/.env file 2026-06-24 15:16:51 +05:30
Anish Sarkar
e1beab798a fix(zero): enhance zero context fetching with desktop authentication 2026-06-24 12:24:27 +05:30
Anish Sarkar
9b982f575a fix(tools):use authenticated tool requests 2026-06-24 03:59:34 +05:30
Anish Sarkar
83ee9aa7ea fix(web):align shared session utilities 2026-06-24 03:59:27 +05:30
Anish Sarkar
f98d874185 fix(dashboard):use session aware loading 2026-06-24 03:59:19 +05:30
Anish Sarkar
6e4d2eb076 fix(panels):use session aware asset requests 2026-06-24 03:57:23 +05:30
Anish Sarkar
b4328cd52b fix(documents):use authenticated document access 2026-06-24 03:55:40 +05:30
Anish Sarkar
fc2c4ad331 fix(connectors):use authenticated connector requests 2026-06-24 03:55:40 +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
Anish Sarkar
d2a8d088c7 fix(web):centralize session auth fetch 2026-06-24 03:55:40 +05:30
Anish Sarkar
951cb1a717 fix(evals):update auth token handling 2026-06-24 03:55:39 +05:30
Anish Sarkar
65ab1cbdd4 fix(desktop):route auth deep links safely 2026-06-24 03:55:39 +05:30
Anish Sarkar
2fd7551d36 fix(desktop):add auth cutover ipc 2026-06-24 03:55:39 +05:30
Anish Sarkar
766fa25ea0 fix(tests):cover auth transport invariants 2026-06-24 03:55:39 +05:30
Anish Sarkar
62c7efb216 fix(auth):enforce session auth cutover 2026-06-24 03:55:39 +05:30
Anish Sarkar
fbecbb98b5 fix(auth):harden session cookie transport 2026-06-24 03:55:39 +05:30
Anish Sarkar
9b127a8533 chore(dependencies): add mermaid package to project 2026-06-24 03:52:21 +05:30
DhruvTilva
ca21a03775
test: add unit tests for validators 2026-06-23 23:29:56 +05:30
CREDO23
303a69a933 build(web): add missing mermaid dependency
Mermaid diagram rendering was wired up upstream but the package was never
declared, breaking the dev build ("Module not found: Can't resolve
'mermaid'"). Add it to package.json and lock it.
2026-06-23 18:30:46 +02:00
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
1d5c364e1d feat(chat): surface chat references in the @-mention UI
Add a Chats tab to the mention picker (excluding the current chat), carry
the "thread" kind through the inline editor's chip nodes, and render thread
chips on user messages with navigation to the referenced conversation.
2026-06-23 18:30:29 +02:00
CREDO23
1f6934b980 feat(chat): extend composer mention model for thread references
Add the "thread" mention kind (makeThreadMention + stable dedup key) so a
chat can be referenced like a document. Also introduce submittedMentionsAtom
and a pure deriveMentionedPayload() helper, the building blocks for capturing
chips at submit time and mapping them to backend payload buckets.
2026-06-23 18:30:22 +02:00
CREDO23
5d79f91352 fix(chat): let search-space owners reference legacy null-creator chats
Mirror search_threads visibility in the referenced-chat resolver: a
search-space owner can now @-mention legacy threads that predate creator
tracking (null created_by_id), instead of those being silently dropped.
2026-06-23 18:30:15 +02:00
CREDO23
208ad9a643 test(chat): cover referenced-chat resolver and transcript budgeting
Add unit tests for role-specific turn extraction in the resolver and for
the transcript renderer: full rendering within budget, dropping oldest
turns with a marker, partial-tail fill of an overflowing turn, and
multi-chat tagging.
2026-06-23 17:04:43 +02:00
CREDO23
0e5ce83ee5 feat(chat): persist referenced-chat mention chips on user turns
Recognise the "thread" chip kind when building stored user content so
referenced-chat mentions survive reloads and regeneration.
2026-06-23 17:04:43 +02:00
CREDO23
857f1bb279 feat(chat): inject referenced-chat context into the new-chat agent input
Thread mentioned_thread_ids from the route through the orchestrator into
input-state assembly, resolve them for the requesting user, and append
the rendered referenced-chat block to the agent's query context.
2026-06-23 17:04:32 +02:00
CREDO23
afc555d971 feat(chat): resolve and render @-mentioned chats as read-only context
Add the referenced_chat_context slice: models for the data shapes, a
fail-closed resolver that fetches mentioned threads and their visible
turns under the same access rules as thread search, and a transcript
renderer that emits a budgeted <referenced_chat_context> block. When a
chat exceeds the per-reference character budget, recent turns are kept
and any leftover budget is filled with the overflowing turn's tail, with
truncation markers signalling the cut.
2026-06-23 17:04:27 +02:00
CREDO23
7169c22d29 feat(chat): allow @-mentioning chat threads in new-chat requests
Extend the chat contract so a turn can reference other conversations:
add the "thread" kind to MentionedDocumentInfo and a mentioned_thread_ids
field on NewChatRequest and RegenerateRequest.
2026-06-23 17:04:21 +02:00
CREDO23
8b0a2f8964 feat: link artifacts to source chat 2026-06-23 15:47:21 +02:00
CREDO23
9c622ae3f3 fix: don't autoplay video presentations 2026-06-23 15:28:42 +02:00
CREDO23
7e0364f9fe refactor: unify artifacts icon 2026-06-23 15:18:08 +02:00
CREDO23
cc624076c9 feat: add artifacts sidebar nav 2026-06-23 15:18:08 +02:00
CREDO23
a5be3fbcf8 feat: add artifacts library page 2026-06-23 15:18:08 +02:00
CREDO23
19698bcc0b feat: add library media viewers 2026-06-23 15:18:08 +02:00