Skip to content

armgit / Orkas

Public Imported from GitHub
0

Orkas is an open-source (MIT), local-first AI team for your desktop: a Commander turns your goal into to-dos and coordinates 16 built-in specialist agents plus Claude Code, Codex, OpenCode, OpenClaw and Hermes, with projects, scheduled automations and connectors. Free app for macOS & Windows; built-in models or your own keys.

Streaming bubble loading view tweaks: keep dots while body streams; hide stray dashed rule

claw24662bdf5ec2a
diff --git a/src/renderer/modules/conversation.js b/src/renderer/modules/conversation.js
index bc725bee..712681d0 100644
--- a/src/renderer/modules/conversation.js
+++ b/src/renderer/modules/conversation.js
@@ -1901,13 +1901,12 @@ function _createStreamingAssistantMessage(container) {
</summary>
<div class="stream-process-body" data-role="process"></div>
</details>
- <div class="stream-thinking" data-role="thinking">
+ <div class="stream-final" data-role="final" style="display:none"></div>
+ <div class="stream-thinking" data-role="thinking" aria-label="${escapeHtml(t('chat.thinking_short'))}">
<span class="stream-thinking-dot"></span>
<span class="stream-thinking-dot"></span>
<span class="stream-thinking-dot"></span>
- <span class="stream-thinking-label">${escapeHtml(t('chat.thinking_short'))}</span>
</div>
- <div class="stream-final" data-role="final" style="display:none"></div>
</div>
`;
msg.dataset.placeholder = '1';
@@ -3140,9 +3139,13 @@ function _stripAgentFormBlockForStream(buf) {
}
// Progressive renderer — append an assistant text delta into the final
-// bubble and re-render markdown. The first delta hides the "思考中" row and
-// reveals the `[data-role=final]` container. `_streamingSetFinal` is still
-// called at the terminal `final` event to guarantee a clean final render.
+// bubble and re-render markdown. The first delta reveals the `[data-role=final]`
+// container; the "思考中" row stays visible BELOW the body until the terminal
+// `final` / error / aborted event lands (so the user sees "partial reply +
+// still typing" instead of "partial reply + nothing happening"; the row is
+// rendered after `.stream-final` in `_createStreamingAssistantMessage`).
+// `_streamingSetFinal` is still called at the terminal `final` event to
+// guarantee a clean final render.
//
// Render throttling: every delta accumulates into `dataset.streamBuf`
// synchronously, but the actual `renderMarkdownFull` + DOM swap only runs
@@ -3154,7 +3157,6 @@ function _stripAgentFormBlockForStream(buf) {
// reader loop stays cheap and the browser paints between frames.
function _streamingAppendFinalDelta(msg, piece) {
if (!piece) return;
- _hideThinking(msg);
const finalEl = msg.querySelector('[data-role="final"]');
if (!finalEl) return;
const prev = msg.dataset.streamBuf || '';
diff --git a/src/renderer/style.css b/src/renderer/style.css
index f3a98175..6c3ca74b 100644
--- a/src/renderer/style.css
+++ b/src/renderer/style.css
@@ -2538,7 +2538,6 @@ body.model-not-configured .main-content { flex-direction: column; }
font-size: 12.5px;
padding: 2px 0;
}
-.stream-thinking-label { margin-left: 4px; }
.stream-thinking-dot {
width: 5px;
height: 5px;
@@ -2620,7 +2619,14 @@ body.model-not-configured .main-content { flex-direction: column; }
.stream-final {
/* Appears below process section with a subtle divider when process is open */
}
-.stream-process[open] + .stream-final:not([style*="display:none"]) {
+/* Divider between the process trail and the final body — only when the
+ process section is actually visible. The placeholder bubble starts with
+ `.stream-process` carrying both `[open]` and inline `display:none` (so it
+ expands automatically the first time a process event arrives), and we
+ must NOT paint the dashed border above the body while the process row
+ is still hidden — otherwise the bubble shows a stray top divider above
+ the streaming text with nothing above it to separate from. */
+.stream-process[open]:not([style*="display:none"]) + .stream-final:not([style*="display:none"]) {
margin-top: 8px;
padding-top: 10px;
border-top: 1px dashed var(--border);