Commit graph

6965 commits

Author SHA1 Message Date
CREDO23
bffe2491d6 references: resolve_references fan-out 2026-06-24 21:52:31 +02:00
CREDO23
9954a2d960 references: chat resolver 2026-06-24 21:52:31 +02:00
CREDO23
db9b32c72f references: connector resolver 2026-06-24 21:52:31 +02:00
CREDO23
5faf0da5bf references: folder path tests 2026-06-24 21:48:52 +02:00
CREDO23
b5a6e4c32a references: folder resolver 2026-06-24 21:48:52 +02:00
CREDO23
a5848f1d43 references: document resolver 2026-06-24 21:48:52 +02:00
CREDO23
5b8dbd0ccb adr: lock @chat on-demand read decision 2026-06-24 21:46:37 +02:00
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
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
Rohan Verma
bbd095bd7d
Merge pull request #1534 from Ryan-PG/fix/1497-mermaid-rendering
feat(markdown): add Mermaid diagram rendering support (#1497)
2026-06-23 02:27:13 -07:00
Rohan Verma
cb9da1bc8b
Merge pull request #1533 from Glodykajabika/test/blocknote-to-markdown-unit-tests
Test/blocknote to markdown unit tests
2026-06-23 02:25:42 -07:00
Ryan Heida
e70d2e2465 feat(markdown): add Mermaid diagram rendering support (#1497)
- Add MermaidDiagram component for rendering mermaid code blocks
- Integrate mermaid support into MarkdownCodeBlock
- Improve fallback handling for invalid diagrams
- Optimize mermaid initialization and theme handling
2026-06-23 12:31:17 +03:30
Rohan Verma
a0f44b283c
Merge pull request #1524 from AnishSarkar22/feat/api-key
feat(auth): replace JWT-as-API-key with hashed PATs + per-space API access gate
2026-06-23 00:55:34 -07:00
Anish Sarkar
8a6c30c660 fix(chore): rename alembic migration for PATs 2026-06-23 13:11:07 +05:30
Anish Sarkar
3695e1d5c5 Merge remote-tracking branch 'upstream/dev' into feat/api-key 2026-06-23 13:09:53 +05:30
Rohan Verma
1dc3fac81d
Merge pull request #1527 from Muhammad-Ikhwan-Fathulloh/dev
fix: normalize image URLs before persistence and add model selector aria-label
2026-06-23 00:08:41 -07:00
DESKTOP-RTLN3BA\$punk
f268010646 Merge commit 'ee241e0ff2' into dev 2026-06-23 00:06:38 -07:00
DESKTOP-RTLN3BA\$punk
a08de01cc7 Revert "Merge pull request #1523 from CREDO23/fix/chat-citations"
This reverts commit cd2242147a, reversing
changes made to a4bb0a5253.
2026-06-22 22:55:29 -07:00
Glody Kajabika
5625ca1d5d test: add unit tests for blocknote_to_markdown 2026-06-23 01:42:10 +02:00
Thierry CH.
fb955d3201
Merge pull request #1525 from yuvrajsingh2428/test/async-retry-unit-tests
test: add unit tests for async_retry.raise_for_status
2026-06-22 22:44:22 +02:00
Thierry CH.
b86846e809
Merge pull request #1530 from Anofff/test/content-utils-unit-tests
test: add unit tests for content_utils text helpers
2026-06-22 20:17:06 +02:00
Anofff
bf9be8face test: add unit tests for content_utils text helpers 2026-06-21 17:47:41 +00:00
Anish Sarkar
ee241e0ff2
Merge pull request #1517 from AnishSarkar22/hotpatch/docker-auth-type
feat: implement runtime authentication handling
2026-06-21 09:27:41 +05:30
Muhammad-Ikhwan-Fathulloh
2848ac6c39 fix: normalize image URLs before persistence and add model selector aria-label 2026-06-20 19:49:58 +07:00
Yuvraj Singh
6926b7a8fe test: add unit tests for async_retry.raise_for_status 2026-06-20 17:05:57 +05:30
Anish Sarkar
96c1dd9d4f chore(migration): renamed the migration 2026-06-20 10:50:56 +05:30
Anish Sarkar
fd31ac34fd Merge remote-tracking branch 'upstream/dev' into feat/api-key 2026-06-20 10:50:03 +05:30
Rohan Verma
cd2242147a
Merge pull request #1523 from CREDO23/fix/chat-citations
[Feat] Line-level KB citations
2026-06-19 21:01:15 -07:00
Anish Sarkar
1e8baa10ec refactor(routes): replace user variable with auth context in tests 2026-06-20 03:34:40 +05:30
Anish Sarkar
af5a112212 refactor(auth): replace user variable with auth context in integration and unit tests 2026-06-20 03:11:00 +05:30