Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions apps/docs/fast-sessions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ When a task in a session opens a pull request, that pull request belongs to the
session. A mention on it joins the session instead of starting a new one, and
Roomote answers on the pull request as well as in the session's home surface.

The sidebar's **Recent sessions** keeps your personal sessions in reach and
excludes sessions created by automations, including custom automation runs.
Automation sessions remain available in the main sessions list and automation
history under the same access permissions. Opening or participating in an
automation session does not add it to the sidebar's recent sessions.

## Start a Session from the dashboard

On the home page, leave the workspace unselected to start a conversation.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ export function RecentSessions({ enabled }: { enabled: boolean }) {
const trpc = useTRPC();
const { data, isError, isFetching, refetch } = useQuery(
trpc.sessions.list.queryOptions(
{ ownedOnly: true, limit: RECENT_SESSIONS_LIMIT },
{
ownedOnly: true,
excludeAutomations: true,
Comment thread
roomote-community[bot] marked this conversation as resolved.
Resolved
limit: RECENT_SESSIONS_LIMIT,
},
{
enabled,
placeholderData: keepPreviousData,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions apps/web/src/lib/server/sessions.test.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions apps/web/src/lib/server/sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
like,
llmUsageEvents,
lt,
ne,
or,
privateSessionAccess,
repositories,
Expand Down Expand Up @@ -76,6 +77,7 @@ type SessionListInput = {
q?: string | null;
ids?: string[];
ownedOnly?: boolean;
excludeAutomations?: boolean;
includeJudgedStatus?: boolean;
before?: string | null;
limit?: number;
Expand Down Expand Up @@ -525,6 +527,7 @@ function listConditions(
return and(
sessionListScope(auth),
input.ownedOnly ? sessionOwnerScope(auth) : undefined,
input.excludeAutomations ? ne(sessions.ownerKind, 'automation') : undefined,
eq(sessions.visibility, 'visible'),
archive === 'archived'
? isNotNull(sessions.archivedAt)
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/trpc/commands/sessions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ export const sessionsListInputSchema = z.object({
q: z.string().max(200).nullish(),
ids: z.array(z.string().uuid()).max(20).optional(),
ownedOnly: z.boolean().optional(),
excludeAutomations: z.boolean().optional(),
before: z.string().nullish(),
limit: z.number().int().min(1).max(200).optional(),
});
Expand Down
124 changes: 124 additions & 0 deletions apps/web/src/trpc/routers/sessions.test.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading