@clagentic/console 1.8.0 → 1.9.0-beta.2

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 (64) hide show
  1. package/bin/cli.js +12 -1
  2. package/lib/agents.js +13 -3
  3. package/lib/build-sha.json +2 -2
  4. package/lib/cli/ipc-subcommands.js +40 -4
  5. package/lib/daemon.js +25 -1
  6. package/lib/generated/claude-model-catalog.json +180 -0
  7. package/lib/model-catalog.js +202 -0
  8. package/lib/model-families.js +243 -0
  9. package/lib/project-connection.js +30 -5
  10. package/lib/project-loop.js +46 -2
  11. package/lib/project-sessions.js +133 -21
  12. package/lib/project-user-message.js +70 -3
  13. package/lib/project.js +11 -1
  14. package/lib/public/app.js +14 -4
  15. package/lib/public/css/base.css +14 -0
  16. package/lib/public/css/home-hub.css +28 -8
  17. package/lib/public/css/icon-strip.css +17 -0
  18. package/lib/public/css/menus.css +67 -0
  19. package/lib/public/css/messages.css +11 -0
  20. package/lib/public/css/mobile-nav.css +22 -0
  21. package/lib/public/css/server-settings.css +72 -0
  22. package/lib/public/css/sidebar.css +15 -0
  23. package/lib/public/css/title-bar.css +10 -1
  24. package/lib/public/index.html +4 -0
  25. package/lib/public/modules/activity-latch.js +159 -0
  26. package/lib/public/modules/activity-state.js +157 -0
  27. package/lib/public/modules/app-connection.js +10 -4
  28. package/lib/public/modules/app-favicon.js +88 -1
  29. package/lib/public/modules/app-home-hub.js +14 -11
  30. package/lib/public/modules/app-loop-ui.js +90 -2
  31. package/lib/public/modules/app-messages.js +117 -28
  32. package/lib/public/modules/app-panels.js +184 -56
  33. package/lib/public/modules/app-projects.js +28 -8
  34. package/lib/public/modules/app-rate-limit.js +14 -2
  35. package/lib/public/modules/model-families.js +230 -0
  36. package/lib/public/modules/project-settings.js +1 -0
  37. package/lib/public/modules/scheduler.js +5 -0
  38. package/lib/public/modules/server-settings.js +14 -12
  39. package/lib/public/modules/settings-defaults.js +151 -41
  40. package/lib/public/modules/sidebar-mobile.js +32 -22
  41. package/lib/public/modules/sidebar-projects.js +42 -14
  42. package/lib/public/modules/sidebar-sessions.js +168 -48
  43. package/lib/public/modules/tools.js +22 -12
  44. package/lib/sdk-bridge.js +389 -35
  45. package/lib/sdk-message-processor.js +215 -7
  46. package/lib/sdk-skill-discovery.js +46 -6
  47. package/lib/sdk-slash-enrichment.js +5 -2
  48. package/lib/server-hub-sessions.js +70 -0
  49. package/lib/server.js +79 -22
  50. package/lib/session-activity.js +289 -0
  51. package/lib/sessions.js +104 -3
  52. package/lib/smtp.js +10 -1
  53. package/lib/terminal-manager.js +40 -0
  54. package/lib/utils.js +44 -0
  55. package/lib/ws-schema.js +17 -0
  56. package/lib/yoke/adapters/claude-worker.js +6 -2
  57. package/lib/yoke/adapters/claude.js +384 -88
  58. package/lib/yoke/adapters/codex.js +239 -31
  59. package/package.json +2 -2
  60. package/scripts/check-test-count.js +397 -0
  61. package/scripts/generate-model-catalog.js +337 -0
  62. package/scripts/test-file-completion-reporter.js +43 -0
  63. package/lib/model-context-windows.js +0 -65
  64. package/lib/public/modules/model-context-windows.js +0 -62
@@ -25,6 +25,57 @@ var fs = require("fs");
25
25
  * digestDmTurn,
26
26
  * adapter - YOKE adapter instance
27
27
  */
28
+ // lr-62157d: code-point-aware truncation to a max length. Plain
29
+ // String#substring/slice indexes by UTF-16 code unit, so a cut that lands
30
+ // inside a surrogate pair (e.g. most emoji, many CJK supplementary-plane
31
+ // characters) produces a lone unpaired surrogate — renders as a broken/
32
+ // replacement glyph. Array.from(str) iterates a string by Unicode code
33
+ // point (correctly reassembling surrogate pairs), so slicing the resulting
34
+ // array and rejoining never splits one. BOBBIE fnd (PR #406 review):
35
+ // pasted content is now a title source (see deriveProvisionalTitle below),
36
+ // and pasted text is far more likely to contain emoji/CJK than a typed
37
+ // first line, making this newly reachable in a way it wasn't before. No
38
+ // existing helper for this in the codebase (every other truncation call
39
+ // site uses plain substring — out of scope here, this is a minimal fix
40
+ // for the newly-reachable path only, not a codebase-wide truncation sweep).
41
+ function truncateCodePointSafe(str, maxLen) {
42
+ var codePoints = Array.from(str);
43
+ if (codePoints.length <= maxLen) return str;
44
+ return codePoints.slice(0, maxLen).join("");
45
+ }
46
+
47
+ // lr-62157d: pure helper — derives the FIRST-message provisional title
48
+ // (before any turn has completed / before autoGenerateTitle can run).
49
+ // Prefers real message text; falls back to the first paste when text is
50
+ // empty (a >=500-char paste is diverted server-side into msg.pastes[] with
51
+ // msg.text empty by the client's paste-chip handling — see input.js — so
52
+ // msg.text alone previously always fell through to the "Image" literal for
53
+ // a text paste, not just a genuine image-only message). "Image" is reserved
54
+ // for the case where neither text nor a paste is present. Whitespace is
55
+ // collapsed before truncating since pastes are commonly multi-line and an
56
+ // un-normalized 50-char slice renders as a broken sidebar entry.
57
+ // Exported as _test_deriveProvisionalTitle (see codex.js's
58
+ // _test_resolveTitleModel for the established convention) so this is
59
+ // directly unit-testable without constructing the full WS message handler.
60
+ function deriveProvisionalTitle(msg) {
61
+ var source = msg && msg.text;
62
+ if (!source && msg && msg.pastes && msg.pastes.length > 0) {
63
+ source = msg.pastes[0];
64
+ }
65
+ // PEACHES fnd-439007: msg is raw client-controlled WS JSON with no
66
+ // server-side schema validation (see project-connection.js's bare
67
+ // JSON.parse) — the bundled browser client only ever sends strings in
68
+ // pastes[] (input.js's paste handler pushes p.text, always a string), but
69
+ // nothing enforces that for an arbitrary WS client. A non-string entry
70
+ // (e.g. an object) must not reach .replace(), which only exists on
71
+ // strings — fall through to the "Image" literal instead, exactly the case
72
+ // it was originally written for.
73
+ var collapsed = typeof source === "string"
74
+ ? truncateCodePointSafe(source.replace(/\s+/g, " ").trim(), 50)
75
+ : "";
76
+ return collapsed || "Image";
77
+ }
78
+
28
79
  function attachUserMessage(ctx) {
29
80
  var cwd = ctx.cwd;
30
81
  var slug = ctx.slug;
@@ -302,7 +353,19 @@ function attachUserMessage(ctx) {
302
353
  if (!msg.text && (!msg.images || msg.images.length === 0) && (!msg.pastes || msg.pastes.length === 0)) return true;
303
354
 
304
355
  var session = getSessionForWs(ws);
305
- if (!session) return true;
356
+ if (!session) {
357
+ // lr-5450ef: this used to be a bare `return true` — the message was
358
+ // silently swallowed with no feedback to the sender whatsoever (not
359
+ // even a server log line), the same silence-to-UI failure class as
360
+ // the pendingMessages buffering fixed alongside this in sdk-bridge.js.
361
+ // getSessionForWs returning null here means the client's websocket
362
+ // has no session bound to it (e.g. stale/detached client, session
363
+ // deleted from under it) — surface that instead of pretending the
364
+ // message was handled.
365
+ console.error("[project-user-message] Dropping user message: no session bound to this websocket (slug=" + slug + ")");
366
+ sendTo(ws, { type: "error", text: "Clagentic: Console couldn't find your session — try reloading." });
367
+ return true;
368
+ }
306
369
 
307
370
  // Bind vendor to session on first message (if not already set)
308
371
  if (!session.vendor && msg.vendor) {
@@ -353,7 +416,11 @@ function attachUserMessage(ctx) {
353
416
  sendToSessionOthers(ws, session.localId, hydrateImageRefs(userMsg2));
354
417
 
355
418
  if (!session.title) {
356
- session.title = (msg.text || "Image").substring(0, 50);
419
+ session.title = deriveProvisionalTitle(msg);
420
+ // This is only a provisional title — autoGenerateTitle (sdk-bridge.js)
421
+ // is allowed to overwrite it once a real LLM-generated title is ready,
422
+ // as long as the user hasn't manually renamed the session since.
423
+ session.titleProvisional = true;
357
424
  sm.saveSessionFile(session);
358
425
  sm.broadcastSessionList();
359
426
  // Sync auto-title to SDK
@@ -660,5 +727,5 @@ function attachUserMessage(ctx) {
660
727
  };
661
728
  }
662
729
 
663
- module.exports = { attachUserMessage: attachUserMessage };
730
+ module.exports = { attachUserMessage: attachUserMessage, _test_deriveProvisionalTitle: deriveProvisionalTitle };
664
731
 
package/lib/project.js CHANGED
@@ -2,7 +2,7 @@ var fs = require("fs");
2
2
  var path = require("path");
3
3
  var os = require("os");
4
4
  var crypto = require("crypto");
5
- var { createSessionManager } = require("./sessions");
5
+ var { createSessionManager, stampActivityLocalId } = require("./sessions");
6
6
  var { createSDKBridge, createMessageQueue } = require("./sdk-bridge");
7
7
  var { createTerminalManager } = require("./terminal-manager");
8
8
  var { createNotesManager } = require("./notes");
@@ -175,6 +175,9 @@ function createProjectContext(opts) {
175
175
  var getScheduleCount = opts.getScheduleCount || function () { return 0; };
176
176
  var onProcessingChanged = opts.onProcessingChanged || function () {};
177
177
  var onSessionDone = opts.onSessionDone || function () {};
178
+ // lr-13c047: fired when a session is deleted so server.js can prune the
179
+ // corresponding crossProjectUnread entry (Badge A prune-on-delete fix).
180
+ var onSessionDeleted = opts.onSessionDeleted || function () {};
178
181
  var onPresenceChange = opts.onPresenceChange || function () {};
179
182
  var updateChannel = opts.updateChannel || "stable";
180
183
  var onSetUpdateChannel = opts.onSetUpdateChannel || null;
@@ -378,6 +381,11 @@ function createProjectContext(opts) {
378
381
  }
379
382
 
380
383
  function sendToSession(sessionId, obj) {
384
+ // Stamp localId on status/done/auth_required so the client can
385
+ // session-scope the edge write instead of applying it blind to
386
+ // whichever session is currently focused — see sessions.js's
387
+ // stampActivityLocalId doc comment for the full rationale/type list.
388
+ stampActivityLocalId(sessionId, obj);
381
389
  var data = JSON.stringify(obj);
382
390
  for (var ws of clients) {
383
391
  if (ws.readyState === 1 && ws._clayActiveSession === sessionId) {
@@ -387,6 +395,7 @@ function createProjectContext(opts) {
387
395
  }
388
396
 
389
397
  function sendToSessionOthers(sender, sessionId, obj) {
398
+ stampActivityLocalId(sessionId, obj);
390
399
  var data = JSON.stringify(obj);
391
400
  for (var ws of clients) {
392
401
  if (ws !== sender && ws.readyState === 1 && ws._clayActiveSession === sessionId) {
@@ -437,6 +446,7 @@ function createProjectContext(opts) {
437
446
  }
438
447
  },
439
448
  onSessionDone: onSessionDone,
449
+ onSessionDeleted: onSessionDeleted,
440
450
  historyInMemMax: historyInMemMax,
441
451
  });
442
452
  sm.availableVendors = Object.keys(adapters);
package/lib/public/app.js CHANGED
@@ -52,7 +52,7 @@ import { getWs as _getWsRef, setWs as _setWsRef } from './modules/ws-ref.js';
52
52
  import { initHomeHub, showHomeHub as _hubShowHomeHub, hideHomeHub as _hubHideHomeHub, handleHubSchedules as _hubHandleHubSchedules, renderHomeHub as _hubRenderHomeHub, isHomeHubVisible } from './modules/app-home-hub.js';
53
53
  import { initRateLimit, handleRateLimitEvent as _rlHandleRateLimitEvent, updateRateLimitUsage as _rlUpdateRateLimitUsage, addScheduledMessageBubble as _rlAddScheduledMessageBubble, removeScheduledMessageBubble as _rlRemoveScheduledMessageBubble, handleFastModeState as _rlHandleFastModeState, getScheduledMsgEl, resetRateLimitState } from './modules/app-rate-limit.js';
54
54
  import { initCursors, handleRemoteCursorMove as _curHandleRemoteCursorMove, handleRemoteCursorLeave as _curHandleRemoteCursorLeave, handleRemoteSelection as _curHandleRemoteSelection, clearRemoteCursors as _curClearRemoteCursors, initCursorToggle } from './modules/app-cursors.js';
55
- import { initFavicon, updateFavicon as _favUpdateFavicon, setSendBtnMode as _favSetSendBtnMode, blinkIO as _favBlinkIO, blinkSessionDot as _favBlinkSessionDot, updateCrossProjectBlink as _favUpdateCrossProjectBlink, startUrgentBlink as _favStartUrgentBlink, stopUrgentBlink as _favStopUrgentBlink, setActivity as _favSetActivity, drawFaviconAnimFrame as _favDrawFaviconAnimFrame } from './modules/app-favicon.js';
55
+ import { initFavicon, initActivityFooter, updateFavicon as _favUpdateFavicon, setSendBtnMode as _favSetSendBtnMode, blinkIO as _favBlinkIO, blinkSessionDot as _favBlinkSessionDot, updateCrossProjectBlink as _favUpdateCrossProjectBlink, startUrgentBlink as _favStartUrgentBlink, stopUrgentBlink as _favStopUrgentBlink, setActivity as _favSetActivity, drawFaviconAnimFrame as _favDrawFaviconAnimFrame } from './modules/app-favicon.js';
56
56
  import { initHeader, closeSessionInfoPopover as _hdrCloseSessionInfoPopover, updateHistorySentinel as _hdrUpdateHistorySentinel, requestMoreHistory as _hdrRequestMoreHistory, prependOlderHistory as _hdrPrependOlderHistory } from './modules/app-header.js';
57
57
  import { initMisc, flushPendingExtMessages, showImageModal as _miscShowImageModal, closeImageModal as _miscCloseImageModal, showPasteModal as _miscShowPasteModal, closePasteModal as _miscClosePasteModal, showConfirm as _miscShowConfirm, hideConfirm as _miscHideConfirm, showForceChangePinOverlay as _miscShowForceChangePinOverlay, sendExtensionCommand as _miscSendExtensionCommand, handleExtensionResult as _miscHandleExtensionResult } from './modules/app-misc.js';
58
58
  import { initSkillInstall, requireSkills as _siRequireSkills, handleSkillInstallWs as _siHandleSkillInstallWs } from './modules/app-skills-install.js';
@@ -60,13 +60,14 @@ import { initLoopUi, updateLoopInputVisibility as _loopUpdateLoopInputVisibility
60
60
  import { initLoopWizard, openRalphWizard as _loopOpenRalphWizard, closeRalphWizard as _loopCloseRalphWizard, getWizardSource as _loopGetWizardSource } from './modules/app-loop-wizard.js';
61
61
  import { initAppNotifications, handleNotificationsState as _notifHandleState, handleNotificationCreated as _notifHandleCreated, handleNotificationDismissed as _notifHandleDismissed, handleNotificationDismissedAll as _notifHandleDismissedAll } from './modules/app-notifications.js';
62
62
  import { createStore, store } from './modules/store.js';
63
- import { initPanels, updateConfigChip as _panUpdateConfigChip, getModelEffortLevels as _panGetModelEffortLevels, accumulateUsage as _panAccumulateUsage, updateUsagePanel as _panUpdateUsagePanel, resetUsage as _panResetUsage, toggleUsagePanel as _panToggleUsagePanel, formatTokens as _panFormatTokens, updateStatusPanel as _panUpdateStatusPanel, requestProcessStats as _panRequestProcessStats, toggleStatusPanel as _panToggleStatusPanel, accumulateContext as _panAccumulateContext, updateContextPanel as _panUpdateContextPanel, resetContext as _panResetContext, resetContextData as _panResetContextData, minimizeContext as _panMinimizeContext, expandContext as _panExpandContext, toggleContextPanel as _panToggleContextPanel, getContextView as _panGetContextView, renderCtxPopover as _panRenderCtxPopover, hideCtxPopover as _panHideCtxPopover, formatBytes as _panFormatBytes, formatUptime as _panFormatUptime, getModelSupportsEffort as _panGetModelSupportsEffort, getSessionUsage, setSessionUsage, getContextData, setContextData, setContextView as _panSetContextView, applyContextView as _panApplyContextView } from './modules/app-panels.js';
63
+ import { initPanels, updateConfigChip as _panUpdateConfigChip, getModelEffortLevels as _panGetModelEffortLevels, accumulateUsage as _panAccumulateUsage, updateUsagePanel as _panUpdateUsagePanel, resetUsage as _panResetUsage, toggleUsagePanel as _panToggleUsagePanel, formatTokens as _panFormatTokens, updateStatusPanel as _panUpdateStatusPanel, requestProcessStats as _panRequestProcessStats, toggleStatusPanel as _panToggleStatusPanel, accumulateContext as _panAccumulateContext, updateContextPanel as _panUpdateContextPanel, resetContext as _panResetContext, resetContextData as _panResetContextData, minimizeContext as _panMinimizeContext, expandContext as _panExpandContext, toggleContextPanel as _panToggleContextPanel, getContextView as _panGetContextView, renderCtxPopover as _panRenderCtxPopover, hideCtxPopover as _panHideCtxPopover, formatBytes as _panFormatBytes, formatUptime as _panFormatUptime, getModelSupportsEffort as _panGetModelSupportsEffort, getSessionUsage, setSessionUsage, setContextData, setContextView as _panSetContextView, applyContextView as _panApplyContextView, getEffectiveContextFill as _panGetEffectiveContextFill } from './modules/app-panels.js';
64
64
  import { initProjects, onProjectListUpdated, onResetClientState, updateProjectList as _projUpdateProjectList, renderProjectList as _projRenderProjectList, renderTopbarPresence as _projRenderTopbarPresence, switchProject as _projSwitchProject, resetClientState as _projResetClientState, confirmRemoveProject as _projConfirmRemoveProject, handleRemoveProjectCheckResult as _projHandleRemoveProjectCheckResult, handleRemoveProjectResult as _projHandleRemoveProjectResult, openAddProjectModal as _projOpenAddProjectModal, closeAddProjectModal as _projCloseAddProjectModal, handleBrowseDirResult as _projHandleBrowseDirResult, handleAddProjectResult as _projHandleAddProjectResult, handleCloneProgress as _projHandleCloneProgress, showUpdateAvailable as _projShowUpdateAvailable, getCachedProjects, setCachedProjects, getCachedProjectCount, getCachedRemovedProjects, setCachedRemovedProjects } from './modules/app-projects.js';
65
65
  import { initRendering, addToMessages as _renAddToMessages, scrollToBottom as _renScrollToBottom, forceScrollToBottom as _renForceScrollToBottom, addUserMessage as _renAddUserMessage, getMsgTime as _renGetMsgTime, shouldGroupMessage as _renShouldGroupMessage, ensureAssistantBlock as _renEnsureAssistantBlock, addCopyHandler as _renAddCopyHandler, appendDelta as _renAppendDelta, flushStreamBuffer as _renFlushStreamBuffer, finalizeAssistantBlock as _renFinalizeAssistantBlock, addSystemMessage as _renAddSystemMessage, addConflictMessage as _renAddConflictMessage, addContextOverflowMessage as _renAddContextOverflowMessage, showClaudePreThinking as _renShowClaudePreThinking, showSuggestionChips as _renShowSuggestionChips, hideSuggestionChips as _renHideSuggestionChips, getGhostSuggestion as _renGetGhostSuggestion, getTurnCounter, setTurnCounter, getPrependAnchor, setPrependAnchor, getActivityEl, setActivityEl, getIsUserScrolledUp, setIsUserScrolledUp, getStickyBottom, armStickyBottom, disarmStickyBottom } from './modules/app-rendering.js';
66
66
  import { initDm, openDm as _dmOpenDm, enterDmMode as _dmEnterDmMode, exitDmMode as _dmExitDmMode, appendDmMessage as _dmAppendDmMessage, showDmTypingIndicator as _dmShowDmTypingIndicator, handleDmSend as _dmHandleDmSend } from './modules/app-dm.js';
67
67
  import { initMention, handleMentionStart, handleMentionStream, handleMentionDone, handleMentionError, handleMentionActivity, renderMentionUser, renderMentionResponse } from './modules/mention.js';
68
68
  import { initTeamPanel } from './modules/team-panel.js';
69
69
  import { initDiagnostics } from './modules/diagnostics.js';
70
+ import { getActivityEdgeLedger } from './modules/activity-latch.js';
70
71
 
71
72
  // --- Base path for multi-project routing ---
72
73
  var slugMatch = location.pathname.match(/^\/p\/([a-z0-9_-]+)/);
@@ -540,6 +541,7 @@ import { initDiagnostics } from './modules/diagnostics.js';
540
541
 
541
542
  // --- Favicon module ---
542
543
  initFavicon();
544
+ initActivityFooter();
543
545
 
544
546
  // --- Header module (rename, info popover, history) ---
545
547
  initHeader();
@@ -574,8 +576,10 @@ import { initDiagnostics } from './modules/diagnostics.js';
574
576
  stopUrgentBlink: function() { stopUrgentBlink(); },
575
577
  showImageModal: showImageModal,
576
578
  getContextPercent: function() {
577
- var cd = getContextData();
578
- return cd.contextWindow > 0 ? Math.round((cd.input / cd.contextWindow) * 100) : 0;
579
+ // lr-3af675: route through the same (used, win) pair the header bar
580
+ // and popover render from, so this label can never disagree with them.
581
+ var fill = _panGetEffectiveContextFill();
582
+ return fill.win > 0 ? Math.round((fill.used / fill.win) * 100) : 0;
579
583
  },
580
584
  getClaudeAvatar: function () { return CLAUDE_CODE_AVATAR; },
581
585
  });
@@ -1031,6 +1035,12 @@ import { initDiagnostics } from './modules/diagnostics.js';
1031
1035
  // --- Diagnostics panel (lr-8294, epic lr-1a52) ---
1032
1036
  initDiagnostics();
1033
1037
 
1038
+ // lr-58c813: expose the client-side activity-edge accept/reject ledger for
1039
+ // production retrieval without a debugger — open devtools console and run
1040
+ // `window.__clagenticActivityLedger()`. Read-only accessor over a plain
1041
+ // counter object (activity-latch.js); does not affect rendering.
1042
+ window.__clagenticActivityLedger = getActivityEdgeLedger;
1043
+
1034
1044
  // --- Messages module (uses direct imports, no ctx injection needed) ---
1035
1045
 
1036
1046
  // --- Connection module ---
@@ -57,6 +57,20 @@ img.emoji {
57
57
  --error: #FF4D6A;
58
58
  --success: #29D9A8;
59
59
  --warning: #4A7FE8;
60
+ /* lr-66c118: --danger was referenced with two DISAGREEING fallbacks
61
+ (#F24822 at sidebar.css:1713, #e74c3c at icon-strip.css/mention.css)
62
+ but never defined here. Defining it settles both call sites on one
63
+ color; #e74c3c matches the existing unread/alert red already used
64
+ throughout (session-unread-badge, hub-recent-dot.alert, etc). */
65
+ --danger: #e74c3c;
66
+ /* lr-66c118: multi-user activity tone — a THIRD color, distinct from
67
+ --success (own activity, green) and --danger (alert, red). Violet is
68
+ maximally hue-separated from both and from --accent (cyan) /
69
+ --accent2/--warning (blue), which already carry meaning. Hue alone is
70
+ not sufficient at 6-8px (deuteranopia/protanopia; violet/blue
71
+ confusion) — render sites must pair this with a shape difference
72
+ (ring vs filled disc), never ship on hue alone. */
73
+ --activity-other: #B77BF3;
60
74
  --accent-8: rgba(0, 207, 255, 0.08);
61
75
  --accent-12: rgba(0, 207, 255, 0.12);
62
76
  --accent-15: rgba(0, 207, 255, 0.15);
@@ -297,6 +297,12 @@
297
297
  background: var(--success);
298
298
  box-shadow: 0 0 6px rgba(80, 250, 123, 0.4);
299
299
  }
300
+ /* Multi-user tone (lr-66c118): ring shape, see .hub-recent-dot.other */
301
+ .hub-project-dot.other {
302
+ background: transparent;
303
+ border: 1.5px solid var(--activity-other, #B77BF3);
304
+ box-shadow: 0 0 4px rgba(183, 123, 243, 0.4);
305
+ }
300
306
  .hub-project-icon {
301
307
  font-size: 14px;
302
308
  width: 20px;
@@ -491,18 +497,32 @@
491
497
  opacity: 1;
492
498
  box-shadow: 0 0 6px rgba(80, 250, 123, 0.4);
493
499
  }
494
- /* Alert state — color precedence LOCKED (andy, lr-0aa7b6):
495
- alert(red) > processing(green) > live(green) > idle(grey). This class is
496
- applied instead of .processing when the row's session is notifying, so
497
- red always wins visually even if the session is also active. Same red
498
- used by .icon-strip-project-badge (unread badge). Formerly a SEPARATE
499
- right-side dot (.hub-recent-alert-dot, removed) — now just another color
500
- state of the single left dot. */
500
+ /* Alert state — color precedence LOCKED (andy, lr-0aa7b6), promoted into
501
+ activity-state.js's indicatorClass() as the canonical derivation for
502
+ every surface (lr-66c118): alert(red) > processing(green) > idle(grey).
503
+ ("live" never existed as a separate CSS class from "processing" anywhere
504
+ in the codebase — the old 4-state comment here was aspirational, not
505
+ real; reconciled to the 3 states actually shipped.) This class is applied
506
+ instead of .processing when the row's session is notifying, so red always
507
+ wins visually even if the session is also active. Same red used by
508
+ .icon-strip-project-badge (unread badge), now tokenized as --danger.
509
+ Formerly a SEPARATE right-side dot (.hub-recent-alert-dot, removed) — now
510
+ just another color state of the single left dot. */
501
511
  .hub-recent-dot.alert {
502
- background: #e74c3c;
512
+ background: var(--danger, #e74c3c);
503
513
  opacity: 1;
504
514
  box-shadow: 0 0 6px rgba(231, 76, 60, 0.5);
505
515
  }
516
+ /* Multi-user tone (lr-66c118): another user's activity — distinct violet
517
+ hue AND a ring shape (transparent center, colored border) instead of a
518
+ filled disc, so the state is distinguishable at 7px even under a
519
+ red/green color-vision deficiency (hue alone must not ship alone). */
520
+ .hub-recent-dot.other {
521
+ background: transparent;
522
+ opacity: 1;
523
+ border: 1.5px solid var(--activity-other, #B77BF3);
524
+ box-shadow: 0 0 4px rgba(183, 123, 243, 0.4);
525
+ }
506
526
  .hub-recent-project-icon {
507
527
  font-size: 14px;
508
528
  width: 20px;
@@ -237,6 +237,23 @@
237
237
  background: var(--success);
238
238
  }
239
239
 
240
+ /* Multi-user tone (lr-66c118): ring shape (transparent center, colored
241
+ border) instead of a filled disc, plus a distinct violet hue — hue alone
242
+ is not sufficient to distinguish "another user active" from "I'm active"
243
+ at 10px under a red/green color-vision deficiency. */
244
+ .icon-strip-status.other {
245
+ opacity: 1;
246
+ background: transparent;
247
+ border-width: 2px;
248
+ border-color: var(--activity-other, #B77BF3);
249
+ }
250
+
251
+ /* Alert tone (lr-66c118): unread activity wins over processing green. */
252
+ .icon-strip-status.alert {
253
+ opacity: 1;
254
+ background: var(--danger, #e74c3c);
255
+ }
256
+
240
257
  /* IO blink = HDD LED flash */
241
258
  .icon-strip-status.io {
242
259
  opacity: 1;
@@ -519,6 +519,19 @@
519
519
  padding: 4px 14px 4px;
520
520
  }
521
521
 
522
+ /* lr-db0437: states which scope a model/mode picker applies to — "This
523
+ session only" / "Default for new sessions in this project" / "Server
524
+ default" / loop-scoped. Shared across the config-chip popover, project
525
+ settings, server settings, Ralph-loop preview, and scheduler task tabs
526
+ (some of those render inside .settings-card, not .config-section, hence
527
+ the standalone rule rather than nesting under .config-section-label). */
528
+ .config-scope-label {
529
+ font-size: 11px;
530
+ color: var(--text-dimmer);
531
+ padding: 0 14px 6px;
532
+ font-style: italic;
533
+ }
534
+
522
535
  .config-radio-list {
523
536
  display: flex;
524
537
  flex-direction: column;
@@ -544,6 +557,60 @@
544
557
  .config-radio-item:hover { background: rgba(var(--overlay-rgb),0.05); color: var(--text); }
545
558
  .config-radio-item.active { color: var(--accent); font-weight: 600; }
546
559
 
560
+ /* lr-f22787: same catalog-sourced marker as .settings-model-catalog-badge
561
+ (server-settings.css), for the session-chip model picker surface. */
562
+ .config-model-catalog-badge {
563
+ font-size: 10px;
564
+ font-weight: 600;
565
+ text-transform: uppercase;
566
+ letter-spacing: 0.04em;
567
+ color: var(--text-dimmer);
568
+ }
569
+
570
+ /* lr-f22787 (retired-disabled variant removed by lr-d3817f — retired
571
+ entries are filtered out of the picker entirely, never rendered): a
572
+ deprecated (still-runnable) entry keeps a marker only. */
573
+ .config-model-deprecated-badge {
574
+ font-size: 10px;
575
+ font-weight: 600;
576
+ text-transform: uppercase;
577
+ letter-spacing: 0.04em;
578
+ color: var(--warning, #e5a83d);
579
+ }
580
+
581
+ /* --- Older models disclosure (lr-e03635) — session-chip model picker's
582
+ collapsible escape hatch, mirroring the settings-panel disclosure
583
+ (.settings-older-models-toggle/-body in server-settings.css) for the
584
+ .config-radio-list surface. */
585
+ .config-older-models-toggle {
586
+ display: flex;
587
+ align-items: center;
588
+ justify-content: space-between;
589
+ width: 100%;
590
+ padding: 8px 14px;
591
+ border: none;
592
+ background: none;
593
+ color: var(--text-muted);
594
+ font-family: inherit;
595
+ font-size: 12px;
596
+ cursor: pointer;
597
+ text-align: left;
598
+ }
599
+
600
+ .config-older-models-toggle:hover { color: var(--text-secondary); background: rgba(var(--overlay-rgb),0.05); }
601
+
602
+ .config-older-models-toggle .settings-adv-chevron {
603
+ width: 14px;
604
+ height: 14px;
605
+ flex-shrink: 0;
606
+ transition: transform 0.15s;
607
+ }
608
+
609
+ .config-older-models-body {
610
+ display: flex;
611
+ flex-direction: column;
612
+ }
613
+
547
614
  /* Segmented control for effort */
548
615
  .config-segmented {
549
616
  display: flex;
@@ -632,6 +632,17 @@ pre.mermaid-error {
632
632
 
633
633
  .thinking-item.done .thinking-spinner { display: none; }
634
634
 
635
+ /* lr-6e20f7: bubble layout (body:not(.wide-view)) has its own
636
+ bottom-of-transcript presence indicator (.activity-inline, driven by
637
+ activity-state.js via app-favicon.js's initActivityFooter). The thinking
638
+ block owns DETAIL (the expandable content), not presence — showing this
639
+ spinner too duplicated the footer dots (this task's SYMPTOM B: one
640
+ indicator here, one at the bottom, simultaneously). Channel layout has no
641
+ such duplicate (its footer, .channel-pre-thinking, is always removed by
642
+ removePreThinking() before a real thinking block ever renders), so this
643
+ is scoped to bubble layout only. */
644
+ body:not(.wide-view) .thinking-spinner { display: none; }
645
+
635
646
  .thinking-content {
636
647
  display: none;
637
648
  padding: 8px 14px;
@@ -217,6 +217,17 @@
217
217
  flex-shrink: 0;
218
218
  }
219
219
 
220
+ /* Multi-user tone (lr-66c118): ring shape, distinct violet hue. */
221
+ .mobile-project-processing.other {
222
+ background: transparent;
223
+ border: 1.5px solid var(--activity-other, #B77BF3);
224
+ box-sizing: border-box;
225
+ }
226
+ /* Alert tone (lr-66c118): unread wins over processing green. */
227
+ .mobile-project-processing.alert {
228
+ background: var(--danger, #e74c3c);
229
+ }
230
+
220
231
  .mobile-project-unread {
221
232
  min-width: 18px;
222
233
  height: 18px;
@@ -865,6 +876,17 @@
865
876
  box-shadow: 0 0 4px var(--success);
866
877
  }
867
878
 
879
+ /* Multi-user tone (lr-66c118): ring shape, distinct violet hue. */
880
+ .mobile-session-processing.other {
881
+ background: transparent;
882
+ border: 1.5px solid var(--activity-other, #B77BF3);
883
+ box-sizing: border-box;
884
+ }
885
+ /* Alert tone (lr-66c118): unread wins over processing green. */
886
+ .mobile-session-processing.alert {
887
+ background: var(--danger, #e74c3c);
888
+ }
889
+
868
890
  /* Date group header inside sheet */
869
891
  .mobile-sheet-group {
870
892
  padding: 14px 12px 6px;
@@ -424,6 +424,37 @@
424
424
  transform: translateY(-50%);
425
425
  }
426
426
 
427
+ /* lr-f22787: marks a model entry sourced from the release-time-generated
428
+ catalog (lib/generated/claude-model-catalog.json) rather than the
429
+ vendor's live enumeration — shown, never hidden, just visually
430
+ distinguished (PR body point (c)). */
431
+ .settings-model-catalog-badge {
432
+ font-size: 10px;
433
+ font-weight: 600;
434
+ text-transform: uppercase;
435
+ letter-spacing: 0.04em;
436
+ color: var(--text-dimmer);
437
+ background: rgba(var(--overlay-rgb), 0.08);
438
+ border-radius: 4px;
439
+ padding: 1px 5px;
440
+ margin-left: 6px;
441
+ }
442
+
443
+ /* lr-f22787 (retired-disabled variant removed by lr-d3817f — retired
444
+ entries are filtered out of the picker entirely, never rendered): a
445
+ deprecated (still-runnable) entry keeps a marker only. */
446
+ .settings-model-deprecated-badge {
447
+ font-size: 10px;
448
+ font-weight: 600;
449
+ text-transform: uppercase;
450
+ letter-spacing: 0.04em;
451
+ color: var(--warning, #e5a83d);
452
+ background: rgba(var(--warning-rgb, 229, 168, 61), 0.1);
453
+ border-radius: 4px;
454
+ padding: 1px 5px;
455
+ margin-left: 6px;
456
+ }
457
+
427
458
  .settings-model-name {
428
459
  font-size: 13px;
429
460
  font-weight: 500;
@@ -440,6 +471,47 @@
440
471
  color: var(--text-muted);
441
472
  }
442
473
 
474
+ /* --- Older models disclosure (lr-e03635) ---
475
+ Mirrors the in-section "Advanced" collapsible pattern (see
476
+ #settings-advanced-memory-toggle/-body) so the model picker's escape
477
+ hatch to older models behaves and looks identical to the existing
478
+ disclosure convention rather than inventing a new one. */
479
+ .settings-older-models-toggle {
480
+ display: flex;
481
+ align-items: center;
482
+ justify-content: space-between;
483
+ width: 100%;
484
+ margin-top: 4px;
485
+ padding: 8px 12px;
486
+ border: none;
487
+ background: none;
488
+ color: var(--text-dimmer);
489
+ font-family: inherit;
490
+ font-size: 12px;
491
+ cursor: pointer;
492
+ text-align: left;
493
+ border-radius: 8px;
494
+ }
495
+
496
+ .settings-older-models-toggle:hover {
497
+ color: var(--text-secondary);
498
+ background: rgba(var(--overlay-rgb), 0.04);
499
+ }
500
+
501
+ .settings-older-models-toggle .settings-adv-chevron {
502
+ width: 14px;
503
+ height: 14px;
504
+ flex-shrink: 0;
505
+ transition: transform 0.15s;
506
+ }
507
+
508
+ .settings-older-models-body {
509
+ display: flex;
510
+ flex-direction: column;
511
+ gap: 4px;
512
+ margin-top: 4px;
513
+ }
514
+
443
515
  /* --- Button group --- */
444
516
  .settings-btn-group {
445
517
  display: flex;
@@ -892,6 +892,21 @@
892
892
  box-shadow: 0 0 4px var(--success);
893
893
  }
894
894
 
895
+ /* Multi-user tone (lr-66c118): another user's activity — ring shape (not a
896
+ filled disc) plus a distinct violet hue, so hue alone never carries the
897
+ distinction at 6px. */
898
+ .session-item .session-processing.other,
899
+ .mate-session-item .session-processing.other {
900
+ background: transparent;
901
+ border: 1.5px solid var(--activity-other, #B77BF3);
902
+ box-sizing: border-box;
903
+ }
904
+ /* Alert tone (lr-66c118): unread activity wins over processing green. */
905
+ .session-item .session-processing.alert,
906
+ .mate-session-item .session-processing.alert {
907
+ background: var(--danger, #e74c3c);
908
+ }
909
+
895
910
  /* Session unread badge */
896
911
  .session-unread-badge {
897
912
  position: absolute;
@@ -580,6 +580,14 @@
580
580
  line-height: 1;
581
581
  }
582
582
 
583
+ /* lr-872f94: vendor-reported rate-limit usedPercent, shown in the pill
584
+ itself alongside the label (previously only in the transient popover). */
585
+ .header-pill-pct {
586
+ line-height: 1;
587
+ font-weight: 700;
588
+ opacity: 0.75;
589
+ }
590
+
583
591
  /* Rate limit wrapper for popover positioning */
584
592
  .header-rate-limit-wrap {
585
593
  position: relative;
@@ -666,7 +674,8 @@
666
674
 
667
675
  /* Hide pills on very narrow screens */
668
676
  @media (max-width: 400px) {
669
- .header-pill-text { display: none; }
677
+ .header-pill-text,
678
+ .header-pill-pct { display: none; }
670
679
  .header-rate-limit,
671
680
  .header-fast-mode { padding: 3px; }
672
681
  .rate-limit-popover { font-size: 11px; padding: 6px 10px; }
@@ -373,6 +373,7 @@
373
373
  <div class="usage-row"><span class="usage-label">Used</span><span id="context-used" class="usage-value">-</span></div>
374
374
  <div class="usage-row"><span class="usage-label">Window</span><span id="context-window" class="usage-value">-</span></div>
375
375
  <div class="usage-row"><span class="usage-label">Max output</span><span id="context-max-output" class="usage-value">-</span></div>
376
+ <div class="usage-row hidden"><span class="usage-label">Reasoning</span><span id="context-reasoning" class="usage-value">-</span></div>
376
377
  <div class="usage-divider"></div>
377
378
  <div class="usage-section-label">Model</div>
378
379
  <div class="usage-row"><span class="usage-label">Name</span><span id="context-model" class="usage-value">-</span></div>
@@ -435,6 +436,7 @@
435
436
  <div id="config-popover" class="hidden">
436
437
  <div class="config-section">
437
438
  <div class="config-section-label">MODEL</div>
439
+ <div id="config-model-scope" class="config-scope-label">This session only</div>
438
440
  <div id="config-model-list" class="config-radio-list"></div>
439
441
  </div>
440
442
  <div class="config-section">
@@ -653,6 +655,7 @@
653
655
  <div class="settings-field">
654
656
  <label class="settings-label">Model</label>
655
657
  <div class="settings-hint">Choose the Claude model to use. Larger models are slower but more capable.</div>
658
+ <div id="ps-model-scope" class="config-scope-label"></div>
656
659
  <div id="ps-model-list" class="settings-model-list"></div>
657
660
  </div>
658
661
  </div>
@@ -1176,6 +1179,7 @@
1176
1179
  <div class="settings-field">
1177
1180
  <label class="settings-label">Model</label>
1178
1181
  <div class="settings-hint">Choose the Claude model to use. Larger models are slower but more capable.</div>
1182
+ <div id="ss-model-scope" class="config-scope-label"></div>
1179
1183
  <div id="ss-model-list" class="settings-model-list"></div>
1180
1184
  </div>
1181
1185
  </div>