Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
371b52d
feat(web): answer pull request actions on the row at once (#12843)
maria-rcks Sep 21, 2026
33cb911
fix(mobile): stop iOS autocorrect from rewriting search queries (#12949)
juliusmarminge Sep 21, 2026
2c2fa8c
fix(web): pull request embed chip shows the state icon (#12951)
flamboh Sep 21, 2026
2d377bf
fix(web): dismiss selection actions when pressing buttons (#12950)
Yash-Singh1 Sep 21, 2026
d2a90b9
fix(web): name message copy actions accurately (#12865)
saphid Sep 21, 2026
80d9c18
fix(contracts): old message-sent events without turnId no longer stop…
Mnigos Sep 21, 2026
e1cbb70
fix(web): the custom snooze calendar starts the week where the locale…
Mnigos Sep 21, 2026
76cc9b0
chore(mobile): bump app version to 1.3.0
t3-code-bot[bot] Sep 21, 2026
1262d2f
feat(server): let t3.json limit or disable submodule init in new work…
juliusmarminge Sep 22, 2026
742173a
feat(settings): resolve t3.json inside the project settings resolver …
juliusmarminge Sep 22, 2026
0141bc2
feat(settings): choose how new worktrees initialize submodules (#12955)
juliusmarminge Sep 22, 2026
9a609a4
fix(web): show thread undo notice in the sidebar (#12972)
juliusmarminge Sep 22, 2026
5423ba0
feat(web): merge the comment and review buttons into one composer (#1…
Bil0000 Sep 22, 2026
e65bc1c
fix(web): allow text selection when renaming threads (#12935)
carterwsmith Sep 22, 2026
5a61f50
chore(lint): report className restyling of components/ui exports (#12…
juliusmarminge Sep 22, 2026
c26119a
refactor(web): drop className overrides that repeat the base styles (…
juliusmarminge Sep 22, 2026
438bf46
fix(web): close menus when clicking into the browser tab (#11148)
Gigioxx Sep 22, 2026
b5a0f81
refactor(web): give Spinner and RefreshIcon a size prop (#12985)
juliusmarminge Sep 22, 2026
aff9318
fix(web): retry failed attachment uploads after reconnect (#10338)
StiensWout Sep 22, 2026
da6a85b
fix(web): respect panel motion in composer transitions (#11064)
gsimone Sep 22, 2026
7c2702d
fix(web): read panel animation settings in the composer (#13098)
juliusmarminge Sep 22, 2026
f25a8e4
feat(models): add opus 5.5 without changing existing aliases (#13094)
t3-code-bot[bot] Sep 22, 2026
17e3477
Update model manifest with new timestamps and models
juliusmarminge Sep 22, 2026
c0490e9
refactor(web): use ghost-muted where ghost buttons restyled to muted …
juliusmarminge Sep 22, 2026
1a81ea8
refactor(web): fold repeated overrides into ui defaults (#13021)
juliusmarminge Sep 22, 2026
ce98d41
refactor(web): mark the current menu value with MenuRadioGroup (#13022)
juliusmarminge Sep 22, 2026
ed85694
refactor(web): add an active prop to CommandItem (#13023)
juliusmarminge Sep 22, 2026
bbd5cc0
chore(lint): exempt CollapsibleTrigger from no-restyle (#13024)
juliusmarminge Sep 22, 2026
9515016
refactor(web): use icon-xs where icon buttons were forced to size-6 (…
juliusmarminge Sep 22, 2026
b4f1f18
refactor(web): add radius="none" to ScrollArea (#13026)
juliusmarminge Sep 22, 2026
7b54af9
refactor(web): add font="mono" to Input (#13027)
juliusmarminge Sep 22, 2026
be80e36
refactor(web): add SidebarInput (#13028)
juliusmarminge Sep 22, 2026
8d02447
refactor(web): add a label variant to Badge (#13029)
juliusmarminge Sep 22, 2026
7d658c2
refactor(web): give Skeleton three shapes (#13030)
juliusmarminge Sep 22, 2026
aa2b25d
refactor(web): one wrap width for tooltips, plus a code variant (#13031)
juliusmarminge Sep 22, 2026
f3d3fe4
refactor(web): one vertical rhythm for dialog bodies (#13032)
juliusmarminge Sep 22, 2026
18aa703
refactor(web): ghost-muted icons follow the text; add ghost-destructi…
juliusmarminge Sep 22, 2026
4c9fbf1
refactor(web): InlineButton underlines on hover and takes a tone (#13…
juliusmarminge Sep 22, 2026
d7736e0
refactor(web): one minimum width for menus, three widths for popovers…
juliusmarminge Sep 22, 2026
da89e10
refactor(web): every textarea caps its growth; the diff comment box i…
juliusmarminge Sep 22, 2026
016cdb9
refactor(web): stacked sidebar groups share one inset (#13037)
juliusmarminge Sep 22, 2026
e420ef9
refactor(web): Collapsible stays a plain container (#13038)
juliusmarminge Sep 22, 2026
0fa4a85
refactor(web): show more / show less are ordinary sidebar sub-rows (#…
juliusmarminge Sep 22, 2026
0ee02eb
refactor(web): Empty has three sizes (#13040)
juliusmarminge Sep 22, 2026
4321aa2
refactor(web): one row height for select, combobox and radio items (#…
juliusmarminge Sep 22, 2026
1c2f933
refactor(web): render menu and popover triggers through Button (#13042)
juliusmarminge Sep 22, 2026
83bbfa7
refactor(web): sidebar alerts use the standard variants; one keycap (…
juliusmarminge Sep 22, 2026
f193a68
fix(server): bypass owned caches on explicit provider refresh (#13109)
juliusmarminge Sep 22, 2026
d7819c1
chore(devices): bump agent-device to 0.21.12 (#13124)
juliusmarminge Sep 22, 2026
bed0b4c
chore(mobile): drop dead nitro-markdown tgz override and @expo/metro-…
juliusmarminge Sep 22, 2026
242816a
feat(web): show settings scope as a sentence at the top of the page (…
juliusmarminge Sep 22, 2026
db9a067
refactor(web): move settings scope pickers into breadcrumbs (#13165)
Yash-Singh1 Sep 23, 2026
7e65b22
feat(auth): share provider sign-in flows and credential bindings (#12…
juliusmarminge Sep 23, 2026
ec28eef
refactor(mobile): git sheets use uniwind platform variants instead of…
juliusmarminge Sep 23, 2026
3409651
chore(mobile): name the two project favicon caches by their job (#13160)
juliusmarminge Sep 23, 2026
6dcde21
revert(mobile): git sheets back to Platform.OS ternaries (un-guarded …
juliusmarminge Sep 23, 2026
5d493d6
docs(mobile): document the two mobile routes that intentionally skip …
juliusmarminge Sep 23, 2026
5821b77
refactor(mobile): break module cycles with focused extractions (#13151)
juliusmarminge Sep 23, 2026
f223312
fix(server): generate PR diffs from branch changes (#13170)
Yash-Singh1 Sep 23, 2026
db5b71b
merge: sync upstream main through f22331240e
BreakTheBeta Sep 23, 2026
1704d25
refactor(mobile): move provider-switch model logic into state
BreakTheBeta Sep 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ jobs:
- name: Check
run: vp check

- name: Check className overrides on components/ui do not grow
run: vp run lint:restyle-ceiling

- name: Typecheck
run: vpr typecheck

Expand Down
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ Full glossary with file links: `docs/internals/glossary.md`
## Taste

- Complexity belongs at the adapter boundary. Orchestration stays pure, UI stays dumb.
- `apps/web/src/components/ui` exports own their look. Pick a `variant` or `size`; do not restyle one with `className`. If none fits, add a variant to the component, not classes at the call site. Layout classes (width, flex, margin, position) belong on the parent. `shadcn/no-restyle` reports violations and CI caps their count.
- Inferred types over annotations. `any` is the enemy.
- Comments describe how a thing is used, and move when the code moves. To be used mostly to describe functions, not to annotate every line of behavior.
- Our users drive agents all day and notice a dropped frame, a lying spinner, and a stale label. No continuously repainting animations; they peg the GPU on high-refresh displays.
Expand Down
1 change: 0 additions & 1 deletion apps/mobile/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ const config: ExpoConfig = {
platforms: ["ios", "android"],
scheme: variant.scheme,
version: "1.2.0",

runtimeVersion: {
// Development manifests resolve on every launch, so avoid fingerprint's
// expensive native-project calculation there. Preview and production stay
Expand Down
Binary file not shown.
4 changes: 0 additions & 4 deletions apps/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"@clerk/expo": "catalog:",
"@effect/atom-react": "catalog:",
"@expo-google-fonts/dm-sans": "^0.4.2",
"@expo/metro-runtime": "~57.0.14",
"@expo/ui": "~57.0.14",
"@legendapp/list": "catalog:",
"@material/material-color-utilities": "0.3.0",
Expand Down Expand Up @@ -139,9 +138,6 @@
"tailwindcss": "^4.0.0",
"typescript": "catalog:"
},
"overrides": {
"react-native-nitro-markdown": "file:deps/react-native-nitro-markdown-0.5.0.tgz"
},
"expo": {
"install": {
"exclude": [
Expand Down
17 changes: 17 additions & 0 deletions apps/mobile/src/Stack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,15 @@ const SettingsContentStack = createNativeStackNavigator({
title: "Diagnostics",
},
}),
// Deliberately the one settings screen with no `linking:` path. Its params
// are a tap-time snapshot, not a stable resource address: `now` is the
// wall-clock of the tap, `environmentIds` is the usage screen's local
// filter selection, and the window id/kind identify freshly aggregated
// pools. React Navigation round-trips non-path params through the URL as
// query strings, so a path here would bake in a permanently stale
// timestamp and filter. The deep linkable surface is the list at
// `settings/usage`, which rebuilds this state and pushes the detail from a
// tapped account segment.
SettingsUsageAccount: createNativeStackScreen({
screen: UsageLimitAccountScreen,
options: { title: "Account" },
Expand Down Expand Up @@ -742,6 +751,14 @@ const RootStackConfig = createNativeStackNavigator({
linking: `${THREAD_LINKING_PREFIX}/attachments/:attachmentId`,
options: SOLID_HEADER_OPTIONS,
}),
// Deliberately the one root route with no `linking:` path. The route
// carries zero params: its content is a session object (staged model,
// provider groups, and live update callbacks) that the active
// ThreadComposer presents into ExistingThreadSettingsRouteProvider before
// pushing this screen — state no URL can reconstruct. Reached without a
// presented session the screen navigates straight back, so a path would
// only produce a flash-and-dismiss link. Deep links to a thread land on
// `threads/:environmentId/:threadId`, where this sheet is one tap away.
ThreadSettingsSheet: createNativeStackScreen({
screen: ExistingThreadSettingsRouteScreen,
options: {
Expand Down
18 changes: 18 additions & 0 deletions apps/mobile/src/components/ConfirmDialog.types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
export type ConfirmDialogRequest = {
readonly title: string;
readonly message?: string;
readonly cancelText?: string;
readonly confirmText: string;
readonly destructive?: boolean;
readonly onConfirm: () => void;
readonly onCancel?: () => void;
};

export type TextInputDialogRequest = {
readonly title: string;
readonly initialValue: string;
readonly cancelText?: string;
readonly confirmText: string;
readonly onConfirm: (value: string) => void;
readonly onCancel?: () => void;
};
20 changes: 2 additions & 18 deletions apps/mobile/src/components/ConfirmDialogHost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,9 @@ import { Platform, Modal, Pressable, TextInput, View } from "react-native";
import { cn } from "../lib/cn";
import { AppText } from "./AppText";
import { MaterialConfirmDialog } from "./MaterialConfirmDialog";
import type { ConfirmDialogRequest, TextInputDialogRequest } from "./ConfirmDialog.types";

export type ConfirmDialogRequest = {
readonly title: string;
readonly message?: string;
readonly cancelText?: string;
readonly confirmText: string;
readonly destructive?: boolean;
readonly onConfirm: () => void;
readonly onCancel?: () => void;
};

export type TextInputDialogRequest = {
readonly title: string;
readonly initialValue: string;
readonly cancelText?: string;
readonly confirmText: string;
readonly onConfirm: (value: string) => void;
readonly onCancel?: () => void;
};
export type { ConfirmDialogRequest, TextInputDialogRequest } from "./ConfirmDialog.types";

type DialogRequest =
| { readonly kind: "confirm"; readonly request: ConfirmDialogRequest }
Expand Down
2 changes: 1 addition & 1 deletion apps/mobile/src/components/FilePreview.ios.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { requireNativeModule } from "expo";
import { useEffect, useEffectEvent, useId } from "react";
import { Alert } from "react-native";

import type { ResolvedFilePreviewSource } from "./FilePreviewModal";
import type { ResolvedFilePreviewSource } from "./FilePreviewModal.types";

const NativeControls = requireNativeModule<{
presentFile(
Expand Down
2 changes: 1 addition & 1 deletion apps/mobile/src/components/FilePreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Alert, Modal, Pressable, View } from "react-native";
import ImageViewing from "react-native-image-viewing";

import { openAttachmentInViewer } from "../lib/attachmentDownload";
import type { ResolvedFilePreviewSource } from "./FilePreviewModal";
import type { ResolvedFilePreviewSource } from "./FilePreviewModal.types";
import { MediaImagePreview } from "./MediaImagePreview";
import { AppText as Text } from "./AppText";

Expand Down
21 changes: 2 additions & 19 deletions apps/mobile/src/components/FilePreviewModal.tsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,13 @@
import { useIsFocused } from "@react-navigation/native";
import type { AssetResource, EnvironmentId } from "@t3tools/contracts";
import { useEffect, useEffectEvent, useState } from "react";
import { Alert, Keyboard } from "react-native";

import type { FileBackedComposerAttachment } from "../lib/composerImages";
import { loadLocalAttachmentPreview } from "../lib/localAttachmentPreview";
import type { MediaActionsSource } from "../lib/mediaActions";
import { useRefreshAssetUrl } from "../state/assets";
import { FilePreview } from "./FilePreview";
import type { FilePreviewSource } from "./FilePreviewModal.types";

export interface ResolvedFilePreviewSource {
readonly kind: "image" | "pdf" | "document";
readonly mimeType?: string;
readonly uri: string;
readonly name?: string;
readonly sourceIdentifier?: string;
readonly srcFragment?: string;
readonly actionsSource?: MediaActionsSource;
}

export type FilePreviewSource = Omit<ResolvedFilePreviewSource, "uri"> &
(
| { readonly uri: string }
| { readonly attachment: FileBackedComposerAttachment }
| { readonly environmentId: EnvironmentId; readonly resource: AssetResource }
);
export type { FilePreviewSource, ResolvedFilePreviewSource } from "./FilePreviewModal.types";

function ResolvedFilePreview(props: {
readonly source: FilePreviewSource;
Expand Down
21 changes: 21 additions & 0 deletions apps/mobile/src/components/FilePreviewModal.types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import type { AssetResource, EnvironmentId } from "@t3tools/contracts";

import type { FileBackedComposerAttachment } from "../lib/composerImages";
import type { MediaActionsSource } from "../lib/mediaActions";

export interface ResolvedFilePreviewSource {
readonly kind: "image" | "pdf" | "document";
readonly mimeType?: string;
readonly uri: string;
readonly name?: string;
readonly sourceIdentifier?: string;
readonly srcFragment?: string;
readonly actionsSource?: MediaActionsSource;
}

export type FilePreviewSource = Omit<ResolvedFilePreviewSource, "uri"> &
(
| { readonly uri: string }
| { readonly attachment: FileBackedComposerAttachment }
| { readonly environmentId: EnvironmentId; readonly resource: AssetResource }
);
2 changes: 1 addition & 1 deletion apps/mobile/src/components/MaterialConfirmDialog.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ConfirmDialogRequest } from "./ConfirmDialogHost";
import type { ConfirmDialogRequest } from "./ConfirmDialog.types";

export interface MaterialConfirmDialogProps {
readonly request: Pick<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { SegmentedButton, SingleChoiceSegmentedButtonRow, Text } from "@expo/ui/
import { defaultMinSize, fillMaxWidth } from "@expo/ui/jetpack-compose/modifiers";
import { useAppearancePreferences } from "../features/settings/appearance/AppearancePreferencesProvider";
import { useScaledTextRole } from "../features/settings/appearance/useScaledTextRole";
import type { SegmentedControlProps } from "./SegmentedControl";
import type { SegmentedControlProps } from "./SegmentedControl.types";

/** Compose content shared by screen controls and native dialogs, inside their existing Host. */
export function MaterialSegmentedButtons<Value extends number | string>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { MaterialSegmentedButtons } from "./MaterialSegmentedButtons.android";
import { View } from "react-native";

import { useAppearancePreferences } from "../features/settings/appearance/AppearancePreferencesProvider";
import type { SegmentedControlProps } from "./SegmentedControl";
import type { SegmentedControlProps } from "./SegmentedControl.types";

export function MaterialSegmentedControl<Value extends number | string>(
props: SegmentedControlProps<Value>,
Expand Down
2 changes: 1 addition & 1 deletion apps/mobile/src/components/MaterialSegmentedControl.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { SegmentedControlProps } from "./SegmentedControl";
import type { SegmentedControlProps } from "./SegmentedControl.types";

export function MaterialSegmentedControl<Value extends number | string>(
_props: SegmentedControlProps<Value>,
Expand Down
2 changes: 1 addition & 1 deletion apps/mobile/src/components/MaterialSwitch.android.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Host, Switch as ComposeSwitch } from "@expo/ui/jetpack-compose";
import { View } from "react-native";
import type { ThemedSwitchProps } from "./ThemedSwitch";
import type { ThemedSwitchProps } from "./MaterialSwitch.types";

import { useAppearancePreferences } from "../features/settings/appearance/AppearancePreferencesProvider";

Expand Down
12 changes: 12 additions & 0 deletions apps/mobile/src/components/MaterialSwitch.types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import type { SwitchProps } from "react-native";

export type ThemedSwitchProps = Pick<
SwitchProps,
| "accessibilityHint"
| "accessibilityLabel"
| "disabled"
| "onValueChange"
| "style"
| "testID"
| "value"
>;
2 changes: 1 addition & 1 deletion apps/mobile/src/components/MediaImagePreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useSafeAreaInsets } from "react-native-safe-area-context";
import { useMediaActions } from "../lib/mediaActions";
import { AppText } from "./AppText";
import { SymbolView } from "./AppSymbol";
import type { ResolvedFilePreviewSource } from "./FilePreviewModal";
import type { ResolvedFilePreviewSource } from "./FilePreviewModal.types";
import { MediaActionsMenu } from "./MediaActionsMenu";
import { MediaSourceCaption } from "./MediaSourceCaption";

Expand Down
2 changes: 1 addition & 1 deletion apps/mobile/src/components/ProjectFavicon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
hasLoadedProjectFavicon,
markProjectFaviconFailed,
markProjectFaviconLoaded,
} from "./projectFaviconCache";
} from "../lib/projectFaviconRequests";

const EMPTY_FAVICON_URL = Atom.make<string | null>(null);

Expand Down
16 changes: 2 additions & 14 deletions apps/mobile/src/components/SegmentedControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,9 @@ import Animated, { Easing, LinearTransition, ReduceMotion } from "react-native-r
import { AppText as Text } from "./AppText";
import { cn } from "../lib/cn";
import { MaterialSegmentedControl } from "./MaterialSegmentedControl";
import type { SegmentedControlProps } from "./SegmentedControl.types";

export interface SegmentedControlProps<Value extends number | string> {
readonly options: readonly {
readonly value: Value;
readonly label: string;
readonly accessibilityLabel?: string;
}[];
readonly selected: Value;
readonly onSelect: (value: Value) => void;
/** Compact sizing applies to the non-Material control. */
readonly size?: "default" | "compact";
/** "tab" for the view switcher; filters stay plain buttons. */
readonly role?: "tab" | "button";
readonly className?: string;
}
export type { SegmentedControlProps } from "./SegmentedControl.types";

export function SegmentedControl<Value extends number | string>(
props: SegmentedControlProps<Value>,
Expand Down
14 changes: 14 additions & 0 deletions apps/mobile/src/components/SegmentedControl.types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export interface SegmentedControlProps<Value extends number | string> {
readonly options: readonly {
readonly value: Value;
readonly label: string;
readonly accessibilityLabel?: string;
}[];
readonly selected: Value;
readonly onSelect: (value: Value) => void;
/** Compact sizing applies to the non-Material control. */
readonly size?: "default" | "compact";
/** "tab" for the view switcher; filters stay plain buttons. */
readonly role?: "tab" | "button";
readonly className?: string;
}
14 changes: 3 additions & 11 deletions apps/mobile/src/components/ThemedSwitch.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
import { Platform, Switch, type SwitchProps } from "react-native";
import { Platform, Switch } from "react-native";

import { MaterialSwitch } from "./MaterialSwitch";
import type { ThemedSwitchProps } from "./MaterialSwitch.types";

export type ThemedSwitchProps = Pick<
SwitchProps,
| "accessibilityHint"
| "accessibilityLabel"
| "disabled"
| "onValueChange"
| "style"
| "testID"
| "value"
>;
export type { ThemedSwitchProps } from "./MaterialSwitch.types";

export function ThemedSwitch(props: ThemedSwitchProps) {
if (Platform.OS === "android") {
Expand Down
13 changes: 9 additions & 4 deletions apps/mobile/src/connection/environment-cache-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ import * as Option from "effect/Option";
import * as Schema from "effect/Schema";

import * as MobileDatabase from "../persistence/mobile-database";
import {
attachProjectFaviconDatabase,
projectFaviconDatabaseCache,
} from "../lib/projectFaviconDatabaseCache";

const SERVER_CONFIG_CACHE_SCHEMA_VERSION = 1;
const VCS_REFS_CACHE_SCHEMA_VERSION = 1;
Expand Down Expand Up @@ -111,7 +115,7 @@ export const make = Effect.fn("MobileEnvironmentCacheStore.make")(function* () {
decode: decodeStoredShellSnapshot,
select: (stored) =>
stored.environmentId === environmentId ? Option.some(stored.snapshot) : Option.none(),
}),
}).pipe(Effect.tap(() => Effect.promise(() => projectFaviconDatabaseCache.hydrate()))),
),
saveShell: Effect.fn("MobileEnvironmentCache.saveShell")(function* (environmentId, snapshot) {
const payload = yield* encodeStoredShellSnapshot({
Expand Down Expand Up @@ -222,9 +226,10 @@ export const make = Effect.fn("MobileEnvironmentCacheStore.make")(function* () {
.pipe(Effect.mapError(mapDatabaseError("clear-vcs-refs"))),
),
clear: Effect.fn("MobileEnvironmentCache.clear")((environmentId) =>
database
.clearEnvironmentCache(environmentId)
.pipe(Effect.mapError(mapDatabaseError("clear-environment"))),
Effect.promise(() => projectFaviconDatabaseCache.clearEnvironment(environmentId)).pipe(
Effect.andThen(database.clearEnvironmentCache(environmentId)),
Effect.mapError(mapDatabaseError("clear-environment")),
),
),
});
});
Expand Down
Loading
Loading