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 65f07c0
Browse filesBrowse the repository at this point in the historyBrowse files
fix(search): chat history leaves out inbox turns, reads newest first, and uses an indexed scan (#10560)
* fix(search): chat history leaves out inbox turns, reads newest first, and uses an indexed scan
* fix(search): never show thinking cut off by the answer prefix
Copy file name to clipboardExpand all lines: apps/sim/lib/api/contracts/mothership-assistant-tools.ts
+11-6Lines changed: 11 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -528,24 +528,29 @@ export const searchPeopleInputSchema = z
528
528
)
529
529
530
530
/**
531
-
* The caller's own questions to Sim over a window, oldest first. The 92-day window and the page
532
-
* bounds are literals so the worker's generated copy stays standalone.
531
+
* The caller's own questions to Sim over a window, newest first by default. The 92-day window
532
+
* and the page bounds are literals so the worker's generated copy stays standalone.
533
533
*/
534
534
exportconstlistMyChatHistoryInputSchema=z
535
535
.object({
536
536
startDate: z
537
537
.string()
538
538
.datetime({offset: true})
539
+
.optional()
539
540
.describe(
540
-
'Inclusive lower bound on when you asked, as an ISO datetime with your timezone offset. For whole days, use local midnight on the first day.'
541
+
'Inclusive start of the window, an ISO datetime with your timezone offset. Defaults to 7 days before endDate; the window spans at most 92 days.'
541
542
),
542
543
endDate: z
543
544
.string()
544
545
.datetime({offset: true})
545
546
.optional()
546
547
.describe(
547
-
'Exclusive upper bound, at most 92 days after startDate; defaults to now. For whole days, use local midnight after the final day.'
548
+
'Exclusive end of the window, an ISO datetime with your timezone offset. Defaults to now; a later time reads up to now. For whole days, use local midnight after the final day.'
548
549
),
550
+
sortBy: z
551
+
.enum(['newest','oldest'])
552
+
.optional()
553
+
.describe('newest (the default) or oldest first.'),
549
554
topK: z
550
555
.number()
551
556
.int()
@@ -558,7 +563,7 @@ export const listMyChatHistoryInputSchema = z
558
563
.min(1)
559
564
.max(1024)
560
565
.optional()
561
-
.describe('nextCursor from the previous page of the same window.'),
566
+
.describe('nextCursor from the previous page of the same window and order.'),
'List the questions you asked Sim (the Assistant, agent chats, the Slack app and Search MCP chat) in a time window, oldest first, each with a link to its conversation. Covers only your own conversations that still exist.',
651
+
'List the questions you asked Sim (the Assistant, agent chats, the Slack app and Search MCP chat) in a time window, newest first, each with a link to its conversation. Covers only your own conversations that still exist.',
[OAUTH_API_READ_SCOPE]: 'Read your workspaces, workflows, files, tables, and logs',
96
96
[OAUTH_API_WRITE_SCOPE]: 'Read, create, change, run, and delete resources in your workspaces',
97
97
[OAUTH_SEARCH_READ_SCOPE]:
98
-
'Search and read documents you can access, look up people in your organization, and start private Sim Search conversations',
98
+
'Search and read documents you can access, look up people in your organization, start private Sim Search conversations, and list your own questions to Sim',
0 commit comments