Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
fix(transcript): center running marker
v_wyxgwang09534c5c6db4
diff --git a/apps/desktop/src/features/chat/transcript/ActivityGroup.tsx b/apps/desktop/src/features/chat/transcript/ActivityGroup.tsxindex 48c4a6583..c499ed6cf 100644--- a/apps/desktop/src/features/chat/transcript/ActivityGroup.tsx+++ b/apps/desktop/src/features/chat/transcript/ActivityGroup.tsx@@ -362,6 +362,7 @@ export const ActivityGroup = memo(function ActivityGroup({<span className={`tool-activity-label ${live ? "running" : ""}`}>{label}</span>+ {live ? <span className="activity-marker" aria-hidden /> : null}{hasSubagentTopology ? (<span className="subagent-activity-metrics">{t("chat.subagentCount", { count: subagentSummary.total })}diff --git a/apps/desktop/src/features/chat/transcript/HostedSearchRow.tsx b/apps/desktop/src/features/chat/transcript/HostedSearchRow.tsxindex f832af253..7352ba701 100644--- a/apps/desktop/src/features/chat/transcript/HostedSearchRow.tsx+++ b/apps/desktop/src/features/chat/transcript/HostedSearchRow.tsx@@ -104,6 +104,7 @@ export const HostedSearchRow = memo(function HostedSearchRow({>{name}</span>+ {searching ? <span className="activity-marker" aria-hidden /> : null}{summary ? <span className="tool-row-summary">{summary}</span> : null}{expandable ? (<span className="tool-row-caret" aria-hidden>diff --git a/apps/desktop/src/features/chat/transcript/ProcessActivityGroup.tsx b/apps/desktop/src/features/chat/transcript/ProcessActivityGroup.tsxindex 5ca62c78a..aeefd72bd 100644--- a/apps/desktop/src/features/chat/transcript/ProcessActivityGroup.tsx+++ b/apps/desktop/src/features/chat/transcript/ProcessActivityGroup.tsx@@ -43,6 +43,7 @@ export function ProcessActivityGroup({<span className={`tool-activity-label${active ? " running" : ""}`}>{t(summary.label, { count: summary.count })}</span>+ {active ? <span className="activity-marker" aria-hidden /> : null}{summary.thinking > 0 && summary.tools > 0 ? (<span className="tool-activity-count">{t("chat.activityIncludesThinking")}</span>) : null}diff --git a/apps/desktop/src/features/chat/transcript/ToolRow.tsx b/apps/desktop/src/features/chat/transcript/ToolRow.tsxindex 6f8f09eab..c764f9e5c 100644--- a/apps/desktop/src/features/chat/transcript/ToolRow.tsx+++ b/apps/desktop/src/features/chat/transcript/ToolRow.tsx@@ -488,6 +488,7 @@ function HostToolRow({): actionLabel}</span>+ {status === "running" ? <span className="activity-marker" aria-hidden /> : null}{lifecycle && roster.length > 0 ? (<span className="tool-row-agent is-count">{t("chat.subagentCount", { count: roster.length })}diff --git a/apps/desktop/src/features/chat/transcript/TurnProcess.tsx b/apps/desktop/src/features/chat/transcript/TurnProcess.tsxindex dfb83ab75..26b88294d 100644--- a/apps/desktop/src/features/chat/transcript/TurnProcess.tsx+++ b/apps/desktop/src/features/chat/transcript/TurnProcess.tsx@@ -157,6 +157,7 @@ export function TurnProcess({<span className={`tool-activity-label${isActive ? " running" : ""}`}>{label}</span>+ {isActive ? <span className="activity-marker" aria-hidden /> : null}{summary.issues > 0 && phase.kind !== "failed" ? (<span className="turn-process-error"><IconCircleAlert size={14} aria-hidden />diff --git a/apps/desktop/src/styles/messages.css b/apps/desktop/src/styles/messages.cssindex e4335d435..577795791 100644--- a/apps/desktop/src/styles/messages.css+++ b/apps/desktop/src/styles/messages.css@@ -680,16 +680,16 @@color: var(--ds-text-secondary);}-.tool-activity-label.running::after,-.tool-row-name.running::after {- display: inline-block;+/* The live marker is a real flex sibling of the label. A generated inline box+ had to be aligned by hand and drifted off the row centre inside the label's+ ellipsis box; as a flex item it is centred by the header's own alignment and+ spaced by its gap. */+.activity-marker {+ flex: none;width: 4px;height: 4px;- margin-inline-start: 6px;- vertical-align: middle;border-radius: var(--radius-round);background: var(--ds-text-secondary);- content: "";animation: activity-marker-pulse 1s var(--motion-ease-standard) infinite;}diff --git a/apps/desktop/src/styles/overlays.css b/apps/desktop/src/styles/overlays.cssindex e1d1d5989..0a959305b 100644--- a/apps/desktop/src/styles/overlays.css+++ b/apps/desktop/src/styles/overlays.css@@ -716,8 +716,7 @@animation: none;}.working-indicator-mark > span,- .tool-row-name.running::after,- .tool-activity-label.running::after {+ .activity-marker {animation: none;opacity: 0.7;}diff --git a/apps/desktop/test/active-turn-surface.test.mjs b/apps/desktop/test/active-turn-surface.test.mjsindex 656a8fb17..b8d292ce9 100644--- a/apps/desktop/test/active-turn-surface.test.mjs+++ b/apps/desktop/test/active-turn-surface.test.mjs@@ -136,9 +136,16 @@ test("active turns show immediate and phase-specific feedback without a progressassert.match(messagesStyles, /\.working-indicator-mark > span\s*\{[\s\S]*?animation:\s*working-indicator-dot\s+1s/);assert.doesNotMatch(proseStyles, /\.working-indicator\s*\{|\.shimmer-text\s*\{/);assert.doesNotMatch(messagesStyles, /\.shimmer-text\s*\{|animation:\s*shimmer\b/);+ // The live marker is a real flex sibling of the label, so the header's+ // alignment centres it; the old generated inline box drifted off centre.+ assert.match(transcript, /<span className="activity-marker" aria-hidden \/>/);assert.match(messagesStyles,- /\.tool-activity-label\.running::after,\s*\.tool-row-name\.running::after\s*\{[\s\S]*?animation:\s*activity-marker-pulse\s+1s/,+ /\.activity-marker \{[\s\S]*?flex:\s*none;[\s\S]*?animation:\s*activity-marker-pulse\s+1s/,+ );+ assert.doesNotMatch(+ messagesStyles,+ /\.(tool-activity-label|tool-row-name)\.running::after/,);assert.doesNotMatch(en,