V4 conversation must show the model API retry status from
ConversationSnapshot.control.apiRetry at the bottom of the current running
turn. Main sessions and read-only Subagent sessions share the same timeline
presentation. The composer no longer renders this status.
The retry authority belongs to the CLI ProductProjection. The renderer only
renders the current session snapshot and must not infer retry state from request
logs, elapsed time, or local network observations.
Agent/runtime retry event
-> ProductProjection
-> ConversationSnapshot.control.apiRetry
-> SessionPane
-> ConversationTimeline current live turn
-> ChatApiRetryStatus
apiRetry: null renders no retry label.ChatLoading indicator while retry is
active; the two statuses are never rendered together.text-ui-base,
font-medium, and shimmer motion, but lowers its visual weight with the
semantic foreground-subtle peak color. It deliberately reuses the base
shimmer's low-alpha soft stop so the moving trough remains visible; Retry
therefore avoids Thinking's pure black/white peak without flattening the
animation contrast.apiRetry state. If there is no
running live turn, the renderer does not attach the status to an older turn.model_retry_scheduled sets the retry state for every runtime-classified
retryable provider/network reason, not only HTTP 429.StreamRecoveryStarted,
StreamRecoveryRetryStarted, or a recovery-tagged model request) uses the
same state. retryNumber/maxRetries is converted to the V4
attempt/maxAttempts shape.maxAttempts in the protocol shape. The UI displays retry count, so
maxRetries = max(maxAttempts - 1, attempt). For example, maxAttempts=11
converts an attempt to the 1/10 user-count shape; the presentation threshold
below decides whether that early count is visible.nextRetryAt is computed with the CLI event clock. The current timeline does
not render a countdown because a single snapshot is not a ticking clock.chat.apiRetryStatus. Moving the status into the timeline keeps the former
composer copy: 重新连接中... x/y / Reconnecting... x/y.当 apiRetry.attempt <= 2 时,UI 不显示重连次数,也不显示
重新连接中... x/y 文案;当前 running turn 继续使用同一个 ChatLoading 槽位,
让用户把前两次短暂恢复视为普通加载。attempt >= 3 才显示重连文案,计数仍保持
现有用户口径(例如 3/10)。这里的 attempt 是投影层已经转换后的“第几次重试”,
不是原始 maxAttempts 总尝试次数。
ProductProjection.control.apiRetry
|
v
TurnChatLoadingSlot
| attempt 1/2 --------------> ChatLoading
| attempt 3+ ----------------> Reconnecting... 3/10
| progress / terminal --------> apiRetry cleared
v
current live turn only
该门槛只存在于 timeline presentation;不得在
normalizeZCodeApiRetryStatus、ProductProjection、service tracker 或 protocol schema
中把 1/2 次重试改成 null,否则会丢失恢复态,影响 snapshot、desktop continuous 和
mobile replayable 的恢复一致性。attempt <= 2 且当前 turn 被权限/问答/maintenance
阻塞时,仍遵守现有 gating,不额外显示 generic loading。
model_retry_scheduled / stream recovery
|
v
apiRetry = current retry
|
+---------+-------------------+
| |
| next request started | retryable request failed
| (no model progress yet) | before scheduling
| |
+---------- keep -------------+
|
first meaningful model progress
(text/reasoning/tool lifecycle)
|
v
apiRetry = null
request completed / non-retryable failure / turn terminal / next turn
|
v
apiRetry = null
model_request_started for adapter attempt 2+ does not prove recovery and must
not clear the label. A non-empty text/reasoning delta or meaningful tool event
does prove user-visible progress and clears it. This prevents the status from
flashing off during the retry request itself.
+-> desktop-continuous
one CLI projection -----+
+-> web-remote-replayable
control.apiRetry is session-scoped. A background session cannot overwrite
another session's timeline status.control.apiRetry.retryNotice row remains reserved for user-triggered assistant
retry semantics and is not reused or extended.attempt <= 2 rule is presentation-only: runtime retry count, backoff,
retry classification, clearing boundary, and final-failure behavior remain unchanged.desktop-continuous or mobile
web-remote-replayable delivery semantics.state.updated retry delta must survive both delivery profile
filters.maxAttempts=11 renders 3/10 only when attempt=3,
attempt=1/2 render generic ChatLoading without retry text, retry status
replaces ChatLoading at attempt=3, and apiRetry=null renders nothing.SessionPane tests prove child details receive the same state while
the composer remains absent.3/10 retry before clearing
on the successful tool response; the spawned child observes the hidden early
retry in its read-only detail pane and clears on text progress.packages/ui/src/v4/ConversationTurnGroup.tsx 的
TurnChatLoadingSlot 中增加 presentation-only 的
visibleRetryStatus:attempt=1/2 回退到 ChatLoading,attempt>=3 才
进入 ChatApiRetryStatus;阻塞交互的既有 loading gate 保持不变。packages/ui/test/v4ConversationTurnGroup.test.ts 覆盖 attempts 1、2、
3,以及阻塞交互下的 loading/retry 互斥。ChatApiRetryStatus、projection normalization、runtime snapshot、协议 schema、
i18n 和 retry lifecycle 均未修改;SAT25 fixture/manifest 只增加 Main 的第二、
第三次 429,使 UI 可观察到隐藏早期尝试与可见 3/10。pnpm typecheck、pnpm lint(0 error)和
conversation coverage audit 通过。SAT25 WDIO E2E 已完成构建,但当前环境缺少
可下载的 macOS arm64 Chromedriver,启动阶段失败,待具备 driver 后复跑。