Update files

This commit is contained in:
Mohamed Boudra
2026-02-09 13:17:28 +07:00
parent 34fff59658
commit 52a2fa71de
4 changed files with 359 additions and 93 deletions
@@ -521,8 +521,9 @@ export function AgentStreamView({
});
}, [agentId, pendingPermissionItems.length, streamHead, streamItems]);
const showSyncingIndicator = isSyncingHistory;
const showWorkingIndicator = agent.status === "running";
const showBottomBar = showWorkingIndicator || isVoiceMode;
const showBottomBar = showSyncingIndicator || showWorkingIndicator || isVoiceMode;
const listHeaderComponent = useMemo(() => {
const hasPermissions = pendingPermissionItems.length > 0;
@@ -532,7 +533,11 @@ export function AgentStreamView({
return null;
}
const leftContent = showWorkingIndicator ? <WorkingIndicator /> : null;
const leftContent = showSyncingIndicator
? <SyncingIndicator />
: showWorkingIndicator
? <WorkingIndicator />
: null;
return (
<View style={stylesheet.contentWrapper}>
@@ -582,6 +587,7 @@ export function AgentStreamView({
);
}, [
pendingPermissionItems,
showSyncingIndicator,
showWorkingIndicator,
client,
streamHead,
@@ -864,6 +870,15 @@ function WorkingIndicator() {
);
}
function SyncingIndicator() {
return (
<View style={stylesheet.syncingIndicator}>
<ActivityIndicator size="small" color={stylesheet.syncingIndicatorText.color} />
<Text style={stylesheet.syncingIndicatorText}>Catching up…</Text>
</View>
);
}
// Permission Request Card Component
function PermissionRequestCard({
permission,
@@ -1298,6 +1313,17 @@ const stylesheet = StyleSheet.create((theme) => ({
borderRadius: 3,
backgroundColor: theme.colors.foregroundMuted,
},
syncingIndicator: {
flexDirection: "row",
alignItems: "center",
gap: theme.spacing[2],
paddingVertical: theme.spacing[1],
paddingLeft: theme.spacing[2],
},
syncingIndicatorText: {
color: theme.colors.foregroundMuted,
fontSize: theme.fontSize.sm,
},
invertedWrapper: {
transform: [{ scaleY: -1 }],
width: "100%",