Skip to content
Merged
Changes from all commits
Commits
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
3 changes: 1 addition & 2 deletions apps/mobile/src/features/home/useThreadListActions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { threadRuntimeIsActive } from "@t3tools/client-runtime/state/shell";
import type { EnvironmentThreadShell } from "@t3tools/client-runtime/state/shell";
import { canSnooze } from "@t3tools/client-runtime/state/thread-settled";
import * as Cause from "effect/Cause";
Expand Down Expand Up @@ -122,7 +121,7 @@ function useThreadActionExecutor(
}
// Archive keeps its original, narrower guard: never interrupt a
// thread mid-turn.
if (action === "archive" && threadRuntimeIsActive(thread.runtime)) {
if (action === "archive" && !threadCanArchive(thread.runtime)) {
Alert.alert(
actionFailureTitle(action),
"This thread is working. Interrupt it first, then try again.",
Expand Down
Loading