From 11b678cb7998c195e060b27a3139c6165645594c Mon Sep 17 00:00:00 2001 From: "kiloconnect[bot]" <240665456+kiloconnect[bot]@users.noreply.github.com> Date: Wed, 17 Jun 2026 16:00:18 +0000 Subject: [PATCH] feat(bot): give GitHub and Linear their own session category instead of 'other' --- .../components/agents/platform-filter-modal.tsx | 16 +++++++++++++++- .../components/cloud-agent-next/ChatSidebar.tsx | 14 +++++++++++++- .../src/components/cloud-agent/SessionsList.tsx | 14 ++++++++++++++ apps/web/src/routers/cli-sessions-router.ts | 2 ++ 4 files changed, 44 insertions(+), 2 deletions(-) diff --git a/apps/mobile/src/components/agents/platform-filter-modal.tsx b/apps/mobile/src/components/agents/platform-filter-modal.tsx index 2437e892e1..007195c259 100644 --- a/apps/mobile/src/components/agents/platform-filter-modal.tsx +++ b/apps/mobile/src/components/agents/platform-filter-modal.tsx @@ -7,7 +7,15 @@ import { Text } from '@/components/ui/text'; import { useThemeColors } from '@/lib/hooks/use-theme-colors'; import { cn } from '@/lib/utils'; -const PLATFORM_FILTERS = ['cloud-agent', 'extension', 'cli', 'slack', 'other'] as const; +const PLATFORM_FILTERS = [ + 'cloud-agent', + 'extension', + 'cli', + 'slack', + 'github', + 'linear', + 'other', +] as const; const chipScrollContentStyle = { paddingHorizontal: 22, paddingVertical: 8, gap: 8 }; export type ProjectFilterOption = { @@ -54,6 +62,12 @@ function platformFilterLabel(p: string): string { case 'slack': { return 'Slack'; } + case 'github': { + return 'GitHub'; + } + case 'linear': { + return 'Linear'; + } case 'other': { return 'Other'; } diff --git a/apps/web/src/components/cloud-agent-next/ChatSidebar.tsx b/apps/web/src/components/cloud-agent-next/ChatSidebar.tsx index 01a1a91036..96f377d05a 100644 --- a/apps/web/src/components/cloud-agent-next/ChatSidebar.tsx +++ b/apps/web/src/components/cloud-agent-next/ChatSidebar.tsx @@ -275,7 +275,15 @@ function SessionRow({ ); } -const PLATFORM_FILTERS = ['cloud-agent', 'extension', 'cli', 'slack', 'other'] as const; +const PLATFORM_FILTERS = [ + 'cloud-agent', + 'extension', + 'cli', + 'slack', + 'github', + 'linear', + 'other', +] as const; function platformFilterLabel(p: string): string { switch (p) { @@ -287,6 +295,10 @@ function platformFilterLabel(p: string): string { return 'CLI'; case 'slack': return 'Slack'; + case 'github': + return 'GitHub'; + case 'linear': + return 'Linear'; case 'other': return 'Other'; default: diff --git a/apps/web/src/components/cloud-agent/SessionsList.tsx b/apps/web/src/components/cloud-agent/SessionsList.tsx index a34f51f871..3c9dd97274 100644 --- a/apps/web/src/components/cloud-agent/SessionsList.tsx +++ b/apps/web/src/components/cloud-agent/SessionsList.tsx @@ -78,6 +78,20 @@ export function SessionsList({ Slack ); + } else if (platform === 'github') { + badge = ( + + + GitHub + + ); + } else if (platform === 'linear') { + badge = ( + + + Linear + + ); } else { // Default to Extension badge for unknown, vscode, etc. badge = ( diff --git a/apps/web/src/routers/cli-sessions-router.ts b/apps/web/src/routers/cli-sessions-router.ts index 65bdc7af4b..da35febf80 100644 --- a/apps/web/src/routers/cli-sessions-router.ts +++ b/apps/web/src/routers/cli-sessions-router.ts @@ -49,6 +49,8 @@ export const KNOWN_PLATFORMS = [ 'agent-manager', 'app-builder', 'slack', + 'github', + 'linear', 'gastown', ] as const;