clay-server 2.36.2-beta.8 → 2.36.2-beta.9

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.
@@ -284,6 +284,14 @@
284
284
  color: var(--accent2);
285
285
  }
286
286
 
287
+ .activity-inline-avatar {
288
+ width: 28px;
289
+ height: 28px;
290
+ border-radius: 50%;
291
+ flex-shrink: 0;
292
+ object-fit: cover;
293
+ }
294
+
287
295
  .activity-inline .activity-icon {
288
296
  display: inline-flex;
289
297
  animation: sparkle 2s ease-in-out infinite;
@@ -5,7 +5,8 @@ import { refreshIcons } from './icons.js';
5
5
  import { store } from './store.js';
6
6
  import { getSendBtn, getStatusDot } from './dom-refs.js';
7
7
  import { onThemeChange } from './theme.js';
8
- import { getActivityEl, setActivityEl, addToMessages, scrollToBottom } from './app-rendering.js';
8
+ import { getActivityEl, setActivityEl, addToMessages, scrollToBottom, VENDOR_AVATARS } from './app-rendering.js';
9
+ import { escapeHtml } from './utils.js';
9
10
 
10
11
  // --- Module-owned state ---
11
12
  var faviconLink, faviconOrigHref, faviconCanvas, faviconCtx, faviconImg, faviconImgReady;
@@ -199,8 +200,21 @@ export function setActivity(text) {
199
200
  if (!getActivityEl()) {
200
201
  var _actEl = document.createElement("div");
201
202
  _actEl.className = "activity-inline";
202
- _actEl.innerHTML =
203
- '<div class="mate-thinking-dots"><span></span><span></span><span></span></div>';
203
+ // In channel mode (Claude Code / Codex sessions), include the vendor
204
+ // avatar so the user can see who is responding while the dots are
205
+ // animating. DM mode handles its own avatar via mate-thinking
206
+ // elements and shouldn't pick up a vendor avatar here.
207
+ var _isDm = !!(store.get('dmMode') && store.get('dmTargetUser') && store.get('dmTargetUser').isMate);
208
+ if (!_isDm) {
209
+ var _vendor = store.get('currentVendor') || 'claude';
210
+ var _avatarUrl = VENDOR_AVATARS[_vendor] || VENDOR_AVATARS.claude;
211
+ _actEl.innerHTML =
212
+ '<img class="activity-inline-avatar" src="' + escapeHtml(_avatarUrl) + '" alt="">' +
213
+ '<div class="mate-thinking-dots"><span></span><span></span><span></span></div>';
214
+ } else {
215
+ _actEl.innerHTML =
216
+ '<div class="mate-thinking-dots"><span></span><span></span><span></span></div>';
217
+ }
204
218
  setActivityEl(_actEl);
205
219
  addToMessages(_actEl);
206
220
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clay-server",
3
- "version": "2.36.2-beta.8",
3
+ "version": "2.36.2-beta.9",
4
4
  "description": "Self-hosted team workspace for Claude Code and Codex. Multi-user, browser-based, with persistent AI mates.",
5
5
  "bin": {
6
6
  "clay-server": "./bin/cli.js",