Skip to content
Merged
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
f51cab9
feat(kilo-app): add stream-chat-react-native dependency
iscekic Mar 27, 2026
6fc58ca
feat(kilo-app): add useStreamChatCredentials hook
iscekic Mar 27, 2026
3fa5040
feat(kilo-app): add KiloClawChat component with Stream Chat integration
iscekic Mar 27, 2026
c7eb84d
feat(kilo-app): wire up chat screen with KiloClawChat component
iscekic Mar 27, 2026
a43076a
style(kilo-app): fix lint and formatting in chat files
iscekic Mar 27, 2026
666c14b
fix(kilo-app): add null guard for bot membership lookup
iscekic Mar 27, 2026
0f6f01b
revert: remove unnecessary null guard on bot membership lookup
iscekic Mar 27, 2026
21cc160
Merge branch 'main' into feature/kiloclaw-mobile-chat
iscekic Mar 27, 2026
fccb79b
chore(kilo-app): update AGENTS.md and app.config.js
iscekic Mar 27, 2026
9ef4187
fix(kilo-app): ignore netinfo peer dep in knip config
iscekic Mar 27, 2026
c841048
Merge remote-tracking branch 'origin/main' into feature/kiloclaw-mobi…
iscekic Mar 30, 2026
6dfb83b
style(kilo-app): format app.config.js
iscekic Mar 30, 2026
6c31de3
fix(kilo-app): add ascAppId for iOS App Store submission
iscekic Mar 30, 2026
13b8576
fix(kilo-app): enable noUncheckedIndexedAccess and fix type errors
iscekic Mar 30, 2026
83f8163
fix(kilo-app): fix connect/disconnect race and clear connectError on …
iscekic Mar 30, 2026
86867e3
fix(kilo-app): restore disconnectUser in cleanup to tear down WS on u…
iscekic Mar 30, 2026
0dec16c
chore(kilo-app): install stream-chat-react-native optional peer deps
iscekic Mar 30, 2026
d88d9ca
fix(kilo-app): pass empty config to react-native-share plugin
iscekic Mar 30, 2026
f90719d
chore(kilo-app): upgrade Expo SDK packages and exclude from minimumRe…
iscekic Mar 30, 2026
c87c135
fix(kilo-app): remove @stream-io/flat-list-mvcp (jcenter incompatible)
iscekic Mar 30, 2026
77ff30a
fix(kilo-app): pin lightningcss to 1.31.1 to fix CSS bundling error
iscekic Mar 30, 2026
113a244
fix: override lightningcss to 1.31.1 to fix react-native-css bundling
iscekic Mar 30, 2026
59a9963
fix(kilo-app): upgrade react-native-css to 3.0.6 to fix lightningcss …
iscekic Mar 30, 2026
237b674
fix: pin lightningcss to 1.30.1 to fix NativeWind CSS deserialization…
iscekic Mar 30, 2026
22d4cc3
chore(kilo-app): upgrade non-Expo-managed deps to latest
iscekic Mar 30, 2026
22d9d89
chore(kilo-app): upgrade @sentry/react-native from v7 to v8
iscekic Mar 30, 2026
ebc1c47
chore(kilo-app): suppress stream-chat console noise with LogBox
iscekic Mar 30, 2026
e752384
fix(kilo-app): upgrade @gorhom/bottom-sheet to fix getBoundingClientR…
iscekic Mar 30, 2026
cde24c7
revert(kilo-app): downgrade @sentry/react-native back to v7 for Expo …
iscekic Mar 30, 2026
a81a1cb
feat(kilo-app): move chat to full-screen page and fix layout
iscekic Mar 30, 2026
060e694
fix(kilo-app): fix chat input border inset and photo library crash
iscekic Mar 30, 2026
cb984ca
feat(kilo-app): add dark mode support to Stream Chat UI
iscekic Mar 30, 2026
0f7f3e0
fix(kilo-app): fix chat route name and restore LogBox suppressions
iscekic Mar 30, 2026
803c9e9
fix(kilo-app): migrate from stream-chat-react-native to stream-chat-expo
iscekic Mar 30, 2026
2bd12c3
chore(kilo-app): remove unused stream-chat peer deps and clean up kni…
iscekic Mar 30, 2026
411d8c5
chore(kilo-app): remove react-native-share, react-native-video, and s…
iscekic Mar 30, 2026
acd851f
revert(kilo-app): remove NSPhotoLibraryUsageDescription from infoPlist
iscekic Mar 30, 2026
2f51901
fix(kilo-app): use keyboardDidShow/Hide for cross-platform keyboard d…
iscekic Mar 30, 2026
29e4836
fix(kilo-app): use Stream Chat built-in KeyboardCompatibleView for ch…
iscekic Mar 31, 2026
71d333c
fix(kilo-app): apply safe area bottom inset as container padding for …
iscekic Mar 31, 2026
bbda0bf
chore(kilo-app): install stream-chat-expo peer dependencies and confi…
iscekic Mar 31, 2026
58bd21f
feat: add missing peer dep
iscekic Mar 31, 2026
3ad568c
build: remove unneeded property
iscekic Mar 31, 2026
48c7e4b
fix(kilo-app): add pnpm patch for @gorhom/bottom-sheet unstable_getBo…
iscekic Mar 31, 2026
29eecb4
fix: use expo-image as image component
iscekic Mar 31, 2026
410fc21
chore(kilo-app): remove unused useKeyboardAwareBottomInset hook
iscekic Mar 31, 2026
6b6c4c5
fix(kilo-app): fix linter error and format chat.tsx and app.config.js
iscekic Mar 31, 2026
fc08dcb
fix(kilo-app): patch stream-chat-expo video thumbnail ph:// URL error
iscekic Mar 31, 2026
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
4 changes: 3 additions & 1 deletion kilo-app/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## What This Is

Kilo App is an Expo (React Native) mobile application using Expo Router for file-based routing. It lives as a subpackage (`kilo-app/`) in the `cloud` monorepo. **This app targets iOS and Android only — never web.** Do not add `Platform.select({ web: ... })` patterns or web-specific code.
Kilo App is an Expo (React Native) mobile application using Expo Router for file-based routing. It lives as a subpackage (`kilo-app/`) in the `cloud` monorepo. **This app targets iOS and Android only — never web.** Do not add `Platform.select({ web: ... })` patterns or web-specific code. **We use dev builds, not Expo Go.**

## Tech Stack

Expand Down Expand Up @@ -39,6 +39,8 @@ npx expo install <package-name>
npx expo install --dev <package-name> # devDependencies
```

After installing or upgrading dependencies, run `pnpx expo-doctor` and fix any issues it reports (version mismatches, duplicate deps, etc.).

## Data Fetching

- When you need data from the backend, **always add a new tRPC procedure** rather than copying data or inventing client-side alternatives. The app uses tRPC with React Query — adding a procedure is cheap and keeps the source of truth on the server.
Expand Down
4 changes: 3 additions & 1 deletion kilo-app/app.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('expo/config').ExpoConfig} */
const config = {
name: 'Kilo',
name: 'KiloClaw',
owner: 'kilocode',
slug: 'kilo-app',
version: '1.0.0',
Expand All @@ -13,6 +13,8 @@ const config = {
bundleIdentifier: 'com.kilocode.kiloapp',
infoPlist: {
ITSAppUsesNonExemptEncryption: false,
NSPhotoLibraryUsageDescription:
'KiloClaw needs access to your photo library to send images in chat.',
},
},
splash: {
Expand Down
3 changes: 3 additions & 0 deletions kilo-app/eas.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"production": {
"android": {
"track": "internal"
},
"ios": {
"ascAppId": "6761193135"
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion kilo-app/knip.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"expo-system-ui",
"postcss",
"eslint-plugin-sonarjs",
"@sentry/cli"
"@sentry/cli",
"@react-native-community/netinfo"
],
"ignoreBinaries": ["oxfmt", "oxlint"],
"ignore": ["src/components/ui/**"],
Expand Down
32 changes: 18 additions & 14 deletions kilo-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,51 +20,55 @@
},
"dependencies": {
"@kilocode/trpc": "workspace:*",
"@react-native-community/netinfo": "11.5.2",
"@rn-primitives/portal": "^1.3.0",
"@rn-primitives/slot": "^1.2.0",
"@sentry/react-native": "~7.11.0",
"@tailwindcss/postcss": "^4.2.1",
"@tailwindcss/postcss": "^4.2.2",
"@tanstack/react-query": "catalog:",
"@trpc/client": "catalog:",
"@trpc/tanstack-react-query": "catalog:",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"expo": "~55.0.8",
"expo": "~55.0.9",
"expo-application": "~55.0.10",
"expo-build-properties": "~55.0.10",
"expo-clipboard": "~55.0.9",
"expo-constants": "~55.0.9",
"expo-dev-client": "~55.0.18",
"expo-dev-client": "~55.0.19",
"expo-haptics": "~55.0.9",
"expo-image": "~55.0.6",
"expo-insights": "55.0.11",
"expo-linking": "~55.0.8",
"expo-router": "~55.0.7",
"expo-image-manipulator": "~55.0.11",
"expo-insights": "55.0.12",
"expo-linking": "~55.0.9",
"expo-router": "~55.0.8",
"expo-secure-store": "~55.0.9",
"expo-splash-screen": "~55.0.12",
"expo-splash-screen": "~55.0.13",
"expo-status-bar": "~55.0.4",
"expo-web-browser": "~55.0.10",
"lucide-react-native": "^0.577.0",
"lucide-react-native": "^1.7.0",
"nativewind": "5.0.0-preview.3",
"react": "19.2.0",
"react-native": "0.83.2",
"react-native-css": "3.0.5",
"react-native": "0.83.4",
"react-native-css": "3.0.6",
"react-native-gesture-handler": "~2.30.0",
"react-native-reanimated": "4.2.1",
"react-native-safe-area-context": "~5.6.2",
"react-native-screens": "~4.23.0",
"react-native-svg": "15.15.3",
"react-native-worklets": "0.7.2",
"sonner-native": "^0.23.1",
"stream-chat": "^9.38.0",
"stream-chat-expo": "^8.13.7",
"tailwind-merge": "^3.5.0",
"tailwindcss": "^4.2.1"
"tailwindcss": "^4.2.2"
},
"devDependencies": {
"@sentry/cli": "^3.3.3",
"@types/react": "~19.2.2",
"@sentry/cli": "^3.3.4",
"@types/react": "~19.2.14",
"@typescript/native-preview": "catalog:",
"eslint-plugin-sonarjs": "^4.0.2",
"knip": "^5.86.0",
"knip": "^6.0.6",
"typescript": "catalog:"
},
"private": true
Expand Down
23 changes: 0 additions & 23 deletions kilo-app/src/app/(app)/(tabs)/(1_kiloclaw)/[instance-id]/index.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion kilo-app/src/app/(app)/(tabs)/(1_kiloclaw)/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function KiloClawInstanceList() {

const instanceId = status?.sandboxId ?? 'default';
const billingPath = `/(app)/(tabs)/(1_kiloclaw)/${instanceId}/billing` as const;
const chatPath = `/(app)/(tabs)/(1_kiloclaw)/${instanceId}` as const;
const chatPath = `/(app)/chat/${instanceId}` as const;
const dashboardPath = `/(app)/(tabs)/(1_kiloclaw)/${instanceId}/dashboard` as const;

const isDestroying = status?.status === 'destroying';
Expand Down
1 change: 1 addition & 0 deletions kilo-app/src/app/(app)/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export default function AppLayout() {
return (
<Stack screenOptions={{ headerShown: false }}>
<Stack.Screen name="(tabs)" />
<Stack.Screen name="chat/[instance-id]" />
<Stack.Screen
name="profile"
options={{
Expand Down
18 changes: 18 additions & 0 deletions kilo-app/src/app/(app)/chat/[instance-id].tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { useLocalSearchParams } from 'expo-router';
import { View } from 'react-native';

import { KiloClawChat } from '@/components/kiloclaw/chat';
import { useKiloClawStatus } from '@/lib/hooks/use-kiloclaw';

export default function ChatScreen() {
const { 'instance-id': instanceId } = useLocalSearchParams<{ 'instance-id': string }>();
const { data: status } = useKiloClawStatus();
const isRunning = status?.status === 'running';
const machineName = status?.name ?? 'Chat';

return (
<View className="flex-1 bg-background">
<KiloClawChat instanceId={instanceId} name={machineName} enabled={isRunning} />
</View>
);
}
2 changes: 1 addition & 1 deletion kilo-app/src/app/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const navigationIntegration = Sentry.reactNavigationIntegration({
Sentry.init({
dsn: 'https://618cf025f1c6bdea8043fcd80668fe6b@o4509356317474816.ingest.us.sentry.io/4511110711279616',

enabled: !__DEV__,
enabled: true,

// Adds more context data to events (IP address, cookies, user, etc.)
// For more information, visit: https://docs.sentry.io/platforms/react-native/data-management/data-collected/
Expand Down
53 changes: 53 additions & 0 deletions kilo-app/src/components/kiloclaw/chat-hooks.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import { useEffect, useState } from 'react';
import { Keyboard } from 'react-native';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { type Event, type Channel as StreamChannel, type StreamChat } from 'stream-chat';

export function useKeyboardAwareBottomInset() {
const { bottom } = useSafeAreaInsets();
const [keyboardVisible, setKeyboardVisible] = useState(false);

useEffect(() => {
const showSub = Keyboard.addListener('keyboardWillShow', () => {
setKeyboardVisible(true);
});
const hideSub = Keyboard.addListener('keyboardWillHide', () => {
setKeyboardVisible(false);
});
return () => {
showSub.remove();
hideSub.remove();
};
}, []);

return { bottomInset: keyboardVisible ? 0 : bottom, keyboardVisible };
}

export function useBotOnlineStatus(
client: StreamChat | null,
channel: StreamChannel | null,
botUserId: string
): boolean {
const [online, setOnline] = useState(false);

useEffect(() => {
const handlePresenceChange = (event: Event) => {
if (event.user?.id === botUserId) {
setOnline(Boolean(event.user.online));
}
};

if (client && channel) {
// Check initial state
const member = channel.state.members[botUserId];
setOnline(Boolean(member?.user?.online));
client.on('user.presence.changed', handlePresenceChange);
}

return () => {
client?.off('user.presence.changed', handlePresenceChange);
};
}, [client, channel, botUserId]);

return online;
}
70 changes: 70 additions & 0 deletions kilo-app/src/components/kiloclaw/chat-theme.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
import { useEffect, useState } from 'react';
import { useColorScheme } from 'react-native';
import { type DeepPartial, type Theme } from 'stream-chat-expo';

import { useThemeColors } from '@/lib/hooks/use-theme-colors';

export function useStreamChatTheme(): DeepPartial<Theme> {
const colorScheme = useColorScheme();
const colors = useThemeColors();

const [theme, setTheme] = useState<DeepPartial<Theme>>(() => buildTheme(colorScheme, colors));

useEffect(() => {
setTheme(buildTheme(colorScheme, colors));
}, [colorScheme, colors]);

return theme;
}

function buildTheme(
colorScheme: ReturnType<typeof useColorScheme>,
colors: ReturnType<typeof useThemeColors>
): DeepPartial<Theme> {
return {
colors:
colorScheme === 'dark'
? {
black: colors.foreground,
white: colors.background,
white_smoke: colors.secondary,
white_snow: colors.muted,
grey: colors.mutedForeground,
grey_dark: colors.mutedForeground,
grey_gainsboro: colors.border,
grey_whisper: colors.border,
light_blue: 'hsl(0, 0%, 20%)',
light_gray: 'hsl(0, 0%, 20%)',
blue_alice: 'hsl(0, 0%, 18%)',
text_high_emphasis: colors.foreground,
text_low_emphasis: colors.mutedForeground,
bg_gradient_start: colors.background,
bg_gradient_end: colors.secondary,
icon_background: colors.card,
overlay: 'rgba(0, 0, 0, 0.8)',
}
: {},
dateHeader: {
container: {
backgroundColor: colorScheme === 'dark' ? 'rgba(255, 255, 255, 0.12)' : undefined,
},
text: {
color: colorScheme === 'dark' ? colors.foreground : undefined,
},
},
inlineDateSeparator: {
container: {
backgroundColor: colorScheme === 'dark' ? 'rgba(255, 255, 255, 0.12)' : undefined,
},
text: {
color: colorScheme === 'dark' ? colors.foreground : undefined,
},
},
messageInput: {
container: {
paddingHorizontal: 12,
borderColor: colors.border,
},
},
};
}
Loading
Loading