Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix(sidebar): bound running status animation cycles

zszz34cf7ae0b66f2
diff --git a/apps/desktop/src/styles/sessions.css b/apps/desktop/src/styles/sessions.css
index 4a304bb6a..3a9bcb5f3 100644
--- a/apps/desktop/src/styles/sessions.css
+++ b/apps/desktop/src/styles/sessions.css
@@ -348,7 +348,7 @@
background: var(--ds-warning);
box-shadow: 0 0 0 3px color-mix(in oklab, var(--ds-warning) 15%, transparent);
content: "";
- animation: sidebar-status-breathe 1.6s ease-in-out infinite;
+ animation: sidebar-status-breathe 1.6s ease-in-out 2;
}
.thread-item-status.permission::before {
@@ -934,7 +934,7 @@
border-radius: var(--radius-full);
background: var(--ds-warning);
content: "";
- animation: sidebar-status-breathe 1.6s ease-in-out infinite;
+ animation: sidebar-status-breathe 1.6s ease-in-out 2;
}
.sidebar-session-hover-card-preview,
diff --git a/docs/spec/04-ux/07-ui-design-system.md b/docs/spec/04-ux/07-ui-design-system.md
index 374cb4fd9..3431f0c37 100644
--- a/docs/spec/04-ux/07-ui-design-system.md
+++ b/docs/spec/04-ux/07-ui-design-system.md
@@ -253,7 +253,7 @@ token rather than introducing a decorative palette:
| State | Semantic color | Shape / motion | Meaning |
|---|---|---|---|
| Selected | neutral accent | static outlined ring | current conversation |
-| In progress | warning orange | filled dot with a restrained breathing pulse | agent is producing or executing |
+| In progress | warning orange | filled dot; two breathing cycles, then steady | agent is producing or executing |
| Completed | success green | check mark | latest unread task turn completed |
| Failed | error red | circled alert mark | latest unread task turn failed |
@@ -269,7 +269,10 @@ never produce a terminal mark. Marking the row read, marking all rows read, or
clearing the inbox also dismisses any matching task-native banner; a late event
for that durable id cannot restore the mark, row, or banner. Reduced-motion mode
disables the breathing animation while retaining its orange fill and localized
-accessible name.
+accessible name. Running dots in task rows and related-session hover cards
+animate for two 1.6-second cycles when mounted or entering the running state,
+then remain steady until the status changes. They must not continuously
+submit frames while the rest of the window is idle.
### 4.6 Tailwind CSS variable stub
diff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.md
index 3186bd901..f4700967f 100644
--- a/docs/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/spec/06-delivery/04-e2e-test-plan.md
@@ -9426,9 +9426,10 @@ This test plan spec is accepted when:
- In light and dark themes, keep session B selected while session A progresses
through in-progress, completed, a new in-progress turn, failed, and aborted
states. Repeat with reduced motion enabled and inspect keyboard focus.
-- Expect A to show an orange breathing dot while in progress, a green check on
- completion, and a red circled alert on failure. Starting a new turn clears
- A's earlier terminal mark; abort leaves no completed or failed mark.
+- Expect A to show an orange dot that breathes twice over 3.2 seconds and then
+ stays steady while in progress, a green check on completion, and a red circled
+ alert on failure. Starting a new turn clears A's earlier terminal mark; abort
+ leaves no completed or failed mark.
- Expect selected idle B to show a static accent-blue outlined ring and active
row background. If selected B starts work, its orange in-progress dot takes
precedence until the turn settles; its latest terminal result remains hidden
@@ -9442,6 +9443,11 @@ This test plan spec is accepted when:
Refresh notifications and restart the app; the acknowledged mark must not
return. A terminal notification marked read from the inbox likewise produces
no sidebar terminal mark.
+- Repeat for a running related-session marker in the hover card. After 3.2
+ seconds, neither running marker has an active animation; recording an otherwise
+ idle native macOS window must show no continuous frames from these markers.
+ Start a new turn and reopen the hover card: the bounded animation can play again.
+ GPU measurements must distinguish app frame submissions from whole-system load.
### US-UI-68 Session-scoped inline permissions and artifacts (D138/D142)
- Run two sessions concurrently and keep A visible while B reaches a tool
diff --git a/docs/zh-CN/spec/04-ux/07-ui-design-system.md b/docs/zh-CN/spec/04-ux/07-ui-design-system.md
index 4f68a3591..12664c661 100644
--- a/docs/zh-CN/spec/04-ux/07-ui-design-system.md
+++ b/docs/zh-CN/spec/04-ux/07-ui-design-system.md
@@ -225,7 +225,7 @@ PI-Desktop 的行为类似于桌面应用程序 shell,因此意外拖动
| 状态 | 语义色彩 | 形状/运动 | 含义 |
|---|---|---|---|
| 已选择 | 中性口音 | 静态轮廓环 | 当前对话 |
-| 进行中 | 橙色警告 | 呼吸脉冲受限的实心点 | 代理人正在生产或执行 |
+| 进行中 | 橙色警告 | 呼吸两次后常亮的实心点 | 代理人正在生产或执行 |
| 已完成 | 成功绿色 | 复选标记 | 最新未读任务轮已完成 |
| 失败 | 错误红色 | 带圆圈的警报标记 | 最新未读任务转失败 |
@@ -238,6 +238,9 @@ PI-Desktop 的行为类似于桌面应用程序 shell,因此意外拖动
标记。将行标记为已读、将全部行标记为已读或清除收件箱也会关闭匹配的
任务本机横幅;该 durable id 的迟到事件不能恢复标记、行或横幅。缩减运动
模式会禁用呼吸动画,同时保留其橙色填充和本地化的可访问名称。
+任务行和关联会话悬浮卡的运行中圆点在挂载或进入运行状态时,播放两次
+各 1.6 秒的呼吸动画,随后保持常亮,直到状态变化。窗口其余内容空闲时,
+圆点不得持续提交绘制帧。
### 4. 6 Tailwind CSS 变量存根
diff --git a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
index d99086b63..f74284a9d 100644
--- a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
@@ -6145,7 +6145,7 @@ eleven-tool-round desktop paths are verified by
- 在浅色和深色主题中,在会话 A 进行时保持会话 B 处于选中状态
通过正在进行、已完成、新的正在进行的转向、失败和中止
州。启用减少运动后重复并检查键盘焦点。
-- 预计 A 在进行过程中会显示橙色呼吸点,绿色勾号
+- 预计 A 在进行过程中显示橙色圆点,先在 3.2 秒内呼吸两次,再保持常亮;绿色勾号
完成,失败时出现红色圆圈警报。开始新回合清除
A 较早的终止标记;中止不会留下已完成或失败的标记。
- 预计选定的空闲 B 将显示静态重音蓝色轮廓环和活动环
@@ -6162,6 +6162,11 @@ eleven-tool-round desktop paths are verified by
返回。标记为从收件箱中读取的终端通知同样会产生
无侧边栏端子标记。
+- 对悬浮卡中的关联运行会话圆点重复检查。3.2 秒后,两处运行标记均无活动动画;
+ 对其余内容空闲的原生 macOS 窗口录制时,标记不得持续产生绘制帧。
+ 开始新一轮任务并重新打开悬浮卡,有限动画可以再次播放。
+ GPU 测量须区分应用提交帧与整机负载。
+
### US-UI-68 会话范围的内联权限和工件 (D138/D142)
- 同时运行两个会话,并在 B 到达工具时保持 A 可见
批准请求。检查默认宽度和窄宽度的 light/dark 主题。