dsh-better-ask-user 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -458,22 +458,18 @@ function QuestionFlow({ pending, t, useStore, useQuestionCard, actions }: Questi
458
458
  >
459
459
  <header className={css.header}>
460
460
  <div className={css.headingBlock}>
461
- <div className={css.titleRow}>
462
- <div
463
- className={css.title}
464
- id={questionId}
465
- role="heading"
466
- aria-level={2}
467
- >
468
- <MarkdownText text={question.question} variant="compact" labels={markdownLabels} />
461
+ {question.header !== undefined && question.header.trim() !== question.question.trim() && (
462
+ <div className={css.eyebrow}>
463
+ <MarkdownText text={question.header} variant="compact" labels={markdownLabels} />
469
464
  </div>
470
- {question.header !== undefined && question.header.trim() !== question.question.trim()
471
- && !question.question.toLocaleLowerCase().includes(question.header.trim().toLocaleLowerCase()) && (
472
- <span className={css.headerChip}>
473
- <MarkdownText text={question.header} variant="compact" labels={markdownLabels} />
474
- </span>
475
- )}
476
- {review !== undefined && <span className={css.statusChip}>{t('review.status')}</span>}
465
+ )}
466
+ <div
467
+ className={css.title}
468
+ id={questionId}
469
+ role="heading"
470
+ aria-level={2}
471
+ >
472
+ <MarkdownText text={question.question} variant="compact" labels={markdownLabels} />
477
473
  </div>
478
474
  </div>
479
475
  <div className={css.headerActions}>
@@ -498,6 +494,7 @@ function QuestionFlow({ pending, t, useStore, useQuestionCard, actions }: Questi
498
494
  </div>
499
495
  </header>
500
496
  <QuestionWaitBar card={card} t={t} busy={busy !== null} onTakeTime={takeTime} />
497
+ {review !== undefined && <div className={css.reviewStatus}>{review.length === 0 ? t('review.unanswered') : t('review.status')}</div>}
501
498
 
502
499
  {!minimized && (
503
500
  <>
@@ -1,12 +1,10 @@
1
1
  .row {
2
2
  --cfg-line: var(--dsw-alias-border-l2);
3
- --cfg-line-strong: var(--dsw-alias-border-l3);
4
- --cfg-surface: var(--dsw-alias-bg-layer-2);
5
- --cfg-sunken: color-mix(in srgb, var(--dsw-alias-label-primary) 4%, var(--dsw-alias-bg-layer-1));
3
+ --cfg-surface: var(--dsw-alias-bg-layer-3);
6
4
  --cfg-ink: var(--dsw-alias-label-primary);
7
5
  --cfg-muted: var(--dsw-alias-label-secondary);
8
- --cfg-accent: #3388bb;
9
- --cfg-accent-text: #14587f;
6
+ --cfg-accent: var(--dsw-alias-state-business-primary, #3388bb);
7
+ --cfg-accent-text: color-mix(in srgb, var(--cfg-accent) 70%, var(--cfg-ink));
10
8
  --cfg-hover: var(--dsw-alias-interactive-bg-hover);
11
9
  display: flex;
12
10
  flex-direction: column;
@@ -20,7 +18,7 @@
20
18
  min-width: 0;
21
19
  overflow: hidden;
22
20
  border: 1px solid var(--cfg-line);
23
- border-radius: 12px;
21
+ border-radius: 10px;
24
22
  background: var(--cfg-surface);
25
23
  color: var(--cfg-ink);
26
24
  font-size: inherit;
@@ -32,21 +30,20 @@
32
30
  appearance: none;
33
31
  display: block;
34
32
  width: 100%;
35
- padding: 10px 12px;
33
+ padding: 8px 10px;
36
34
  border: 0;
37
35
  background: transparent;
38
36
  color: inherit;
39
37
  cursor: pointer;
40
38
  font: inherit;
41
39
  text-align: left;
42
- transition: background-color 100ms ease;
43
40
  }
44
41
  .toggle:hover { background: var(--cfg-hover); }
45
42
  .toggle:focus-visible { outline: 2px solid var(--cfg-accent); outline-offset: -3px; border-radius: 8px; }
46
43
  .labelRow { display: flex; align-items: center; gap: 6px; }
47
44
  .caret { display: inline-flex; flex: none; color: var(--cfg-muted); }
48
45
  .caret svg { width: 12px; height: 12px; }
49
- .label { color: var(--cfg-muted); font-size: 11px; line-height: 18px; font-weight: 500; }
46
+ .label { color: var(--cfg-muted); font-size: 12px; font-weight: 500; }
50
47
  .summary {
51
48
  display: -webkit-box;
52
49
  -webkit-box-orient: vertical;
@@ -55,11 +52,11 @@
55
52
  margin-top: 4px;
56
53
  white-space: pre-wrap;
57
54
  }
58
- .text { margin: 0; padding: 0 12px 12px; white-space: pre-wrap; }
55
+ .text { margin: 0; padding: 0 10px 10px; white-space: pre-wrap; }
59
56
  .details {
60
57
  max-height: min(50vh, 400px);
61
58
  margin: 0;
62
- padding: 0 12px 12px;
59
+ padding: 0 10px 10px;
63
60
  overflow: auto;
64
61
  overscroll-behavior: contain;
65
62
  scrollbar-width: thin;
@@ -72,18 +69,18 @@
72
69
  .header, .detail, .options { color: var(--cfg-muted); font-size: 12px; }
73
70
  .detail { white-space: pre-wrap; }
74
71
  .options { display: grid; gap: 4px; margin: 4px 0 0; padding: 0; list-style: none; }
75
- .options li { display: flex; align-items: flex-start; gap: 6px; padding: 6px 8px; border: 1px solid transparent; border-radius: 8px; }
76
- .options li[data-selected] { border-color: var(--cfg-accent); color: var(--cfg-ink); background: color-mix(in srgb, var(--cfg-accent) 8%, transparent); }
77
- .selection { display: grid; place-items: center; width: 16px; height: 18px; flex: none; color: var(--cfg-accent); }
72
+ .options li { display: flex; align-items: flex-start; gap: 6px; padding: 6px; border-radius: 6px; }
73
+ .options li[data-selected] { color: var(--cfg-ink); background: color-mix(in srgb, var(--cfg-accent) 9%, transparent); }
74
+ .selection { display: grid; place-items: center; width: 16px; height: 18px; flex: none; color: var(--cfg-accent-text); }
78
75
  .optionCopy { display: grid; min-width: 0; gap: 2px; }
79
76
  .optionDescription { color: var(--cfg-muted); }
80
77
  .answer { margin: 8px 0 0; white-space: pre-wrap; }
81
- .answerLabel { margin-right: 4px; color: var(--cfg-muted); font-size: 11px; line-height: 18px; }
78
+ .answerLabel { margin-right: 4px; color: var(--cfg-muted); font-size: 12px; }
82
79
  .actions { display: flex; align-items: center; gap: 4px; padding-right: 2px; color: var(--dsw-alias-label-tertiary); }
83
80
  .time { font-size: 11px; font-variant-numeric: tabular-nums; }
84
- .action { appearance: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; transition: background-color 140ms ease, color 140ms ease; }
81
+ .action { appearance: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
85
82
  .action svg { width: 14px; height: 14px; }
86
- .action:hover { background: var(--cfg-hover); color: var(--cfg-ink); }
83
+ .action:hover:not(:disabled) { background: var(--cfg-hover); color: var(--cfg-ink); }
87
84
  .action:focus-visible { outline: 2px solid var(--cfg-accent); outline-offset: 2px; }
88
85
  .action:disabled { opacity: .4; cursor: default; }
89
86
  .copyFeedback { color: var(--cfg-muted); font-size: 12px; }
@@ -94,8 +91,10 @@
94
91
  .question, .answer, .text { min-width: 0; overflow-wrap: anywhere; }
95
92
  @media (max-width: 640px) {
96
93
  .bubble { max-width: 100%; }
94
+ .toggle { min-height: 44px; }
95
+ .action { width: 44px; height: 44px; }
97
96
  }
98
97
  @media (pointer: coarse) { .toggle { min-height: 44px; } .action { width: 44px; height: 44px; } }
99
- @media (prefers-reduced-motion: reduce) { .toggle, .action { transition: none; } .spinner { animation: none; } }
98
+ @media (prefers-reduced-motion: reduce) { .toggle { transition: none; } .spinner { animation: none; } }
100
99
 
101
- [data-ds-dark-theme] .row { --cfg-accent: #4eb0e8; --cfg-accent-text: #6fc0ee; }
100
+ [data-ds-dark-theme] .row { --cfg-accent: var(--dsw-alias-state-business-primary, #4eb0e8); --cfg-accent-text: color-mix(in srgb, var(--cfg-accent) 70%, var(--cfg-ink)); }
@@ -1,50 +1,41 @@
1
- /* Compact countdown strip: ring, tabular time, one ghost action. */
2
1
  .bar {
3
- --ui-accent: #3388bb;
4
- --ui-accent-text: #14587f;
5
- --ui-ink-1: var(--dsw-alias-label-primary, #0f1115);
6
- --ui-ink-2: var(--dsw-alias-label-secondary, #61666b);
7
- --ui-ink-3: var(--dsw-alias-label-tertiary, #81858c);
8
- --ui-line-1: var(--dsw-alias-border-l1, #0000000a);
9
- --ui-line-2: var(--dsw-alias-border-l2, #0000001a);
10
- --ui-raised: var(--dsw-alias-bg-layer-2, #fff);
11
- --ui-hover: var(--dsw-alias-interactive-bg-hover, color-mix(in srgb, var(--ui-ink-1) 5%, transparent));
2
+ --cfg-accent: var(--dsw-alias-state-business-primary, #3388bb);
3
+ --cfg-accent-text: color-mix(in srgb, var(--cfg-accent) 70%, var(--cfg-ink));
4
+ --cfg-line: var(--dsw-alias-border-l2);
5
+ --cfg-ink: var(--dsw-alias-label-primary);
6
+ --cfg-muted: var(--dsw-alias-label-secondary);
7
+ --cfg-surface: var(--dsw-alias-bg-layer-2);
8
+ --cfg-hover: var(--dsw-alias-interactive-bg-hover);
12
9
  display: flex;
13
10
  align-items: center;
14
11
  flex-shrink: 0;
15
12
  gap: 8px;
16
- min-width: 0;
17
- min-height: 36px;
13
+ min-height: 32px;
18
14
  margin: 0 16px 10px;
19
- padding: 4px 6px 4px 10px;
20
- border: 1px solid var(--ui-line-2);
15
+ padding: 2px 4px 2px 8px;
16
+ border: 1px solid var(--cfg-line);
21
17
  border-radius: 8px;
22
- background: var(--ui-raised);
23
- color: var(--ui-ink-1);
18
+ background: var(--cfg-surface);
19
+ color: var(--cfg-ink);
24
20
  }
25
21
  .clock { position: relative; display: grid; place-items: center; width: 24px; height: 24px; flex: none; }
26
22
  .ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 2; transform: rotate(-90deg); }
27
- .track { stroke: var(--ui-line-2); }
28
- .remaining { stroke: var(--ui-accent); }
29
- .clockHand { width: 8px; height: 9px; margin-top: -4px; margin-left: 5px; border-left: 1.5px solid var(--ui-ink-2); border-bottom: 1.5px solid var(--ui-ink-2); }
30
- .pause { width: 16px; height: 16px; color: var(--ui-ink-2); }
31
- .status { display: flex; align-items: center; min-width: 0; }
32
- .time { color: var(--ui-ink-1); font-size: 12px; line-height: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
33
- .bar[data-wait-state='counting'] .time { font-weight: 500; }
34
- .takeTime { appearance: none; display: inline-flex; align-items: center; justify-content: center; flex: none; margin-left: auto; min-height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--ui-ink-3); font: inherit; font-size: 12px; line-height: 18px; font-weight: 500; cursor: pointer; transition: background-color 140ms ease, color 140ms ease; }
35
- .takeTime:hover:not(:disabled) { background: var(--ui-hover); color: var(--ui-ink-1); }
36
- .takeTime:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; }
23
+ .track { stroke: var(--cfg-line); }
24
+ .remaining { stroke: var(--cfg-accent); }
25
+ .clockHand { width: 8px; height: 9px; margin-top: -4px; margin-left: 5px; border-left: 1px solid var(--cfg-muted); border-bottom: 1px solid var(--cfg-muted); }
26
+ .pause { width: 16px; height: 16px; color: var(--cfg-muted); }
27
+ .status { display: flex; align-items: baseline; flex-wrap: wrap; flex: 1; gap: 0 8px; min-width: 0; }
28
+ .status > * + *::before { content: '·'; margin-right: 8px; color: var(--cfg-muted); }
29
+ .time { font-size: 12px; line-height: 20px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
30
+ .bar[data-wait-state='counting'] .time, .bar[data-wait-state='paused'] .time { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
31
+ .policy { color: var(--cfg-muted); font-size: 12px; line-height: 20px; }
32
+ .takeTime { appearance: none; flex: none; margin-left: auto; min-height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--cfg-muted); font: inherit; font-size: 12px; cursor: pointer; }
33
+ .takeTime:hover:not(:disabled) { background: var(--cfg-hover); color: var(--cfg-ink); }
34
+ .takeTime:active:not(:disabled) { background: color-mix(in srgb, var(--cfg-accent) 10%, transparent); }
35
+ .takeTime:focus-visible { outline: 2px solid var(--cfg-accent); outline-offset: 2px; }
37
36
  .takeTime:disabled { opacity: .4; cursor: default; }
38
- @media (max-width: 720px) {
39
- .bar { margin: 0 12px 8px; padding: 4px 6px 4px 8px; }
40
- }
41
- @media (pointer: coarse) {
42
- .takeTime { min-height: 44px; }
43
- }
44
- @media (prefers-reduced-motion: reduce) {
45
- .takeTime { transition: none; }
46
- }
47
- [data-ds-dark-theme] .bar {
48
- --ui-accent: #4eb0e8;
49
- --ui-accent-text: #6fc0ee;
50
- }
37
+ @media (max-width: 720px) { .bar { gap: 8px; margin: 0 16px 10px; padding: 4px 8px; } .status { display: grid; gap: 2px; } .status > * + *::before { content: none; } .time { font-size: 16px; line-height: 24px; } .takeTime { min-height: 44px; } }
38
+ @media (pointer: coarse) { .takeTime { min-height: 44px; } }
39
+
40
+ [data-ds-dark-theme] .bar { --cfg-accent: var(--dsw-alias-state-business-primary, #4eb0e8); --cfg-accent-text: color-mix(in srgb, var(--cfg-accent) 70%, var(--cfg-ink)); }
41
+
@@ -32,6 +32,8 @@ export function QuestionWaitBar({ card, t, busy, onTakeTime }: {
32
32
  </span>
33
33
  <div className={css.status} role={held || continued ? 'status' : undefined} aria-atomic="true">
34
34
  <span className={css.time} aria-label={status}>{held || continued ? status : `${Math.floor(seconds / 60)}:${String(seconds % 60).padStart(2, '0')}`}</span>
35
+ {!held && !continued && !running && <span className={css.policy}>{t('wait.pauseLabel')}</span>}
36
+ {!held && !continued && <span className={css.policy}>{t(card.timeoutMode === 'default' ? 'wait.auto' : 'wait.extend')}</span>}
35
37
  </div>
36
38
  {!held && !continued && <button type="button" className={css.takeTime} disabled={busy} onClick={onTakeTime}>{t('wait.takeTime')}</button>}
37
39
  </div>
@@ -18,6 +18,7 @@ import type {} from '@deepseek-ai/dsh-client-ui-chat/client'
18
18
  import type { ComposerChainProps } from '@deepseek-ai/dsh-client-ui-conversation/client'
19
19
  import type {} from '@deepseek-ai/dsh-client-ui-renderer/client'
20
20
  import type { PendingInteractionPublisher } from '@deepseek-ai/dsh-client-ui-session/client'
21
+ import type { HostObservable } from '@deepseek-ai/dsh-client-ui-slots'
21
22
  import type { TypertClientEventListener } from '@deepseek-ai/dsh-typert-protocol'
22
23
  import type { AskUserQuestionItem, PendingUserQuestion, UserQuestionProjectionView } from '@deepseek-ai/dsh-user-questions/types'
23
24
  // Type-only: pulls the locale plugin's Context merge (ctx.locale).
@@ -84,6 +85,8 @@ interface QuestionCard {
84
85
  */
85
86
  class QuestionCards {
86
87
  readonly #cards = new Map<string, QuestionCard>()
88
+ readonly #presenceSources = new Map<string, HostObservable<boolean>>()
89
+ readonly #presenceListeners = new Set<() => void>()
87
90
 
88
91
  constructor(private readonly publish: PendingInteractionPublisher<PendingQuestion>) {}
89
92
 
@@ -96,6 +99,34 @@ class QuestionCards {
96
99
  return this.#cards.get(key)?.pending
97
100
  }
98
101
 
102
+ /**
103
+ * Observable existence of one tool call's card. The transcript row offers
104
+ * reopening only while the registry still holds that card; a removed card
105
+ * flips the snapshot so the stale affordance disappears with it.
106
+ * @param sessionId - owning Session.
107
+ * @param callId - tool call identity as the transcript row spells it.
108
+ * @returns a stable source that notifies when the card is added or removed.
109
+ */
110
+ presence(sessionId: SessionId, callId: string): HostObservable<boolean> {
111
+ const key = PendingQuestion.keyOf(sessionId, callId)
112
+ let source = this.#presenceSources.get(key)
113
+ if (source === undefined) {
114
+ source = {
115
+ getSnapshot: () => this.#cards.has(key),
116
+ subscribe: (listener) => {
117
+ this.#presenceListeners.add(listener)
118
+ return () => { this.#presenceListeners.delete(listener) }
119
+ },
120
+ }
121
+ this.#presenceSources.set(key, source)
122
+ }
123
+ return source
124
+ }
125
+
126
+ #publishPresence(): void {
127
+ for (const listener of [...this.#presenceListeners]) listener()
128
+ }
129
+
99
130
  values(): readonly QuestionCard[] {
100
131
  return [...this.#cards.values()]
101
132
  }
@@ -149,6 +180,7 @@ class QuestionCards {
149
180
  /* v8 ignore next -- a card leaves the registry once; no caller holds a card the registry already replaced. */
150
181
  if (this.#cards.get(pending.key) !== card) return
151
182
  this.#cards.delete(pending.key)
183
+ this.#publishPresence()
152
184
  pending.close()
153
185
  unpublish?.()
154
186
  unpublish = undefined
@@ -163,6 +195,7 @@ class QuestionCards {
163
195
  // the tool call row builds another one from the same transcript record.
164
196
  pending.attachSeat({ hide: pending.review === undefined ? card.hide : card.remove })
165
197
  this.#cards.set(pending.key, card)
198
+ this.#publishPresence()
166
199
  return card
167
200
  }
168
201
 
@@ -428,6 +461,9 @@ export function apply(ctx: ClientContext): void {
428
461
  inject: (sessionId: SessionId) => ({
429
462
  revealPanel: (callId: string) => ctx.get('userQuestionPanels')?.reveal(sessionId, callId) ?? false,
430
463
  reviewPanel: (callId: string, record: UserQuestionRecord) => ctx.get('userQuestionPanels')?.review(sessionId, callId, record) ?? false,
464
+ keyedHooks: {
465
+ questionPanelLive: (callId: string) => cards.presence(sessionId, callId),
466
+ },
431
467
  }),
432
468
  }, AskHistoryRow))
433
469
  ctx.slots.inject('conversation.composer', () => ctx.slots.register(
@@ -454,4 +490,4 @@ export function apply(ctx: ClientContext): void {
454
490
  }
455
491
 
456
492
  // Exported for the built-closure behavior tests; the client loader ignores it.
457
- export { PendingQuestion, SettingsEntry }
493
+ export { PendingQuestion, QuestionCards, SettingsEntry }
@@ -10,7 +10,9 @@ export const zh = {
10
10
  'history.title': '问题',
11
11
  'history.review': '查看',
12
12
  'history.reopen': '打开',
13
- 'history.unavailable': '问题暂时无法打开,请重试。',
13
+ 'history.interrupted': '已中断',
14
+ 'history.cancelled': '已取消',
15
+ 'history.unavailable': '这个问题已结束,无法打开。',
14
16
  'reply.copyFailed': '复制失败,请重试。',
15
17
  'wait.takeTime': '慢慢回答',
16
18
  'wait.countdown': '{seconds} 秒后继续工作',
@@ -22,6 +24,7 @@ export const zh = {
22
24
  'wait.auto': '到点将自动选择默认项',
23
25
  'wait.continued': '已继续工作,仍可回答',
24
26
  'review.status': '已回答',
27
+ 'review.unanswered': '未收到回答',
25
28
  'review.skipped': '这道问题当时被跳过。',
26
29
  'reply.label': '问题回复',
27
30
  'reply.open': '展开问题详情',
@@ -57,7 +60,9 @@ export const en = {
57
60
  'history.title': 'Question',
58
61
  'history.review': 'Review',
59
62
  'history.reopen': 'Open',
60
- 'history.unavailable': 'Cannot open this question right now. Try again.',
63
+ 'history.interrupted': 'Interrupted',
64
+ 'history.cancelled': 'Cancelled',
65
+ 'history.unavailable': 'This question has ended and cannot be reopened.',
61
66
  'reply.copyFailed': 'Copy failed. Try again.',
62
67
  'wait.takeTime': 'Take time',
63
68
  'wait.countdown': 'Continuing in {seconds}s',
@@ -69,6 +74,7 @@ export const en = {
69
74
  'wait.auto': 'Auto-selects defaults at timeout',
70
75
  'wait.continued': 'Work continued — you can still answer',
71
76
  'review.status': 'Answered',
77
+ 'review.unanswered': 'No answer recorded',
72
78
  'review.skipped': 'This question was skipped.',
73
79
  'reply.label': 'Question reply',
74
80
  'reply.open': 'Open question details',
@@ -3,27 +3,32 @@
3
3
  export const settingsZh = {
4
4
  summary: '等待与超时',
5
5
  title: '提问',
6
- waitLabel: '等待',
6
+ purpose: '设置等待回答的时长,以及到期后如何处理问题。',
7
+ waitLabel: '等待回答',
7
8
  durationLabel: '等待时长(秒)',
9
+ presetLabel: '快捷时长',
8
10
  timed: '倒计时',
9
11
  unlimited: '不限时',
10
12
  seconds: '秒',
13
+ secondShort: '秒',
14
+ minuteShort: '分',
11
15
  waitHint: '输入时重新计时。',
12
- unlimitedHint: '一直等待回答,输入无需续期。',
13
- timeoutTitle: '超时后',
14
- behaviorLabel: '普通会话',
15
- goalBehaviorLabel: 'Goal 活跃时',
16
- native: '继续工作',
17
- default: '选择默认答案',
18
- advanced: '高级',
16
+ unlimitedHint: '一直等待回答,不触发超时操作。',
17
+ timelineAsk: '提问发出',
18
+ timelineWait: '等待',
19
+ timelineEnd: '到期',
20
+ timeoutTitle: '到期后',
21
+ goalBehaviorLabel: '目标进行中',
22
+ native: '保持问题开放',
23
+ default: '提交默认答案',
24
+ nativeHint: '到期后问题仍可回答,继续独立工作,不自动批准。',
25
+ defaultHint: '仅对有默认答案的问题生效;自动选择会被标记;没有默认答案时保持开放。',
26
+ goalExplain: '目标运行时提问可能阻塞续跑;这里单独设置到期行为。',
19
27
  discard: '放弃改动',
20
- nativeHint: '超时后仍可回答,不会自动同意。',
21
- defaultHint: '超时后自动提交默认答案。',
22
- timeoutDisabled: '不限时模式下不触发超时行为,保留以下次使用。',
23
- readonly: '当前配置为只读。',
28
+ readonly: '当前设置为只读。',
24
29
  loading: '正在读取设置…',
25
- unavailable: '当前连接下该配置不可用。',
26
- waiting: '正在等待宿主配置…',
30
+ unavailable: '当前连接下无法使用这些设置。',
31
+ waiting: '正在等待设置…',
27
32
  invalidWait: '等待时长须为 1 到 2147483 的整数。',
28
33
  save: '保存',
29
34
  saving: '保存中…',
@@ -38,27 +43,32 @@ export type SettingsKey = keyof typeof settingsZh
38
43
  export const settingsEn = {
39
44
  summary: 'Wait and timeout',
40
45
  title: 'Questions',
41
- waitLabel: 'Wait',
46
+ purpose: 'Set how long questions wait and what happens when the wait ends.',
47
+ waitLabel: 'Wait for answers',
42
48
  durationLabel: 'Wait duration in seconds',
49
+ presetLabel: 'Presets',
43
50
  timed: 'Countdown',
44
51
  unlimited: 'Unlimited',
45
52
  seconds: 'sec',
53
+ secondShort: 's',
54
+ minuteShort: 'm',
46
55
  waitHint: 'Typing restarts the countdown.',
47
- unlimitedHint: 'Wait until answered, with no countdown to extend.',
56
+ unlimitedHint: 'Wait until answered; no timeout action runs.',
57
+ timelineAsk: 'Question asked',
58
+ timelineWait: 'Wait',
59
+ timelineEnd: 'Timeout',
48
60
  timeoutTitle: 'At timeout',
49
- behaviorLabel: 'Standard session',
50
- goalBehaviorLabel: 'Active Goal',
51
- native: 'Continue work',
52
- default: 'Use defaults',
53
- advanced: 'Advanced',
61
+ goalBehaviorLabel: 'Active goal',
62
+ native: 'Leave question open',
63
+ default: 'Submit defaults',
64
+ nativeHint: 'The question stays answerable after timeout; independent work continues. No automatic approval.',
65
+ defaultHint: 'Only questions with a default answer apply; automatic picks are marked. Without a default the question stays open.',
66
+ goalExplain: 'Questions during a goal can block resumption; set their timeout behavior separately here.',
54
67
  discard: 'Discard',
55
- nativeHint: 'You can still answer after timeout. Nothing is automatically approved.',
56
- defaultHint: 'Submits default answers when the countdown ends.',
57
- timeoutDisabled: 'Timeout behavior is inactive while waiting without a limit. Your choices are kept.',
58
- readonly: 'This configuration is read-only.',
68
+ readonly: 'These settings are read-only.',
59
69
  loading: 'Loading settings…',
60
- unavailable: 'This configuration is unavailable on the current connection.',
61
- waiting: 'Waiting for host configuration…',
70
+ unavailable: 'These settings are unavailable on the current connection.',
71
+ waiting: 'Waiting for settings…',
62
72
  invalidWait: 'Enter a whole number from 1 to 2147483 seconds.',
63
73
  save: 'Save',
64
74
  saving: 'Saving…',