Skip to content

Commit df23db0

Browse files
Sync public snapshot from freebuff-private
1 parent a4dc965 commit df23db0

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

‎common/src/desktop-cloud/questions.ts‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,19 @@ export type CloudQuestion = Omit<
3737
export type CloudQuestionRequest = {
3838
id: string
3939
questions: CloudQuestion[]
40-
/** Its turn ended while the card waited (DEVICE_QUESTION_WAIT_MS): an answer
40+
/** Its turn ended while the card waited (QUESTION_WAIT_MS): an answer
4141
* now goes out as the user's next message. */
4242
deferred?: boolean
4343
}
4444

4545
/**
46-
* How long a turn on the user's computer waits on an unanswered question card
47-
* before it ends quietly (completed, no error) and frees its runner slot. The
48-
* card stays open on the chat's latest run and its answer becomes the next
49-
* message; the client looks for such cards only on runs at least this long.
46+
* How long a turn waits on an unanswered question card before it ends quietly
47+
* (completed, no error): it frees its runner slot, and a Cloud VM chat's VM
48+
* idles to its pause instead of being held awake by a running turn. The card
49+
* stays open on the chat's latest run and its answer becomes the next message;
50+
* the client looks for such cards only on runs at least this long.
5051
*/
51-
export const DEVICE_QUESTION_WAIT_MS = 15 * 60_000
52+
export const QUESTION_WAIT_MS = 15 * 60_000
5253

5354
export const cloudQuestionAnswerSchema = z.discriminatedUnion('skipped', [
5455
z.object({ skipped: z.literal(true) }),

0 commit comments

Comments
 (0)