dashboard
repositories
activity
search
login
APPS
/
PAILot
summary
reflog
commits
tree
compare
forks
blame
|
history
|
raw
|
HEAD
fix: robust WebSocket reconnection after daemon restart
Matthias Nott
2026-03-08
6cbe1fb2618af557262a8717c494e7958494bf2d
[APPS/PAILot.git]
/
app
/
_layout.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import "../global.css";
import { Stack } from "expo-router";
import { ConnectionProvider } from "../contexts/ConnectionContext";
import { ChatProvider } from "../contexts/ChatContext";
import { ThemeProvider, useTheme } from "../contexts/ThemeContext";
import { StatusBar } from "expo-status-bar";
function InnerLayout() {
const { isDark, colors } = useTheme();
return (
<>
<StatusBar style={isDark ? "light" : "dark"} backgroundColor={colors.bg} />
<Stack
screenOptions={{
headerShown: false,
contentStyle: { backgroundColor: colors.bg },
animation: "slide_from_right",
}}
/>
</>
);
}
export default function RootLayout() {
return (
<ThemeProvider>
<ConnectionProvider>
<ChatProvider>
<InnerLayout />
</ChatProvider>
</ConnectionProvider>
</ThemeProvider>
);
}