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.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
feat(chat): typing indicator for the pre-stream gap
enese29877c431fa
diff --git a/src/renderer/nodes/ChatNode.tsx b/src/renderer/nodes/ChatNode.tsxindex 810ed3658..1e10eba69 100644--- a/src/renderer/nodes/ChatNode.tsx+++ b/src/renderer/nodes/ChatNode.tsx@@ -68,7 +68,7 @@ export default function ChatNode({ id, data, selected }: NodeProps<CanvasNode>)useEffect(() => {const el = msgsRef.currentif (el) el.scrollTop = el.scrollHeight- }, [chat?.messages, chat?.streamText, chat?.streamThinking])+ }, [chat?.messages, chat?.streamText, chat?.streamThinking, chat?.working])const send = useCallback(() => {const text = input.trim()@@ -257,6 +257,16 @@ export default function ChatNode({ id, data, selected }: NodeProps<CanvasNode>))}</div>))}+ {/* Pre-stream gap: Enter → first SDK event has a noticeable latency (process/network).+ Show a pulsing typing indicator until anything from the turn arrives. */}+ {working &&+ !chat?.streamText &&+ !chat?.streamThinking &&+ (chat?.toolOrder.length ?? 0) === 0 && (+ <div className="chat-node__typing" aria-label="Claude is thinking">+ <span /><span /><span />+ </div>+ )}{/* Live turn: streaming thinking + text + tool cards */}{chat?.streamThinking && (<details className="chat-node__thinking"><summary>Thinking…</summary><MarkdownText text={chat.streamThinking} /></details>diff --git a/src/renderer/styles.css b/src/renderer/styles.cssindex 50b14fe74..31e122d6d 100644--- a/src/renderer/styles.css+++ b/src/renderer/styles.css@@ -4642,6 +4642,38 @@ body,-webkit-user-select: text;cursor: auto;}+/* Pre-stream typing indicator: three pulsing dots while waiting for the first SDK event. */+.chat-node__typing {+ display: flex;+ align-items: center;+ gap: 4px;+ padding: 6px 2px;+}+.chat-node__typing span {+ width: 6px;+ height: 6px;+ border-radius: 50%;+ background: var(--label-secondary, rgba(255, 255, 255, 0.55));+ animation: chat-typing 1.2s ease-in-out infinite;+}+.chat-node__typing span:nth-child(2) {+ animation-delay: 0.15s;+}+.chat-node__typing span:nth-child(3) {+ animation-delay: 0.3s;+}+@keyframes chat-typing {+ 0%,+ 60%,+ 100% {+ opacity: 0.25;+ transform: translateY(0);+ }+ 30% {+ opacity: 1;+ transform: translateY(-3px);+ }+}.chat-node__thinking {font-size: 12px;opacity: 0.6;