@clagentic/console 1.6.0 → 1.7.0

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.
Files changed (85) hide show
  1. package/bin/cli.js +20 -102
  2. package/deploy/clagentic-console.service +10 -1
  3. package/lib/agents-favorites.js +0 -1
  4. package/lib/agents.js +0 -10
  5. package/lib/cli-sessions.js +0 -12
  6. package/lib/codex-defaults.js +4 -1
  7. package/lib/config.js +0 -8
  8. package/lib/daemon.js +88 -9
  9. package/lib/dm.js +0 -1
  10. package/lib/ipc.js +129 -59
  11. package/lib/loop-handoff.js +5 -1
  12. package/lib/memory-limits.js +214 -36
  13. package/lib/memory-shed.js +207 -0
  14. package/lib/notes.js +0 -20
  15. package/lib/os-users.js +0 -3
  16. package/lib/project-connection.js +31 -5
  17. package/lib/project-external-trigger.js +2 -1
  18. package/lib/project-filesystem.js +18 -11
  19. package/lib/project-knowledge.js +0 -8
  20. package/lib/project-loop.js +162 -9
  21. package/lib/project-sessions.js +87 -21
  22. package/lib/project-user-mention.js +2 -1
  23. package/lib/project-user-message.js +16 -5
  24. package/lib/project.js +14 -25
  25. package/lib/public/app.js +1 -2
  26. package/lib/public/css/channel-layout.css +25 -158
  27. package/lib/public/css/diagnostics.css +17 -1
  28. package/lib/public/css/icon-strip.css +1 -32
  29. package/lib/public/css/input.css +0 -56
  30. package/lib/public/css/loop.css +94 -0
  31. package/lib/public/css/messages.css +23 -4
  32. package/lib/public/css/mobile-nav.css +0 -124
  33. package/lib/public/index.html +11 -11
  34. package/lib/public/modules/app-connection.js +2 -1
  35. package/lib/public/modules/app-favicon.js +1 -1
  36. package/lib/public/modules/app-loop-ui.js +140 -4
  37. package/lib/public/modules/app-messages.js +17 -11
  38. package/lib/public/modules/app-projects.js +1 -1
  39. package/lib/public/modules/custom-icons.js +15 -1
  40. package/lib/public/modules/dom-refs.js +1 -2
  41. package/lib/public/modules/emoji-picker.js +6 -1
  42. package/lib/public/modules/filebrowser.js +33 -9
  43. package/lib/public/modules/input.js +39 -0
  44. package/lib/public/modules/scheduler.js +20 -6
  45. package/lib/public/modules/sidebar-mobile.js +0 -64
  46. package/lib/public/modules/sidebar-projects.js +90 -25
  47. package/lib/public/modules/sidebar-sessions.js +80 -13
  48. package/lib/public/modules/stt.js +2 -6
  49. package/lib/public/modules/tool-palette.js +0 -1
  50. package/lib/public/modules/tools.js +2 -6
  51. package/lib/public/style.css +0 -1
  52. package/lib/scheduler.js +0 -1
  53. package/lib/sdk-bridge.js +126 -194
  54. package/lib/sdk-message-processor.js +24 -9
  55. package/lib/sdk-permission-ownership.js +51 -0
  56. package/lib/server-auth.js +25 -18
  57. package/lib/server-dm.js +1 -1
  58. package/lib/server-skills.js +9 -1
  59. package/lib/server.js +18 -3
  60. package/lib/session-search.js +4 -299
  61. package/lib/sessions.js +467 -82
  62. package/lib/smtp.js +0 -15
  63. package/lib/user-presence.js +0 -12
  64. package/lib/users-preferences.js +2 -2
  65. package/lib/users.js +0 -5
  66. package/lib/utils.js +56 -0
  67. package/lib/ws-schema.js +3 -14
  68. package/lib/yoke/adapters/codex.js +96 -10
  69. package/lib/yoke/codex-local-image.js +79 -0
  70. package/package.json +1 -1
  71. package/scripts/postinstall.js +16 -11
  72. package/lib/ask-user-mcp-server.js +0 -121
  73. package/lib/project-memory.js +0 -39
  74. package/lib/public/console-icon.png +0 -0
  75. package/lib/public/css/debate.css +0 -1610
  76. package/lib/public/favicon-banded-32.png +0 -0
  77. package/lib/public/favicon-dark.svg +0 -32
  78. package/lib/public/favicon.svg +0 -32
  79. package/lib/public/icon-banded-96.png +0 -0
  80. package/lib/public/icons/email/gmail.svg +0 -7
  81. package/lib/public/icons/email/outlook.svg +0 -35
  82. package/lib/public/icons/email/yahoo.svg +0 -1
  83. package/lib/public/modules/events.js +0 -21
  84. package/lib/public/modules/state.js +0 -3
  85. package/lib/sdk-worker.js +0 -730
package/lib/public/app.js CHANGED
@@ -80,8 +80,7 @@ import { initDiagnostics } from './modules/diagnostics.js';
80
80
  var sendBtn = $("send-btn");
81
81
  function getStatusDot() {
82
82
  return document.querySelector("#icon-strip-projects .icon-strip-item.active .icon-strip-status") ||
83
- document.querySelector("#icon-strip-projects .icon-strip-wt-item.active .icon-strip-status") ||
84
- document.querySelector("#icon-strip-users .icon-strip-mate.active .icon-strip-status");
83
+ document.querySelector("#icon-strip-projects .icon-strip-wt-item.active .icon-strip-status");
85
84
  }
86
85
  var headerTitleEl = $("header-title");
87
86
  var headerRenameBtn = $("header-rename-btn");
@@ -1,8 +1,8 @@
1
1
  /* ==========================================================================
2
2
  channel-layout.css
3
- Layout rules that only apply in channel (wide-view) or human DM
4
- (mate-dm-active) mode. Extracted from messages.css so the selectors
5
- do not run on every style recalc in the default bubble view.
3
+ Layout rules that only apply in channel (wide-view) mode. Extracted
4
+ from messages.css so the selectors do not run on every style recalc
5
+ in the default bubble view.
6
6
 
7
7
  Default bubble view: dm-bubble-avatar, dm-bubble-header, dm-bubble-name,
8
8
  dm-bubble-time are present in the DOM but hidden / inert. This file
@@ -43,7 +43,6 @@
43
43
  display: none;
44
44
  }
45
45
 
46
- body.mate-dm-active .dm-bubble-avatar,
47
46
  body.wide-view .dm-bubble-avatar {
48
47
  display: block;
49
48
  }
@@ -130,18 +129,15 @@ body.wide-view .msg-assistant:hover {
130
129
 
131
130
  /* Grouped messages: same sender within same minute */
132
131
  body.wide-view .msg-user.grouped > .dm-bubble-avatar,
133
- body.wide-view .msg-assistant.grouped > .dm-bubble-avatar,
134
- body.mate-dm-active .msg-assistant.grouped > .dm-bubble-avatar {
132
+ body.wide-view .msg-assistant.grouped > .dm-bubble-avatar {
135
133
  visibility: hidden;
136
134
  }
137
135
  body.wide-view .msg-user.grouped .dm-bubble-header,
138
- body.wide-view .msg-assistant.grouped .dm-bubble-header,
139
- body.mate-dm-active .msg-assistant.grouped .dm-bubble-header {
136
+ body.wide-view .msg-assistant.grouped .dm-bubble-header {
140
137
  display: none;
141
138
  }
142
139
  body.wide-view .msg-user.grouped,
143
- body.wide-view .msg-assistant.grouped,
144
- body.mate-dm-active .msg-assistant.grouped {
140
+ body.wide-view .msg-assistant.grouped {
145
141
  padding-top: 1px;
146
142
  }
147
143
 
@@ -185,10 +181,10 @@ body.wide-view .turn-meta {
185
181
  max-width: 100%;
186
182
  }
187
183
 
188
- /* Mobile: force bubble layout in wide-view (except mate-dm-active) */
184
+ /* Mobile: force bubble layout in wide-view */
189
185
  @media (max-width: 768px) {
190
- body.wide-view:not(.mate-dm-active) { --content-width: 720px; }
191
- body.wide-view:not(.mate-dm-active) .msg-user {
186
+ body.wide-view { --content-width: 720px; }
187
+ body.wide-view .msg-user {
192
188
  display: flex;
193
189
  flex-direction: column;
194
190
  align-items: flex-end;
@@ -199,7 +195,7 @@ body.wide-view .turn-meta {
199
195
  border-radius: initial;
200
196
  justify-content: initial;
201
197
  }
202
- body.wide-view:not(.mate-dm-active) .msg-assistant {
198
+ body.wide-view .msg-assistant {
203
199
  display: block;
204
200
  flex-direction: initial;
205
201
  align-items: initial;
@@ -209,10 +205,10 @@ body.wide-view .turn-meta {
209
205
  margin: 0 auto 12px;
210
206
  border-radius: 12px;
211
207
  }
212
- body.wide-view:not(.mate-dm-active) .msg-user:hover { background: initial; }
213
- body.wide-view:not(.mate-dm-active) .msg-assistant:hover { background: rgba(var(--overlay-rgb), 0.02); }
214
- body.wide-view:not(.mate-dm-active) .msg-user .dm-bubble-avatar-me { order: initial; }
215
- body.wide-view:not(.mate-dm-active) .msg-user .bubble {
208
+ body.wide-view .msg-user:hover { background: initial; }
209
+ body.wide-view .msg-assistant:hover { background: rgba(var(--overlay-rgb), 0.02); }
210
+ body.wide-view .msg-user .dm-bubble-avatar-me { order: initial; }
211
+ body.wide-view .msg-user .bubble {
216
212
  background: var(--user-bubble);
217
213
  border-radius: 20px 20px 4px 20px;
218
214
  padding: 12px 18px;
@@ -222,17 +218,17 @@ body.wide-view .turn-meta {
222
218
  white-space: pre-wrap;
223
219
  word-wrap: break-word;
224
220
  }
225
- body.wide-view:not(.mate-dm-active) .msg-user .msg-actions { align-self: initial; margin-left: initial; padding-top: initial; }
226
- body.wide-view:not(.mate-dm-active) .msg-user .msg-actions .msg-action-time { display: initial; }
227
- body.wide-view:not(.mate-dm-active) .msg-assistant .md-content {
221
+ body.wide-view .msg-user .msg-actions { align-self: initial; margin-left: initial; padding-top: initial; }
222
+ body.wide-view .msg-user .msg-actions .msg-action-time { display: initial; }
223
+ body.wide-view .msg-assistant .md-content {
228
224
  background: initial;
229
225
  border-radius: initial;
230
226
  padding: initial;
231
227
  }
232
- body.wide-view:not(.mate-dm-active) .thinking-item,
233
- body.wide-view:not(.mate-dm-active) .tool-item,
234
- body.wide-view:not(.mate-dm-active) .tool-group { max-width: var(--content-width); }
235
- body.wide-view:not(.mate-dm-active) .turn-meta { max-width: var(--content-width); }
228
+ body.wide-view .thinking-item,
229
+ body.wide-view .tool-item,
230
+ body.wide-view .tool-group { max-width: var(--content-width); }
231
+ body.wide-view .turn-meta { max-width: var(--content-width); }
236
232
  }
237
233
 
238
234
  /* ==========================================================================
@@ -280,8 +276,7 @@ body.wide-view .channel-thinking > .dm-bubble-content {
280
276
  Permission prompt in channel/DM layout
281
277
  ========================================================================== */
282
278
 
283
- body.wide-view .permission-container,
284
- body.mate-dm-active .permission-container {
279
+ body.wide-view .permission-container {
285
280
  display: flex;
286
281
  flex-direction: row;
287
282
  align-items: flex-start;
@@ -294,18 +289,15 @@ body.mate-dm-active .permission-container {
294
289
  margin: 0;
295
290
  padding: 4px 16px;
296
291
  }
297
- body.wide-view .permission-container:hover,
298
- body.mate-dm-active .permission-container:hover {
292
+ body.wide-view .permission-container:hover {
299
293
  background: var(--bg-alt);
300
294
  }
301
- body.wide-view .permission-container > .dm-bubble-content,
302
- body.mate-dm-active .permission-container > .dm-bubble-content {
295
+ body.wide-view .permission-container > .dm-bubble-content {
303
296
  flex: 1;
304
297
  min-width: 0;
305
298
  }
306
299
 
307
- body.wide-view .permission-container .permission-actions,
308
- body.mate-dm-active .permission-container .permission-actions {
300
+ body.wide-view .permission-container .permission-actions {
309
301
  display: flex;
310
302
  gap: 6px;
311
303
  border: none;
@@ -315,128 +307,3 @@ body.mate-dm-active .permission-container .permission-actions {
315
307
  border-radius: 0;
316
308
  }
317
309
 
318
- /* ==========================================================================
319
- Human DM mode (body.mate-dm-active)
320
- ========================================================================== */
321
-
322
- body.mate-dm-active .dm-bubble-content {
323
- width: auto;
324
- flex: 1;
325
- min-width: 0;
326
- }
327
- body.mate-dm-active .msg-user .dm-bubble-content {
328
- align-items: flex-start;
329
- }
330
- body.mate-dm-active .dm-bubble-header {
331
- display: flex;
332
- }
333
-
334
- body.mate-dm-active .msg-user,
335
- body.mate-dm-active .msg-assistant {
336
- display: flex;
337
- flex-direction: row;
338
- align-items: flex-start;
339
- gap: 8px;
340
- max-width: 100%;
341
- padding: 4px 16px;
342
- margin: 0;
343
- border-radius: 0;
344
- }
345
- body.mate-dm-active .msg-user:hover,
346
- body.mate-dm-active .msg-assistant:hover {
347
- background: var(--bg-alt);
348
- }
349
-
350
- body.mate-dm-active .msg-user {
351
- justify-content: flex-start;
352
- }
353
- body.mate-dm-active .msg-user .dm-bubble-avatar-me {
354
- order: -1;
355
- }
356
- body.mate-dm-active .msg-user .bubble {
357
- background: none;
358
- border-radius: 0;
359
- padding: 0;
360
- max-width: 100%;
361
- font-size: 15px;
362
- line-height: 1.46;
363
- white-space: pre-wrap;
364
- word-wrap: break-word;
365
- }
366
- body.mate-dm-active .msg-user .msg-actions {
367
- display: none;
368
- }
369
-
370
- body.mate-dm-active .msg-assistant .dm-bubble-content {
371
- flex: 1;
372
- min-width: 0;
373
- }
374
- body.mate-dm-active .msg-assistant .md-content {
375
- background: none;
376
- border-radius: 0;
377
- padding: 0;
378
- }
379
-
380
- body.mate-dm-active .turn-meta {
381
- display: none;
382
- }
383
-
384
- /* Mobile: revert to bubble layout in DM mode */
385
- @media (max-width: 768px) {
386
- body.mate-dm-active .msg-user,
387
- body.mate-dm-active .msg-assistant {
388
- display: flex !important;
389
- flex-direction: column !important;
390
- align-items: initial !important;
391
- gap: initial !important;
392
- max-width: var(--content-width) !important;
393
- padding: 0 20px !important;
394
- margin: 0 auto 8px !important;
395
- border-radius: initial !important;
396
- }
397
- body.mate-dm-active .msg-user {
398
- align-items: flex-end !important;
399
- }
400
- body.mate-dm-active .msg-assistant {
401
- margin-bottom: 12px !important;
402
- padding: 4px 20px !important;
403
- }
404
- body.mate-dm-active .msg-user:hover {
405
- background: initial !important;
406
- }
407
- body.mate-dm-active .msg-user .dm-bubble-avatar-me {
408
- display: none !important;
409
- }
410
- body.mate-dm-active .msg-user .dm-bubble-content {
411
- align-items: flex-end !important;
412
- flex: initial !important;
413
- width: 100% !important;
414
- }
415
- body.mate-dm-active .msg-user .dm-bubble-header {
416
- display: none !important;
417
- }
418
- body.mate-dm-active .msg-user .bubble {
419
- background: var(--user-bubble) !important;
420
- border-radius: 20px 20px 4px 20px !important;
421
- padding: 12px 18px !important;
422
- max-width: 85% !important;
423
- width: fit-content !important;
424
- font-size: 15px !important;
425
- line-height: 1.55 !important;
426
- white-space: pre-wrap !important;
427
- word-wrap: break-word !important;
428
- }
429
- body.mate-dm-active .msg-user .msg-actions {
430
- display: flex !important;
431
- }
432
- body.mate-dm-active .msg-assistant .dm-bubble-content {
433
- flex: initial !important;
434
- width: 100% !important;
435
- }
436
- body.mate-dm-active .msg-assistant .md-content {
437
- background: initial !important;
438
- border-radius: initial !important;
439
- padding: initial !important;
440
- }
441
- }
442
-
@@ -350,10 +350,26 @@
350
350
  left: 16px;
351
351
  }
352
352
  .toast-diagnostic {
353
- max-width: none;
353
+ /* lr-4ef618: the clamped container (left:16px/right:16px above) only
354
+ constrains itself — the child kept min-width:280px and no width
355
+ bound, so long unbreakable tokens (hook event names, file paths)
356
+ pushed the child past the container's right edge and clipped
357
+ off-screen. Bind the child to the container and drop the desktop
358
+ min-width floor so it can shrink to fit. */
359
+ width: 100%;
360
+ max-width: 100%;
361
+ min-width: 0;
362
+ box-sizing: border-box;
354
363
  transform: translateY(-8px);
355
364
  }
356
365
  .toast-diagnostic.visible {
357
366
  transform: translateY(0);
358
367
  }
368
+ .toast-diagnostic-msg {
369
+ /* Long unbreakable identifiers (e.g. "PostToolUse", absolute paths)
370
+ must wrap instead of forcing the flex child's intrinsic width
371
+ past the clamped container. */
372
+ overflow-wrap: anywhere;
373
+ word-break: break-word;
374
+ }
359
375
  }
@@ -247,41 +247,10 @@
247
247
 
248
248
  /* Pending permission shake */
249
249
  .icon-strip-item.has-pending-perm,
250
- .icon-strip-wt-item.has-pending-perm,
251
- .icon-strip-mate.has-pending-perm {
250
+ .icon-strip-wt-item.has-pending-perm {
252
251
  animation: permShake 2s ease-in-out infinite;
253
252
  }
254
253
 
255
- /* Mate status dot (top-left) */
256
- .icon-strip-mate .icon-strip-status {
257
- top: 3px;
258
- left: 3px;
259
- bottom: auto;
260
- right: auto;
261
- border-color: var(--sidebar-bg);
262
- z-index: 3;
263
- }
264
-
265
- /* Mate vendor badge (bottom-right) */
266
- .icon-strip-mate .icon-strip-vendor-badge {
267
- position: absolute;
268
- bottom: 3px;
269
- right: 3px;
270
- width: 14px;
271
- height: 14px;
272
- border-radius: 50%;
273
- border: 1.5px solid var(--sidebar-bg);
274
- background: #fff;
275
- object-fit: cover;
276
- object-position: center;
277
- z-index: 3;
278
- pointer-events: none;
279
- }
280
-
281
- .icon-strip-mate.active .icon-strip-status {
282
- opacity: 1;
283
- background: var(--success);
284
- }
285
254
  @keyframes permShake {
286
255
  0%, 8% { transform: translateX(0); }
287
256
  1% { transform: translateX(-2px); }
@@ -526,7 +526,6 @@
526
526
  margin: 0 auto;
527
527
  position: relative;
528
528
  }
529
- body.mate-dm-active #input-wrapper,
530
529
  #main-column.dm-mode #input-wrapper {
531
530
  max-width: 100%;
532
531
  }
@@ -727,61 +726,6 @@ body.mate-dm-active #input-wrapper,
727
726
  #schedule-btn:hover,
728
727
  #input-more-btn:hover { background: rgba(var(--overlay-rgb), 0.06); color: var(--text); }
729
728
 
730
- #ask-mate-btn {
731
- width: 36px;
732
- height: 36px;
733
- padding: 0;
734
- border-radius: 50%;
735
- border: none;
736
- background: transparent;
737
- color: var(--text-muted);
738
- cursor: pointer;
739
- display: flex;
740
- align-items: center;
741
- justify-content: center;
742
- transition: background 0.15s, color 0.15s;
743
- touch-action: manipulation;
744
- position: relative;
745
- }
746
-
747
- #ask-mate-btn .lucide { width: 20px; height: 20px; flex-shrink: 0; }
748
-
749
- #ask-mate-btn:hover { background: rgba(var(--overlay-rgb), 0.06); color: var(--text); }
750
- #ask-mate-btn:active { transform: scale(0.95); }
751
-
752
- /* Mate avatar overlay on @ button.
753
- Rendered desaturated and dim so it sits quietly in the corner of the
754
- input area. Regains saturation on hover, so the user only sees the
755
- actual mate identity when they're actively reaching for the button. */
756
- .ask-mate-avatar {
757
- position: absolute;
758
- bottom: 0;
759
- right: -2px;
760
- width: 20px;
761
- height: 20px;
762
- border-radius: 50%;
763
- border: 1.5px solid var(--input-bg);
764
- pointer-events: none;
765
- opacity: 0.45;
766
- filter: grayscale(100%);
767
- transition: opacity 0.3s, transform 0.3s, filter 0.3s;
768
- }
769
-
770
- #ask-mate-btn:hover .ask-mate-avatar {
771
- opacity: 0.9;
772
- filter: grayscale(0%);
773
- }
774
-
775
- .ask-mate-avatar.fade-out {
776
- opacity: 0;
777
- transform: scale(0.6);
778
- }
779
-
780
- .ask-mate-avatar.fade-in {
781
- opacity: 0.45;
782
- transform: scale(1);
783
- }
784
-
785
729
  #send-btn {
786
730
  flex-shrink: 0;
787
731
  width: 36px;
@@ -900,6 +900,12 @@
900
900
  gap: 0;
901
901
  padding: 2px 4px 2px 0;
902
902
  user-select: none;
903
+ /* lr-4a9c: .loop-pending-popover is appended here and uses
904
+ position:absolute; top:100%; right:0 to anchor under the pending pill.
905
+ Without this, #ralph-sticky (position:relative) is the nearest
906
+ positioned ancestor, so the popover anchors to the whole sticky
907
+ container instead of the header/pill. */
908
+ position: relative;
903
909
  }
904
910
  #ralph-sticky .ralph-sticky-inner {
905
911
  border-color: color-mix(in srgb, var(--accent, #6c5ce7) 40%, var(--border));
@@ -926,6 +932,94 @@
926
932
  #ralph-sticky .ralph-sticky-status { font-size: 12px; color: var(--accent); white-space: nowrap; }
927
933
  #ralph-sticky .ralph-sticky-status .lucide { width: 12px; height: 12px; }
928
934
 
935
+ /* lr-e31b: "N queued" pill — human message(s) waiting for the next loop
936
+ iteration boundary. Sits next to the running-loop status text. Now a
937
+ button (lr-4a9c) that opens a popover listing each queued message with a
938
+ per-item dismiss action. */
939
+ #ralph-sticky .ralph-sticky-pending {
940
+ font-size: 11px;
941
+ color: var(--text-secondary);
942
+ background: rgba(var(--overlay-rgb), 0.08);
943
+ border: none;
944
+ border-radius: 999px;
945
+ padding: 1px 8px;
946
+ white-space: nowrap;
947
+ font-family: inherit;
948
+ cursor: pointer;
949
+ transition: background 0.15s, color 0.15s;
950
+ }
951
+ #ralph-sticky .ralph-sticky-pending:hover {
952
+ color: var(--text);
953
+ background: rgba(var(--overlay-rgb), 0.14);
954
+ }
955
+
956
+ /* lr-4a9c: Pending-message popover, anchored under the "N queued" pill. */
957
+ .loop-pending-popover {
958
+ position: absolute;
959
+ top: 100%;
960
+ right: 0;
961
+ margin-top: 6px;
962
+ width: 280px;
963
+ max-height: 260px;
964
+ overflow-y: auto;
965
+ background: var(--bg-alt);
966
+ border: 1px solid var(--border);
967
+ border-radius: 8px;
968
+ box-shadow: 0 8px 24px rgba(var(--shadow-rgb, 0,0,0), 0.35);
969
+ z-index: 20;
970
+ padding: 8px;
971
+ }
972
+ .loop-pending-popover-title {
973
+ font-size: 10.5px;
974
+ font-weight: 600;
975
+ text-transform: uppercase;
976
+ letter-spacing: 0.3px;
977
+ color: var(--text-muted);
978
+ padding: 2px 4px 6px;
979
+ }
980
+ .loop-pending-list {
981
+ list-style: none;
982
+ margin: 0;
983
+ padding: 0;
984
+ display: flex;
985
+ flex-direction: column;
986
+ gap: 2px;
987
+ }
988
+ .loop-pending-item {
989
+ display: flex;
990
+ align-items: flex-start;
991
+ gap: 6px;
992
+ padding: 6px 4px;
993
+ border-radius: 6px;
994
+ transition: background 0.12s;
995
+ }
996
+ .loop-pending-item:hover {
997
+ background: rgba(var(--overlay-rgb), 0.06);
998
+ }
999
+ .loop-pending-item-text {
1000
+ flex: 1;
1001
+ font-size: 12px;
1002
+ line-height: 1.4;
1003
+ color: var(--text);
1004
+ word-break: break-word;
1005
+ white-space: pre-wrap;
1006
+ }
1007
+ .loop-pending-item-remove {
1008
+ display: inline-flex;
1009
+ align-items: center;
1010
+ justify-content: center;
1011
+ flex-shrink: 0;
1012
+ background: none;
1013
+ border: none;
1014
+ color: var(--text-muted);
1015
+ cursor: pointer;
1016
+ padding: 2px;
1017
+ border-radius: 4px;
1018
+ transition: background 0.15s, color 0.15s;
1019
+ }
1020
+ .loop-pending-item-remove .lucide { width: 13px; height: 13px; }
1021
+ .loop-pending-item-remove:hover { color: var(--error, #ef4444); background: color-mix(in srgb, var(--error, #ef4444) 12%, transparent); }
1022
+
929
1023
  /* Ready state — accent color with glow.
930
1024
  Animate opacity on a pseudo-element instead of box-shadow to avoid
931
1025
  triggering paint on every frame (box-shadow is a paint property). */
@@ -105,10 +105,16 @@
105
105
  #todo-sticky .todo-sticky-item.in-progress .todo-sticky-item-text { color: var(--text); }
106
106
  #todo-sticky .todo-sticky-item.completed .todo-sticky-item-text { color: var(--text-dimmer); text-decoration: line-through; }
107
107
 
108
- /* --- Scroll-to-bottom floating button --- */
108
+ /* --- Scroll-to-bottom floating button ---
109
+ bottom is anchored above the composer's single-line resting height (80px,
110
+ unchanged from before) plus however far the textarea has grown past that
111
+ baseline. --input-growth is published by autoResize()/resetAutoResize()
112
+ in modules/input.js — the single existing place composer height changes —
113
+ so the button tracks multiline/expanded composers without a duplicate
114
+ ResizeObserver (lr-4a3d). */
109
115
  #new-msg-btn {
110
116
  position: absolute;
111
- bottom: 80px;
117
+ bottom: calc(80px + var(--input-growth, 0px));
112
118
  left: 50%;
113
119
  transform: translateX(-50%);
114
120
  background: var(--bg-alt);
@@ -130,6 +136,19 @@
130
136
  display: none;
131
137
  }
132
138
 
139
+ /* Mobile: the tab bar sits below the composer (56px, see input.css), so the
140
+ button needs the same extra clearance #input-area gets — and the same
141
+ keyboard-open exception once the tab bar is hidden behind the keyboard. */
142
+ @media (max-width: 768px) {
143
+ #new-msg-btn {
144
+ bottom: calc(80px + var(--input-growth, 0px) + 56px);
145
+ }
146
+
147
+ body.keyboard-open #new-msg-btn {
148
+ bottom: calc(80px + var(--input-growth, 0px));
149
+ }
150
+ }
151
+
133
152
  /* --- User message --- */
134
153
  .msg-user {
135
154
  display: flex;
@@ -154,7 +173,7 @@
154
173
  text-align: start;
155
174
  }
156
175
 
157
- /* dm-bubble-*, wide-view, mate-dm-active layout → channel-layout.css */
176
+ /* dm-bubble-*, wide-view layout → channel-layout.css */
158
177
 
159
178
  /* --- User message action bar --- */
160
179
  .msg-actions {
@@ -1763,7 +1782,7 @@ pre.mermaid-error {
1763
1782
  }
1764
1783
  }
1765
1784
 
1766
- /* Wide-view, mate-dm-active, channel-thinking, pre-thinking, channel-scoped
1785
+ /* Wide-view, channel-thinking, pre-thinking, channel-scoped
1767
1786
  permission layout → channel-layout.css */
1768
1787
 
1769
1788
  .perm-ask {