fix(mobile): a dev server left running no longer shows the waiting bolt (#15194)
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
1 parent
44b4965017
commit
a0bf1eee48
3 files changed
+15
-6
No files matched your search
@@ -474,11 +474,12 @@ export const ThreadDetailScreen = memo(function ThreadDetailScreen(props: Thread
|
||||
}
|
||||
if (pendingBackgroundWork !== null && contentPresentationKind === "ready") {
|
||||
return {
|
||||
kind: "waiting",
|
||||
kind: "background",
|
||||
label: pendingBackgroundWork.title,
|
||||
accessibilityLabel: `${pendingBackgroundWork.title}: ${pendingBackgroundWork.items
|
||||
.map((item) => item.label)
|
||||
.join(", ")}`,
|
||||
waiting: pendingBackgroundWork.waiting,
|
||||
};
|
||||
}
|
||||
return null;
|
||||
|
||||
@@ -385,16 +385,18 @@ function FloatingStatusLabel(props: {
|
||||
</StatusLabelRow>
|
||||
);
|
||||
}
|
||||
if (props.status.kind === "waiting") {
|
||||
if (props.status.kind === "background") {
|
||||
return (
|
||||
<StatusLabelRow
|
||||
key="waiting"
|
||||
key="background"
|
||||
accessibilityLabel={props.status.accessibilityLabel}
|
||||
className="gap-2"
|
||||
onLayout={props.onLayout}
|
||||
>
|
||||
{/* A dev server can run for hours after the agent is done, so only work
|
||||
that will wake the agent gets the bolt. */}
|
||||
<SymbolView
|
||||
name={{ ios: "bolt", android: "bolt" }}
|
||||
name={props.status.waiting ? { ios: "bolt", android: "bolt" } : "terminal"}
|
||||
size={13}
|
||||
tintColorClassName="foreground"
|
||||
type="monochrome"
|
||||
|
||||
@@ -9,8 +9,14 @@ export type FloatingWorkingStatus =
|
||||
| { readonly kind: "working"; readonly startedAt: string }
|
||||
| { readonly kind: "syncing"; readonly label: string }
|
||||
| { readonly kind: "compacting" }
|
||||
// The turn settled while background work it started still runs.
|
||||
| { readonly kind: "waiting"; readonly label: string; readonly accessibilityLabel: string }
|
||||
// The turn settled while background work it started still runs. `waiting`
|
||||
// is false when only commands remain, such as a dev server: the agent is done.
|
||||
| {
|
||||
readonly kind: "background";
|
||||
readonly label: string;
|
||||
readonly accessibilityLabel: string;
|
||||
readonly waiting: boolean;
|
||||
}
|
||||
// A task whose thread the server has not created yet: the worktree may
|
||||
// still be checking out, so there is no turn to time.
|
||||
| { readonly kind: "preparing"; readonly label: string }
|
||||
|
||||
Reference in new issue
Block a user