Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

feat(speech): center-anchored equalizer bars replace the VU dots in the capsule

enes8d3fc4f586f6
diff --git a/src/renderer/components/DictationOverlay.tsx b/src/renderer/components/DictationOverlay.tsx
index 7440bd9e5..207b87955 100644
--- a/src/renderer/components/DictationOverlay.tsx
+++ b/src/renderer/components/DictationOverlay.tsx
@@ -15,7 +15,7 @@
// No target selected at press time never records at all — see the warning-pill render branch.
import { useCallback, useEffect, useRef, useState } from 'react'
import { createPortal } from 'react-dom'
-import { scaleLevel } from '../lib/dictation-equalizer'
+import { equalizerBars } from '../lib/dictation-equalizer'
import { PcmCapture } from '../lib/pcm-capture'
import { useSession } from '../session/session'
import { useChatSessions } from '../state/chatSessions'
@@ -356,15 +356,12 @@ export function DictationOverlay({ target, stopSignal, onClose, onOpenLicense }:
<div className="dictation dictation--pill nodrag nowheel" onMouseDown={(e) => e.stopPropagation()}>
{phase === 'recording' && (
<div className="dictation__pill">
- {/* Five dots as a live VU meter (mobile's capsule look, but driven
- by the real mic level — dot i lights when the scaled level
- crosses i/5; silence keeps one dim breathing dot). */}
- <div className="dictation__dots" aria-hidden="true">
- {[0, 1, 2, 3, 4].map((i) => (
- <span
- key={i}
- className={`dictation__dot${scaleLevel(levelHistory[levelHistory.length - 1] ?? 0) * 5 > i ? ' lit' : ''}${i === 0 ? ' base' : ''}`}
- />
+ {/* Live equalizer bars, centered so they grow up AND down from
+ the middle — a scrolling window of real mic levels (newest at
+ the right); silence keeps a visible baseline row. */}
+ <div className="dictation__bars" aria-hidden="true">
+ {equalizerBars(levelHistory, 7).map((h, i) => (
+ <span key={i} className="dictation__bar" style={{ height: `${Math.round(h * 100)}%` }} />
))}
</div>
<span className="dictation__label">Dictating...</span>
diff --git a/src/renderer/styles.css b/src/renderer/styles.css
index 622b8857f..400ea523d 100644
--- a/src/renderer/styles.css
+++ b/src/renderer/styles.css
@@ -754,30 +754,23 @@ body,
width: 100%;
}
-/* Mobile-matched capsule: dots · "Dictating..." · elapsed · red round pause. */
-.dictation__dots {
+/* Mobile-matched capsule: equalizer · "Dictating..." · elapsed · red pause.
+ Bars are CENTERED (align-items: center) so they grow up and down from the
+ middle — livelier than baseline-anchored bars at small sizes. */
+.dictation__bars {
flex-shrink: 0;
display: flex;
align-items: center;
- gap: 5px;
+ gap: 3px;
+ height: 26px;
}
-.dictation__dot {
- width: 7px;
- height: 7px;
- border-radius: 50%;
+.dictation__bar {
+ width: 4px;
+ min-height: 4px;
+ border-radius: 2px;
background: #ff453a;
- opacity: 0.22;
- transition: opacity 80ms ease-out;
-}
-
-.dictation__dot.lit {
- opacity: 1;
-}
-
-/* Silence still shows life: the first dot breathes on its own. */
-.dictation__dot.base:not(.lit) {
- animation: dictation-pulse 1.4s ease-in-out infinite;
+ transition: height 70ms ease-out;
}
.dictation__label {