Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(sidebar): settle a running thread once the agent finishes #14495

Closedpiotrnowakowski(GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromrefs/pull/14495/headopened View on GitHub

Showing 42 changed files with 35 additions and 4 deletions (loading 39).

x
0 of 42 viewed, 42 left
6 additions and 3 deletionsapps/mobile/src/features/home/useThreadListActions.tsModified
View file
@@ -1,6 +1,10 @@
import type { ThreadMoveDestination } from "../threads/threadOrder";
import type { EnvironmentThreadShell } from "@t3tools/client-runtime/state/shell";
-import { canSnooze, effectiveSnoozed } from "@t3tools/client-runtime/state/thread-settled";
+import {
+ canSnooze,
+ effectiveSnoozed,
+ isFiledAsSettled,
+} from "@t3tools/client-runtime/state/thread-settled";
import * as Cause from "effect/Cause";
import * as Haptics from "expo-haptics";
import { useCallback, useRef } from "react";
@@ -642,8 +646,7 @@
crossSection &&
(((section === "pinned" || thread.pinnedAt != null) &&
!environmentSupportsPinning(thread.environmentId)) ||
- (thread.settledOverride === "settled" &&
- !environmentSupportsSettlement(thread.environmentId)) ||
+ (isFiledAsSettled(thread) && !environmentSupportsSettlement(thread.environmentId)) ||
(effectiveSnoozed(thread, { now: new Date().toISOString() }) &&
!environmentSupportsSnooze(thread.environmentId)))
1 addition and 1 deletionapps/mobile/src/features/threads/thread-list-v2-items.tsxModified
View file
@@ -1197,7 +1197,7 @@
onSwipeableWillOpen={props.onSwipeableWillOpen}
primaryAction={primaryAction}
secondaryAction={secondaryAction}