Spaces:
Paused
Paused
revert: remove chat-bubbles patch — Bad MAC in logs is WhatsApp decryption/session, not UI
Browse files- Dockerfile +0 -1
- patches/chat-bubbles-always-visible.patch +0 -26
Dockerfile
CHANGED
|
@@ -23,7 +23,6 @@ WORKDIR /app/openclaw
|
|
| 23 |
# 避免解密失败(Bad MAC)的消息被误计为已接收导致 lastInboundAt 有值但无法回复
|
| 24 |
COPY patches /app/patches
|
| 25 |
RUN if [ -f /app/patches/web-inbound-record-activity-after-body.patch ]; then patch -p1 < /app/patches/web-inbound-record-activity-after-body.patch; fi
|
| 26 |
-
RUN if [ -f /app/patches/chat-bubbles-always-visible.patch ]; then patch -p1 < /app/patches/chat-bubbles-always-visible.patch; fi
|
| 27 |
|
| 28 |
RUN pnpm install --frozen-lockfile
|
| 29 |
RUN pnpm build
|
|
|
|
| 23 |
# 避免解密失败(Bad MAC)的消息被误计为已接收导致 lastInboundAt 有值但无法回复
|
| 24 |
COPY patches /app/patches
|
| 25 |
RUN if [ -f /app/patches/web-inbound-record-activity-after-body.patch ]; then patch -p1 < /app/patches/web-inbound-record-activity-after-body.patch; fi
|
|
|
|
| 26 |
|
| 27 |
RUN pnpm install --frozen-lockfile
|
| 28 |
RUN pnpm build
|
patches/chat-bubbles-always-visible.patch
DELETED
|
@@ -1,26 +0,0 @@
|
|
| 1 |
-
diff --git a/ui/src/styles/chat/grouped.css b/ui/src/styles/chat/grouped.css
|
| 2 |
-
index c437432..894d171 100644
|
| 3 |
-
--- a/ui/src/styles/chat/grouped.css
|
| 4 |
-
+++ b/ui/src/styles/chat/grouped.css
|
| 5 |
-
@@ -126,6 +126,8 @@ img.chat-avatar {
|
| 6 |
-
/* Minimal Bubble Design - dynamic width based on content */
|
| 7 |
-
.chat-bubble {
|
| 8 |
-
position: relative;
|
| 9 |
-
+ min-height: 24px;
|
| 10 |
-
+ min-width: 48px;
|
| 11 |
-
display: inline-block;
|
| 12 |
-
border: 1px solid transparent;
|
| 13 |
-
background: var(--card);
|
| 14 |
-
diff --git a/ui/src/ui/chat/grouped-render.ts b/ui/src/ui/chat/grouped-render.ts
|
| 15 |
-
index 545b3df..71c0b27 100644
|
| 16 |
-
--- a/ui/src/ui/chat/grouped-render.ts
|
| 17 |
-
+++ b/ui/src/ui/chat/grouped-render.ts
|
| 18 |
-
@@ -256,7 +256,7 @@ function renderGroupedMessage(
|
| 19 |
-
}
|
| 20 |
-
|
| 21 |
-
if (!markdown && !hasToolCards && !hasImages) {
|
| 22 |
-
- return nothing;
|
| 23 |
-
+ return html`<div class="${bubbleClasses}"><span class="chat-text chat-bubble-placeholder">(无内容)</span></div>`;
|
| 24 |
-
}
|
| 25 |
-
|
| 26 |
-
return html`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|