You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3c319f0
Browse filesBrowse the repository at this point in the historyBrowse files
fix(search): harden source parsing, availability, and provider matching
- validate <source> urls by parsing them and requiring a host, so a
malformed value never renders a dead citation link
- gate Search-mode suggestions on deployment OAuth availability, sharing
the predicate with the Search catalog
- match connected credentials across a service's additional provider ids
(Salesforce sandbox) and count them in connector telemetry
- collect footer sources from the rendered text segments, covering a
block-less message's fallback text and excluding subagent lanes
- use a distinctive citation-link sentinel and an absolute import for
SuggestedActions
- teach the email tokens transcription test the composed chip geometry
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/chat-content/chat-content.tsx
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -128,14 +128,19 @@ function nextInlineSegmentLabel(segment?: ContentSegment): string {
128
128
129
129
/**
130
130
* The `<source>` payloads of the segment being rendered, in emission order. An
131
-
* inline citation is written into the markdown as `[label](#src-N)` so it flows
132
-
* with its paragraph, and the link renderer resolves `N` back through this
133
-
* context — the component map is static, so it is the one channel from segment
134
-
* data into it.
131
+
* inline citation is written into the markdown as a link to a sentinel
132
+
* fragment carrying the payload's index, so it flows with its paragraph, and
133
+
* the link renderer resolves the index back through this context — the
134
+
* component map is static, so it is the one channel from segment data into it.
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/special-tags/special-tags.test.ts
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/special-tags/special-tags.tsx
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -556,9 +556,19 @@ function isMothershipErrorTagData(value: unknown): value is MothershipErrorTagDa
556
556
)
557
557
}
558
558
559
-
/** Only an absolute http(s) URL can be linked; anything else is not a source. */
559
+
/**
560
+
* Only an absolute http(s) URL with a host can be linked; anything else is not
561
+
* a source. Parsed rather than pattern-matched so a malformed value such as
562
+
* `https://?` — which a prefix check would accept — never becomes a dead link.
563
+
*/
560
564
functionisHttpUrl(value: unknown): value is string{
0 commit comments