Skip to content

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

fix(chat): drop the inline message-editor shadow

vastsaf97406897606
diff --git a/apps/desktop/src/styles/messages.css b/apps/desktop/src/styles/messages.css
index 9a239cf3a..6e610230c 100644
--- a/apps/desktop/src/styles/messages.css
+++ b/apps/desktop/src/styles/messages.css
@@ -1338,8 +1338,9 @@
font-variant-numeric: tabular-nums;
}
-/* Compact composer plate: same surface, radius, and shadow lift as the
- bottom composer. The textarea is unboxed; actions sit in a 28px footer. */
+/* Compact composer plate: same surface and radius as the bottom composer,
+ without the floating shadow. The textarea is unboxed; actions sit in a
+ 28px footer. */
.message-edit {
display: flex;
width: min(100%, 720px);
@@ -1348,16 +1349,8 @@
border: 0;
border-radius: var(--ds-composer-radius, var(--radius-xl));
background: var(--ds-bg-composer);
- box-shadow: var(--ds-shadow-composer);
+ box-shadow: none;
isolation: isolate;
- transition:
- background var(--motion-duration-fast) var(--motion-ease-out),
- box-shadow var(--motion-duration-normal) var(--motion-ease-out);
-}
-
-/* Focus deepens the lift; the plate never gains a stroke (D297). */
-.message-edit:focus-within {
- box-shadow: 0 7px 24px color-mix(in oklab, var(--ds-text-primary) 9%, transparent);
}
/* A prompt being edited needs typing room, so the user column drops its
diff --git a/apps/desktop/src/styles/responsive.css b/apps/desktop/src/styles/responsive.css
index db3a01baf..bcf7429e3 100644
--- a/apps/desktop/src/styles/responsive.css
+++ b/apps/desktop/src/styles/responsive.css
@@ -74,8 +74,6 @@
.composer-shell,
.composer-shell:focus-within,
- .message-edit,
- .message-edit:focus-within,
.btn,
.icon-btn,
.send-btn,
diff --git a/apps/desktop/test/transcript-style.test.mjs b/apps/desktop/test/transcript-style.test.mjs
index 26dbd08b5..eb6e3ff28 100644
--- a/apps/desktop/test/transcript-style.test.mjs
+++ b/apps/desktop/test/transcript-style.test.mjs
@@ -271,9 +271,9 @@ test("editing a user prompt regenerates it and keeps the old branch reachable",
);
assert.match(
stylesSource,
- /\.message-edit \{[\s\S]*?background:\s*var\(--ds-bg-composer\);[\s\S]*?box-shadow:\s*var\(--ds-shadow-composer\);/,
+ /\.message-edit \{[\s\S]*?background:\s*var\(--ds-bg-composer\);[\s\S]*?box-shadow:\s*none;/,
);
- assert.match(stylesSource, /\.message-edit:focus-within/);
+ assert.doesNotMatch(stylesSource, /\.message-edit:focus-within/);
assert.match(transcriptSource, /className="icon-btn message-edit-cancel"/);
assert.match(transcriptSource, /className="send-btn message-edit-submit"/);
});
diff --git a/docs/spec/04-ux/08-component-spec.md b/docs/spec/04-ux/08-component-spec.md
index a57c13815..41f5796b4 100644
--- a/docs/spec/04-ux/08-component-spec.md
+++ b/docs/spec/04-ux/08-component-spec.md
@@ -1540,8 +1540,8 @@ Single message render — either user (plaintext) or assistant (markdown streami
selected assistant response, requires an idle source, and leaves that
source's transcript, live runtime, and provider cache state untouched (D134).
Edit belongs to the user turn: it swaps the prompt bubble for a focused
- composer-plate editor (same `--ds-bg-composer` fill, `--ds-composer-radius`,
- and shadow lift as the bottom composer; no stroke per D297). The textarea is
+ composer-plate editor (same `--ds-bg-composer` fill and `--ds-composer-radius`
+ as the bottom composer; no stroke per D297, no shadow). The textarea is
unboxed inside that plate; localized Retry and Cancel sit in a 28px footer
(Escape cancels, Cmd/Ctrl+Enter retries; slash turns seed the typed
`command` form so retrying re-expands the template). Opening it widens the
diff --git a/docs/zh-CN/spec/04-ux/08-component-spec.md b/docs/zh-CN/spec/04-ux/08-component-spec.md
index 86c4e37b2..5d39fdbcc 100644
--- a/docs/zh-CN/spec/04-ux/08-component-spec.md
+++ b/docs/zh-CN/spec/04-ux/08-component-spec.md
@@ -1136,8 +1136,8 @@ tail 不得将该寻呼机从用户气泡中移动或分离。寻呼机是
选择辅助响应,需要一个空闲源,然后留下
源的转录本、实时运行时和提供程序缓存状态保持不变 (D134)。
编辑属于用户回合:它将提示气泡替换为与底部输入框同族的
- composer 面板(`--ds-bg-composer` 填充、`--ds-composer-radius`、阴影抬升,
- 无描边,D297)。文本区域嵌在面板内不加第二层底;底部 28px 工具条放本地化的
+ composer 面板(`--ds-bg-composer` 填充、`--ds-composer-radius`,
+ 无描边,无阴影,D297)。文本区域嵌在面板内不加第二层底;底部 28px 工具条放本地化的
“重试”和“取消”(Escape 取消,Cmd/Ctrl+Enter 重试;斜杠转为种子
输入 `command` 表单,重试后会重新扩展模板)。打开时把用户列加宽到
助理阅读宽度,并隐藏操作工具栏。重试运行同一会话的