Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix(composer): make subagent presentations mutually exclusive

Tioit-Wangcc79ff1259bc
diff --git a/apps/desktop/src/features/chat/transcript/ActivityGroup.tsx b/apps/desktop/src/features/chat/transcript/ActivityGroup.tsx
index 58cc64a5e..d579e1a75 100644
--- a/apps/desktop/src/features/chat/transcript/ActivityGroup.tsx
+++ b/apps/desktop/src/features/chat/transcript/ActivityGroup.tsx
@@ -22,6 +22,7 @@ import type {
} from "@pi-desktop/shared";
import {
PROVIDER_RETRY_MAX_RETRIES,
+ resolveSubagentStyle,
} from "@pi-desktop/shared";
import type {
AssistantActivityItem,
@@ -218,7 +219,8 @@ export const ActivityGroup = memo(function ActivityGroup({
const collapseThinking = useAppStore((state) => resolveAutoCollapseThinking(state.settings));
const { t } = useTranslation();
const detailsId = useId();
- const rawDelegateItems = useMemo(() => items.filter(isDelegationActivityItem), [items]);
+ const inlineTopology = useAppStore((state) => resolveSubagentStyle(state.settings) === "transcript");
+ const rawDelegateItems = useMemo(() => inlineTopology ? items.filter(isDelegationActivityItem) : [], [inlineTopology, items]);
const delegatesRef = useRef(rawDelegateItems);
const delegateItems = reuseReferences(delegatesRef.current, rawDelegateItems);
delegatesRef.current = delegateItems;
@@ -227,10 +229,7 @@ export const ActivityGroup = memo(function ActivityGroup({
const tools = reuseReferences(toolsRef.current, rawTools);
toolsRef.current = tools;
const delegationItems = useMemo(() => tools.map((message) => ({ kind: "tool" as const, message })), [tools]);
- // One delegation reads the same as five: the card is how a delegation is
- // presented, not a treatment reserved for fan-out. A lone `Task` rendered as
- // an ordinary tool row hid the outcome, runtime and step count that the card
- // states outright, and made the same work look like two different features.
+ // A lone delegate receives the same topology treatment as fan-out in transcript mode.
const hasSubagentTopology = delegateItems.length > 0;
// `Task` rows only ever say "running"; the turn's TaskWait/TaskList/TaskStop
// rows carry how each delegate actually ended (ADR 0089). When the lifecycle
diff --git a/apps/desktop/src/features/chat/transcript/ActivityItems.tsx b/apps/desktop/src/features/chat/transcript/ActivityItems.tsx
index 6b3b68a86..75b716c98 100644
--- a/apps/desktop/src/features/chat/transcript/ActivityItems.tsx
+++ b/apps/desktop/src/features/chat/transcript/ActivityItems.tsx
@@ -30,6 +30,7 @@ type ActivityItemsProps = {
type ActivityItemBlockProps = Omit<ActivityItemsProps, "items" | "delegateItems" | "delegationStatuses" | "delegationTimings"> & {
block: RenderBlock<AssistantActivityItem>;
+ groupDelegates: boolean;
topologyItem?: AssistantActivityItem;
delegateItems?: DelegationActivityItem[];
delegationStatuses?: ReadonlyMap<string, SubagentOutcome>;
@@ -37,7 +38,7 @@ type ActivityItemBlockProps = Omit<ActivityItemsProps, "items" | "delegateItems"
};
const ActivityItemBlock = memo(function ActivityItemBlock({
- block, isActive, live, topologyItem,
+ block, isActive, live, groupDelegates, topologyItem,
delegateItems, delegationStatuses, delegationTimings, onUserInteraction,
collapseThinking,
}: ActivityItemBlockProps) {
@@ -45,7 +46,7 @@ const ActivityItemBlock = memo(function ActivityItemBlock({
// The topology predicate narrows to all tools, but a false result can still
// be an ordinary tool. Do not exclude tools from the remaining branches.
const delegation = Boolean(isDelegationActivityItem(item));
- if (delegation) {
+ if (groupDelegates && delegation) {
if (item !== topologyItem || !delegateItems) return null;
return <SubagentTopology
key="subagent-topology"
@@ -72,7 +73,7 @@ const ActivityItemBlock = memo(function ActivityItemBlock({
imagesInTurn
message={item.message}
onUserInteraction={onUserInteraction}
- {...(item.delegate ? { delegate: item.delegate } : {})}
+ {...(!delegation && item.delegate ? { delegate: item.delegate } : {})}
/>;
}
if (item.kind === "hostedSearch") return <HostedSearchRow
@@ -106,6 +107,7 @@ export const ActivityItems = memo(function ActivityItems({ items, ...context }:
block={block}
isActive={context.isActive}
live={context.live}
+ groupDelegates={topologyItem !== undefined}
topologyItem={ownsTopology ? topologyItem : undefined}
delegateItems={ownsTopology ? context.delegateItems : undefined}
delegationStatuses={ownsTopology ? context.delegationStatuses : undefined}
diff --git a/apps/desktop/test/subagent-transcript.test.mjs b/apps/desktop/test/subagent-transcript.test.mjs
index f8c1487bf..54ec241c3 100644
--- a/apps/desktop/test/subagent-transcript.test.mjs
+++ b/apps/desktop/test/subagent-transcript.test.mjs
@@ -229,7 +229,7 @@ test("the nested run is visibly one level inside the call", () => {
assert.match(messagesCss, /\.tool-row-agent \{/);
});
-test("every Task row renders as one accessible delegation topology", () => {
+test("transcript style renders Task rows as one accessible delegation topology", () => {
// One delegation gets the same card as a fan-out: the compact row hid the
// outcome, runtime and step count the card states outright.
assert.match(
diff --git a/docs/public/screenshots/subagent-presence/bar-light-collapsed.png b/docs/public/screenshots/subagent-presence/bar-light-collapsed.png
index b50caa5dc..c700b9c52 100644
Binary files a/docs/public/screenshots/subagent-presence/bar-light-collapsed.png and b/docs/public/screenshots/subagent-presence/bar-light-collapsed.png differ
diff --git a/docs/public/screenshots/subagent-presence/card-dark-reduced-motion.png b/docs/public/screenshots/subagent-presence/card-dark-reduced-motion.png
index 53935664a..a805e292e 100644
Binary files a/docs/public/screenshots/subagent-presence/card-dark-reduced-motion.png and b/docs/public/screenshots/subagent-presence/card-dark-reduced-motion.png differ
diff --git a/docs/public/screenshots/subagent-presence/transcript-light.png b/docs/public/screenshots/subagent-presence/transcript-light.png
index 500747524..c2f3fa20c 100644
Binary files a/docs/public/screenshots/subagent-presence/transcript-light.png and b/docs/public/screenshots/subagent-presence/transcript-light.png differ
diff --git a/docs/spec/04-ux/06-settings-ia.md b/docs/spec/04-ux/06-settings-ia.md
index 988c27a59..3e58718d1 100644
--- a/docs/spec/04-ux/06-settings-ia.md
+++ b/docs/spec/04-ux/06-settings-ia.md
@@ -369,13 +369,16 @@ so no row repeats it.
the composer toolbar context ring and its popover lead with the remaining or
the used capacity figure; the default is remaining.
- **Subagent style** defaults to **In transcript** (also for an absent or unknown
- `subagentStyle`). **Composer bar** adds a session-scoped avatar row above the
- input while delegates are active; it is independent of the collapsible task
- dock. Neither style removes topology cards, lifecycle rows or Work panel tabs.
+ `subagentStyle`): delegation cards show the topology in the transcript, with no
+ avatar row above the input. **Composer bar** shows the session's delegates
+ above the input while any are active, independently of the collapsible task
+ dock. In this style the transcript shows ordinary expandable tool rows instead
+ of delegation cards, even after the last delegate settles and the bar disappears.
+ Both styles preserve tool history, lifecycle rows and Work panel records.
Focus or hover an avatar for its current step or result, model, input/output
tokens, elapsed time, average output tokens per elapsed second and turns.
Unavailable measurements are not estimated. After six avatars, `+N` opens
- the grouped roster. Both surfaces offer transcript navigation and stop actions.
+ the grouped roster. Open a delegate's Work panel record or stop a running delegate.
- **Input & links** card: the **Enter-to-send** control, the large text paste
threshold, and the **Link open destination**. The threshold controls when a
text-only paste becomes a temporary session-scratch file; it defaults to 600
diff --git a/docs/spec/04-ux/08-component-spec.md b/docs/spec/04-ux/08-component-spec.md
index 698e767ae..f881d8a22 100644
--- a/docs/spec/04-ux/08-component-spec.md
+++ b/docs/spec/04-ux/08-component-spec.md
@@ -998,8 +998,9 @@ Within the process, the `Transcript display` mode decides the grouping.
`fully-folded` (the default; absent or unknown values use it) forms ordinary
activity groups from contiguous tool/search/thinking segments between ordinary
assistant progress paragraphs, and keeps `Bash`/run aliases inside the group
-around them. A `Task` delegation keeps its own topology and is not duplicated
-inside an ordinary group. `command-first` keeps those groups but lifts every
+around them. With **In transcript**, a `Task` delegation keeps its own topology
+and is not duplicated inside an ordinary group. With **Composer bar**, it is an
+ordinary expandable tool row instead. `command-first` keeps those groups but lifts every
`Bash`/run alias into a standalone row beside them: adjacent calls stay separate,
a row's detail stays closed until the user opens it, and a normal assistant
progress message or a command ends the current group. `flat` renders no nested
@@ -2717,7 +2718,12 @@ twice.
### 9.9 Delegation cards and fan-out topology (D201, D265, D268, D271, D302, D319, D323, ADR 0062)
-A `Task` call is presented as a node of a delegation card, not as a compact tool
+With **Composer bar**, `Task` calls remain ordinary expandable tool rows in the
+transcript throughout their lifecycle. The bar disappears when work settles;
+no inline topology card replaces it. Switching styles changes neither tool
+history nor the delegate's Work panel record.
+
+With the default **In transcript** style, a `Task` call is a delegation node, not a compact tool
row — one delegation reads the same as a fan-out (D265). The node names the
delegate it ran, taken from the rows it produced or, before any arrived, from
the call's own `agent` argument, and carries the call's short `description`. The
diff --git a/docs/spec/06-delivery/e2e/conversation.md b/docs/spec/06-delivery/e2e/conversation.md
index 15deb5146..673b71808 100644
--- a/docs/spec/06-delivery/e2e/conversation.md
+++ b/docs/spec/06-delivery/e2e/conversation.md
@@ -2,14 +2,20 @@
## E2E-SUBAGENT-composer-presence
-Start delegates in a local session. In transcript-only mode, verify the composer
-has no avatar row. Enable **Composer bar** in Conversation settings: the same
-running delegates appear above the input with their existing topology unchanged.
+Start delegates in a local session with the default **In transcript** style.
+Verify the delegation topology cards appear in the transcript and there is no
+avatar row above the input. Select **Composer bar** in Conversation settings:
+verify the same workers appear above the input and their `Task` calls are now
+ordinary expandable tool rows. Expand a row to inspect its tool history and
+check that no inline delegation card duplicates the bar.
+
Collapse the task dock; inspect an avatar and open its Work panel record. With
more than six workers, focus `+N`, enter the grouped roster, and dismiss it with
-Escape. Stop a worker while another runs: its settled status remains visible;
-after the last worker settles the entire row disappears. Switch sessions and
-restart to verify isolation and the saved presentation preference.
+Escape. Stop a worker while another runs: its settled status remains visible in
+the bar. After the last worker settles, verify the bar disappears but no inline
+cards return. The expandable `Task` rows, lifecycle rows and open Work panel
+record remain available. Switch sessions and restart to verify isolation and
+the saved style. Switch back to **In transcript** to restore the topology cards.
Production Electron captures (local streaming fixture): [Transcript only](/screenshots/subagent-presence/transcript-light.png), [Light, task dock collapsed](/screenshots/subagent-presence/bar-light-collapsed.png), [Dark, reduced motion](/screenshots/subagent-presence/card-dark-reduced-motion.png).
Set `PI_SUBAGENT_SCREENSHOT_DIR` when running `node scripts/e2e-subagent-stop.mjs`
diff --git a/packages/i18n/src/locales/de/index.ts b/packages/i18n/src/locales/de/index.ts
index a0c1e06d7..06a75045a 100644
--- a/packages/i18n/src/locales/de/index.ts
+++ b/packages/i18n/src/locales/de/index.ts
@@ -1772,7 +1772,7 @@ sklm: {
"smoothStreaming": "Sanftes Streaming",
"smoothStreamingDesc": "Gibt gestreamten Text zeichenweise aus, um einen Schreibmaschineneffekt zu erzeugen. Wird automatisch deaktiviert, wenn das System reduzierte Bewegung bevorzugt.",
subagentStyle: "Subagentenanzeige",
- subagentStyleDesc: "Laufende Subagenten zusätzlich zum Verlauf über dem Eingabefeld anzeigen.",
+ subagentStyleDesc: "Subagenten als Karten im Verlauf anzeigen oder laufende Subagenten über dem Eingabefeld verfolgen und Werkzeugaufrufe im Verlauf aufklappen.",
subagentStyleTranscript: "Im Verlauf",
subagentStyleBar: "Eingabeleiste",
"inlineVisualizations": "Inline-Visualisierungen",
diff --git a/packages/i18n/src/locales/en/index.ts b/packages/i18n/src/locales/en/index.ts
index 7a8622ec7..4604d7347 100644
--- a/packages/i18n/src/locales/en/index.ts
+++ b/packages/i18n/src/locales/en/index.ts
@@ -1784,7 +1784,7 @@ sklm: {
smoothStreaming: "Smooth streaming",
smoothStreamingDesc: "Release streamed text character by character for a typewriter effect. Automatically disabled when the system prefers reduced motion.",
subagentStyle: "Subagent style",
- subagentStyleDesc: "Optionally show active delegates above the input as well as in the transcript.",
+ subagentStyleDesc: "Show subagent cards in the transcript, or track active subagents above the input and keep expandable tool rows in the transcript.",
subagentStyleTranscript: "In transcript",
subagentStyleBar: "Composer bar",
inlineVisualizations: "Inline visualizations",
diff --git a/packages/i18n/src/locales/es/index.ts b/packages/i18n/src/locales/es/index.ts
index 7b35b8793..886ad6ba0 100644
--- a/packages/i18n/src/locales/es/index.ts
+++ b/packages/i18n/src/locales/es/index.ts
@@ -1772,7 +1772,7 @@ sklm: {
"smoothStreaming": "Transmisión suave",
"smoothStreamingDesc": "Libera el texto transmitido carácter por carácter para un efecto de máquina de escribir. Se desactiva automáticamente cuando el sistema prefiere movimiento reducido.",
subagentStyle: "Estilo de subagentes",
- subagentStyleDesc: "Muestra los subagentes activos también sobre el cuadro de entrada.",
+ subagentStyleDesc: "Muestra tarjetas de subagentes en la conversación o sigue a los subagentes activos sobre el cuadro de entrada y consulta las filas de herramientas desplegables en la conversación.",
subagentStyleTranscript: "En la conversación",
subagentStyleBar: "Barra de entrada",
"inlineVisualizations": "Visualizaciones en línea",
diff --git a/packages/i18n/src/locales/fr/index.ts b/packages/i18n/src/locales/fr/index.ts
index 7b0c5fc5b..f44c691d6 100644
--- a/packages/i18n/src/locales/fr/index.ts
+++ b/packages/i18n/src/locales/fr/index.ts
@@ -1772,7 +1772,7 @@ sklm: {
"smoothStreaming": "Streaming fluide",
"smoothStreamingDesc": "Libère le texte diffusé caractère par caractère pour un effet machine à écrire. Automatiquement désactivé lorsque le système préfère un mouvement réduit.",
subagentStyle: "Affichage des sous-agents",
- subagentStyleDesc: "Afficher aussi les sous-agents actifs au-dessus du champ de saisie.",
+ subagentStyleDesc: "Affichez les fiches des sous-agents dans la conversation, ou suivez les sous-agents actifs au-dessus du champ de saisie et dépliez les appels d’outils dans la conversation.",
subagentStyleTranscript: "Dans la conversation",
subagentStyleBar: "Barre de saisie",
"inlineVisualizations": "Visualisations intégrées",
diff --git a/packages/i18n/src/locales/ko/index.ts b/packages/i18n/src/locales/ko/index.ts
index 6ab11af9e..076df20a3 100644
--- a/packages/i18n/src/locales/ko/index.ts
+++ b/packages/i18n/src/locales/ko/index.ts
@@ -1780,7 +1780,7 @@ sklm: {
smoothStreaming: "부드러운 스트리밍",
smoothStreamingDesc: "스트리밍 텍스트를 한 글자씩 타자기 효과로 표시합니다. 시스템에서 동작 줄이기를 선호하면 자동으로 비활성화됩니다.",
subagentStyle: "하위 에이전트 표시",
- subagentStyleDesc: "대화 기록을 유지하면서 입력창 위에도 실행 상태를 표시합니다.",
+ subagentStyleDesc: "대화에 하위 에이전트 카드를 표시하거나, 입력창 위에서 실행 중인 하위 에이전트를 확인하고 대화에서는 도구 호출 행을 펼쳐 볼 수 있습니다.",
subagentStyleTranscript: "대화 안에 표시",
subagentStyleBar: "입력창 표시줄",
inlineVisualizations: "인라인 시각화",
diff --git a/packages/i18n/src/locales/pt-BR/index.ts b/packages/i18n/src/locales/pt-BR/index.ts
index d1fd37404..d94718896 100644
--- a/packages/i18n/src/locales/pt-BR/index.ts
+++ b/packages/i18n/src/locales/pt-BR/index.ts
@@ -1743,7 +1743,7 @@ export const ptBR = {
smoothStreaming: "Exibição gradual",
smoothStreamingDesc: "Exibe o texto recebido caractere por caractere, criando um efeito de máquina de escrever. É desativada automaticamente quando o sistema está configurado para reduzir animações.",
subagentStyle: "Exibição dos subagentes",
- subagentStyleDesc: "Mostre os subagentes ativos também acima do campo de mensagem.",
+ subagentStyleDesc: "Mostre os cartões dos subagentes na conversa ou acompanhe os subagentes ativos acima do campo de mensagem e expanda as chamadas de ferramentas na conversa.",
subagentStyleTranscript: "Na conversa",
subagentStyleBar: "Barra de entrada",
inlineVisualizations: "Visualizações embutidas",
diff --git a/packages/i18n/src/locales/tr/index.ts b/packages/i18n/src/locales/tr/index.ts
index 3fa63ffe5..720c7b7a0 100644
--- a/packages/i18n/src/locales/tr/index.ts
+++ b/packages/i18n/src/locales/tr/index.ts
@@ -1774,7 +1774,7 @@ sklm: {
smoothStreaming: "Düzgün akış",
smoothStreamingDesc: "Akan metni daktilo efekti için karakter karakter gösterir. Sistem hareket azaltmayı tercih ettiğinde otomatik devre dışı kalır.",
subagentStyle: "Alt ajan görünümü",
- subagentStyleDesc: "Etkin alt ajanları sohbetin yanı sıra giriş alanının üzerinde de gösterin.",
+ subagentStyleDesc: "Alt ajan kartlarını sohbette gösterin veya etkin alt ajanları giriş alanının üzerinden takip edip sohbetteki araç çağrılarının ayrıntılarını genişletin.",
subagentStyleTranscript: "Sohbet içinde",
subagentStyleBar: "Giriş çubuğu",
inlineVisualizations: "Satır içi görselleştirmeler",
diff --git a/packages/i18n/src/locales/zh-CN/index.ts b/packages/i18n/src/locales/zh-CN/index.ts
index da78dff7c..064454021 100644
--- a/packages/i18n/src/locales/zh-CN/index.ts
+++ b/packages/i18n/src/locales/zh-CN/index.ts
@@ -1764,7 +1764,7 @@ sklm: {
smoothStreaming: "平滑流式显示",
smoothStreamingDesc: "将流式文本逐字释放,产生打字机效果。系统开启“减少动态效果”时自动禁用。",
subagentStyle: "子代理样式",
- subagentStyleDesc: "保留对话内记录,也可在输入框上方查看子代理的运行状态。",
+ subagentStyleDesc: "可在对话内显示子代理卡片,也可在输入框上方查看运行中的子代理,此时对话内以可展开的工具调用行代替卡片。",
subagentStyleTranscript: "对话内",
subagentStyleBar: "输入框贴靠条",
inlineVisualizations: "聊天内嵌可视化",
diff --git a/packages/i18n/src/locales/zh-TW/index.ts b/packages/i18n/src/locales/zh-TW/index.ts
index 2e830ffa8..3fd98389f 100644
--- a/packages/i18n/src/locales/zh-TW/index.ts
+++ b/packages/i18n/src/locales/zh-TW/index.ts
@@ -1764,7 +1764,7 @@ sklm: {
smoothStreaming: "平滑串流顯示",
smoothStreamingDesc: "將串流文字逐字釋放,產生打字機效果。系統開啟「減少動態效果」時自動停用。",
subagentStyle: "子代理樣式",
- subagentStyleDesc: "保留對話記錄,也可在輸入框上方查看子代理狀態。",
+ subagentStyleDesc: "可在對話內顯示子代理卡片,也可在輸入框上方查看執行中的子代理,此時對話內會以可展開的工具呼叫列取代卡片。",
subagentStyleTranscript: "對話內",
subagentStyleBar: "輸入框貼靠列",
inlineVisualizations: "聊天內嵌視覺化",
diff --git a/packages/shared/src/changelog-de.ts b/packages/shared/src/changelog-de.ts
index 83afd9c3f..f6a8f4788 100644
--- a/packages/shared/src/changelog-de.ts
+++ b/packages/shared/src/changelog-de.ts
@@ -5,7 +5,7 @@ export const deEntries: ChangelogEntry[] = [
version: "0.24.0",
date: "2026-11-20",
highlights: [
- "Aktiviere in den Unterhaltungseinstellungen die Leiste über dem Eingabefeld, um Status, Verbrauch und Protokolle der Subagenten ohne Scrollen zu sehen.",
+ "Mit der Eingabeleiste in den Unterhaltungseinstellungen kannst du laufende Subagenten über dem Eingabefeld verfolgen. Im Verlauf erscheinen auch nach Abschluss aufklappbare Werkzeugzeilen statt Subagentenkarten.",
"Bei einer Neuinstallation erzeugt das mitgelieferte Plugin „Offizielle Erweiterungen“ Sitzungstitel automatisch; Vorschläge, Entwurfsverbesserung und KI-Gedächtnis bleiben aus, bis du sie einschaltest.",
"Neue Aufgabe startet jetzt einen temporären Chat außerhalb von Projekten, und Unterhaltungen lassen sich zwischen Projekten oder zurück in den temporären Chat verschieben.",
"Auf der leeren Startseite wechselst du das Projekt per Klick auf den Projektnamen oder „temporär“ im Titel; das projektlose Ziel heißt jetzt überall Temporärer Chat.",
diff --git a/packages/shared/src/changelog-en.ts b/packages/shared/src/changelog-en.ts
index 29a68e04e..c849079d1 100644
--- a/packages/shared/src/changelog-en.ts
+++ b/packages/shared/src/changelog-en.ts
@@ -5,7 +5,7 @@ export const enEntries: ChangelogEntry[] = [
version: "0.24.0",
date: "2026-11-20",
highlights: [
- "Choose Composer bar in Conversation settings to track subagents, inspect usage and open their records without scrolling the transcript.",
+ "In Conversation settings, choose Composer bar to track active subagents above the input. The transcript shows expandable tool rows instead of subagent cards, even after a run ends.",
"On a fresh install, session titles are generated automatically by the bundled Official enhancements plugin; suggestions, draft enhancement and AI memory stay off until you turn them on.",
"New task now starts a temporary chat outside any project, and conversations can move between projects or back to Temporary chat.",
"On the empty home, click the project name or \"temporarily\" in the title to switch projects; the project-free destination is now called Temporary chat everywhere.",
diff --git a/packages/shared/src/changelog-es.ts b/packages/shared/src/changelog-es.ts
index 6f43e8d12..9bede4812 100644
--- a/packages/shared/src/changelog-es.ts
+++ b/packages/shared/src/changelog-es.ts
@@ -5,7 +5,7 @@ export const esEntries: ChangelogEntry[] = [
version: "0.24.0",
date: "2026-11-20",
highlights: [
- "Activa la barra del cuadro de entrada en los ajustes de conversación para consultar el estado, el consumo y el registro de los subagentes sin desplazarte por el chat.",
+ "Elige Barra de entrada en los ajustes de conversación para seguir a los subagentes activos sobre el cuadro de entrada. La conversación muestra filas de herramientas desplegables en lugar de tarjetas de subagentes, incluso después de que terminen.",
"En una instalación nueva, el complemento incluido Mejoras oficiales genera automáticamente los títulos de las sesiones; las sugerencias, la mejora de borradores y la memoria de IA siguen desactivadas hasta que las actives.",
"Nueva tarea ahora inicia un chat temporal fuera de cualquier proyecto, y las conversaciones pueden moverse entre proyectos o volver a Chat temporal.",
"En la página de inicio vacía, haz clic en el nombre del proyecto o en «temporal» del título para cambiar de proyecto; el destino sin proyecto ahora se llama Chat temporal en todas partes.",
diff --git a/packages/shared/src/changelog-fr.ts b/packages/shared/src/changelog-fr.ts
index af7191f74..15344d7f1 100644
--- a/packages/shared/src/changelog-fr.ts
+++ b/packages/shared/src/changelog-fr.ts
@@ -5,7 +5,7 @@ export const frEntries: ChangelogEntry[] = [
version: "0.24.0",
date: "2026-11-20",
highlights: [
- "Activez la barre au-dessus du champ de saisie dans les réglages de conversation pour consulter l’état, la consommation et le journal des sous-agents sans faire défiler la conversation.",
+ "Dans les réglages de conversation, choisissez Barre de saisie pour suivre les sous-agents actifs au-dessus du champ de saisie. Les appels d’outils se présentent sous forme de lignes dépliables plutôt que de fiches, même après la fin de l’exécution.",
"Sur une nouvelle installation, le plugin intégré Améliorations officielles génère automatiquement les titres de session ; les suggestions, l'amélioration des brouillons et la mémoire IA restent désactivées jusqu'à ce que vous les activiez.",
"Nouvelle tâche ouvre désormais une discussion temporaire hors de tout projet, et les conversations peuvent passer d'un projet à l'autre ou revenir en Discussion temporaire.",
"Sur l'accueil vide, cliquez sur le nom du projet ou sur « temporairement » dans le titre pour changer de projet ; la destination sans projet s'appelle désormais partout Discussion temporaire.",
diff --git a/packages/shared/src/changelog-ko.ts b/packages/shared/src/changelog-ko.ts
index bd0c2588e..d365f95f8 100644
--- a/packages/shared/src/changelog-ko.ts
+++ b/packages/shared/src/changelog-ko.ts
@@ -5,7 +5,7 @@ export const koEntries: ChangelogEntry[] = [
version: "0.24.0",
date: "2026-11-20",
highlights: [
- "대화 설정에서 입력창 표시줄을 선택하면 대화를 스크롤하지 않고도 하위 에이전트의 상태와 사용량을 확인하고 실행 기록을 열 수 있습니다.",
+ "대화 설정에서 입력창 표시줄을 선택하면 입력창 위에서 실행 중인 하위 에이전트를 확인할 수 있습니다. 대화에는 카드 대신 펼칠 수 있는 도구 호출 행이 표시되며, 실행이 끝나도 이 형식이 유지됩니다.",
"새로 설치하면 기본 제공되는 공식 개선 플러그인이 세션 제목을 자동으로 만듭니다. 제안, 초안 개선, AI 메모리는 직접 켜기 전까지 꺼져 있습니다.",
"새 작업이 이제 프로젝트 밖에서 임시 채팅으로 시작되며, 대화를 프로젝트 간에 옮기거나 임시 채팅으로 되돌릴 수 있습니다.",
"빈 홈 화면 제목의 프로젝트 이름이나 \"임시\"를 클릭해 프로젝트를 전환할 수 있으며, 프로젝트가 없는 위치는 이제 어디서나 임시 채팅으로 표시됩니다.",
diff --git a/packages/shared/src/changelog-pt-BR.ts b/packages/shared/src/changelog-pt-BR.ts
index 9b402d429..6547f0760 100644
--- a/packages/shared/src/changelog-pt-BR.ts
+++ b/packages/shared/src/changelog-pt-BR.ts
@@ -5,7 +5,7 @@ export const ptBREntries: ChangelogEntry[] = [
version: "0.24.0",
date: "2026-11-20",
highlights: [
- "Ative a barra acima do campo de mensagem nas configurações da conversa para ver o estado, o consumo e o histórico dos subagentes sem rolar o chat.",
+ "Selecione Barra de entrada nas configurações de conversa para acompanhar os subagentes ativos acima do campo de mensagem. A conversa mostra linhas expansíveis de ferramentas em vez de cartões de subagentes, mesmo após o fim da execução.",
"Em uma instalação nova, o plugin incluído Melhorias oficiais gera automaticamente os títulos das sessões; sugestões, aprimoramento de rascunho e memória de IA continuam desligados até você ativá-los.",
"Nova tarefa agora inicia um chat temporário fora de qualquer projeto, e as conversas podem ser movidas entre projetos ou de volta para Chat temporário.",
"Na tela inicial vazia, clique no nome do projeto ou em \"temporariamente\" no título para trocar de projeto; o destino sem projeto agora se chama Chat temporário em todo lugar.",
diff --git a/packages/shared/src/changelog-tr.ts b/packages/shared/src/changelog-tr.ts
index ce76f4bf6..3d0ba8e33 100644
--- a/packages/shared/src/changelog-tr.ts
+++ b/packages/shared/src/changelog-tr.ts
@@ -5,7 +5,7 @@ export const trEntries: ChangelogEntry[] = [
version: "0.24.0",
date: "2026-11-20",
highlights: [
- "Sohbeti kaydırmadan alt ajanların durumunu, kullanımını ve kayıtlarını görmek için konuşma ayarlarından giriş alanı çubuğunu seçin.",
+ "Etkin alt ajanları giriş alanının üzerinde takip etmek için sohbet ayarlarında Giriş çubuğunu seçin. Çalışma sona erdikten sonra da sohbette alt ajan kartları yerine genişletilebilir araç satırları görünür.",
"Yeni kurulumda, birlikte gelen Resmi geliştirmeler eklentisi oturum başlıklarını otomatik oluşturur; öneriler, taslak iyileştirme ve yapay zekâ belleği siz açana kadar kapalı kalır.",
"Yeni görev artık herhangi bir projenin dışında geçici bir sohbet başlatır ve sohbetler projeler arasında ya da Geçici sohbete geri taşınabilir.",
"Boş ana sayfada projeyi değiştirmek için başlıktaki proje adına veya \"geçici\" sözcüğüne tıklayın; projesiz hedefin adı artık her yerde Geçici sohbet.",
diff --git a/packages/shared/src/changelog-zh-CN.ts b/packages/shared/src/changelog-zh-CN.ts
index 4378dc791..b8a8f64d8 100644
--- a/packages/shared/src/changelog-zh-CN.ts
+++ b/packages/shared/src/changelog-zh-CN.ts
@@ -5,7 +5,7 @@ export const zhCNEntries: ChangelogEntry[] = [
version: "0.24.0",
date: "2026-11-20",
highlights: [
- "在「设置 → 对话」选择「输入框贴靠条」,无需滚动对话即可查看子代理状态、用量和运行记录。",
+ "在对话设置中选择「输入框贴靠条」,即可在输入框上方查看运行中的子代理。对话内以可展开的工具调用行代替子代理卡片,运行结束后也保持此样式。",
"全新安装时,内置的「官方增强」插件会自动生成会话标题;建议、草稿增强和 AI 记忆仍需手动开启。",
"「新任务」现在会在项目之外开启临时对话,对话也可以在项目之间移动,或移回临时对话。",
"空白首页标题中的项目名或「临时」可直接点击切换项目;不属于任何项目的位置统一称为「临时对话」。",
diff --git a/packages/shared/src/changelog-zh-TW.ts b/packages/shared/src/changelog-zh-TW.ts
index b1a23f96e..c8acf0364 100644
--- a/packages/shared/src/changelog-zh-TW.ts
+++ b/packages/shared/src/changelog-zh-TW.ts
@@ -5,7 +5,7 @@ export const zhTWEntries: ChangelogEntry[] = [
version: "0.24.0",
date: "2026-11-20",
highlights: [
- "在對話設定中選擇輸入框貼靠列,不用捲動對話就能查看子代理狀態、用量與執行記錄。",
+ "在對話設定中選擇「輸入框貼靠列」,即可在輸入框上方查看執行中的子代理。對話內會以可展開的工具呼叫列取代子代理卡片,執行結束後也維持此樣式。",
"全新安裝時,內建的「官方增強」外掛會自動產生對話標題;建議、草稿增強和 AI 記憶仍需手動開啟。",
"「新任務」現在會在專案之外開啟臨時對話,對話也可以在專案之間移動,或移回臨時對話。",
"空白首頁標題中的專案名稱或「臨時」可直接點選切換專案;不屬於任何專案的位置統一稱為「臨時對話」。",
diff --git a/packages/shared/src/types/settings.ts b/packages/shared/src/types/settings.ts
index 09c8b9935..29a4520fd 100644
--- a/packages/shared/src/types/settings.ts
+++ b/packages/shared/src/types/settings.ts
@@ -40,11 +40,13 @@ export type CloseBehavior = "ask" | "tray" | "quit";
export type TranscriptDisplayMode = "flat" | "command-first" | "fully-folded";
/**
- * Where a running subagent is presented while it works (issue #2549).
+ * How subagents are presented (issue #2549).
*
- * - `transcript`: delegates stay in the conversation transcript only.
- * - `bar`: a session-scoped avatar row above the composer mirrors the running
- * delegates; topology cards, lifecycle rows and Work panel tabs stay put.
+ * - `transcript` (default): delegation cards show the topology in the transcript.
+ * - `bar`: a session-scoped avatar row appears above the composer while work is
+ * active. The transcript uses ordinary expandable tool rows in place of cards,
+ * including after settlement. Tool history, lifecycle rows and Work panel
+ * records remain available.
*
* Presentation only: neither value changes what a delegate does or what the
* host executes.
@@ -270,11 +272,8 @@ export type AppSettings = {
*/
inlineVisualizations?: boolean;
/**
- * How a running subagent is presented (issue #2549): `transcript` keeps
- * delegates in the conversation transcript only, `bar` adds a session-scoped
- * avatar row above the composer. Absent and any unknown value read as
- * `transcript`, so the field is written only when the user picks the bar;
- * reading a missing field never persists the default. Presentation only.
+ * Subagent presentation; see `SubagentStyle`. An absent or unknown value
+ * reads as `transcript`; reading a missing field never persists the default.
*/
subagentStyle?: SubagentStyle;
/**
diff --git a/scripts/e2e-subagent-stop.mjs b/scripts/e2e-subagent-stop.mjs
index 74cbce62f..f408f30fb 100644
--- a/scripts/e2e-subagent-stop.mjs
+++ b/scripts/e2e-subagent-stop.mjs
@@ -200,11 +200,25 @@ try {
assert.equal(result.ok, true, JSON.stringify(result));
assert.equal((await invoke("settingsGet")).data.subagentStyle, subagentStyle);
};
+ const taskIds = await page.evaluate(`Array.from(document.querySelectorAll('.subagent-topology-node'), row => row.dataset.messageId)`);
+ assert.equal(taskIds.length, 2);
+ const taskHeaders = taskIds.map(id => `.tool-row[role="region"][data-message-id="${id}"] > .tool-row-head > .tool-row-header`);
+ const assertOrdinaryTasks = async () => {
+ assert.equal(await page.evaluate(`!!document.querySelector('.subagent-topology, .subagent-activity-header')`), false, "bar style must not duplicate inline topology");
+ for (const selector of taskHeaders) assert.ok(await page.evaluate(`!!document.querySelector(${JSON.stringify(selector)})`), "each original Task remains an ordinary tool row");
+ };
await setStyle("bar");
- await until(barVisible, "running delegates gain a composer bar without replacing topology");
- assert.equal((await buttons()).length, 2);
+ await until(barVisible, "running delegates gain a composer bar");
+ await assertOrdinaryTasks();
+ const firstHeader = JSON.stringify(taskHeaders[0]);
+ await page.evaluate(`document.querySelector(${firstHeader}).click()`);
+ await until(() => page.evaluate(`document.querySelector(${firstHeader}).getAttribute('aria-expanded') === 'true'`), "ordinary Task expands");
+ const expandedRow = `document.querySelector(${firstHeader}).closest('.tool-row')`;
+ assert.equal(await page.evaluate(`!!${expandedRow}.querySelector('.tool-row-body')`), true, "generic call details remain accessible");
+ assert.equal(await page.evaluate(`!!${expandedRow}.querySelector('.subagent-run')`), false, "ordinary details do not duplicate the worker transcript");
+ await page.evaluate(`document.querySelector(${firstHeader}).click()`);
await setStyle("transcript");
- await until(async () => !await barVisible(), "switching back removes the entire bar");
+ await until(async () => !await barVisible() && (await buttons()).length === 2, "switching back restores topology instead of the bar");
await setStyle("bar");
await until(barVisible, "restored presence bar");
const other = await invoke("sessionCreate", { title: "Idle fixture", mode: "agent", projectPath: workspace });
@@ -236,6 +250,8 @@ try {
await page.evaluate(`document.querySelector('.presence-card footer button').click()`);
await until(() => page.evaluate(`!!document.querySelector('.subagent-transcript-composer-controls .stop-btn')`), "detail stop control");
await until(() => page.evaluate(`document.body.innerText.includes('Partial output from worker A')`), "worker A partial output rendered");
+ await setStyle("transcript");
+ await until(async () => !await barVisible() && (await buttons()).length === 2, "transcript-style node controls");
const layout = await page.evaluate(`({
models: [...document.querySelectorAll('.subagent-topology-node-model')].map(e => ({
text: e.textContent,
@@ -261,7 +277,9 @@ try {
await until(() => workers.size === 0, "stop-all cancels remaining delegates");
assert.equal(parents.size, 1, "stop-all preserves coordinator");
await until(async () => (await buttons()).length === 0, "all terminal controls disappear");
- await until(async () => !await barVisible(), "last settlement removes the entire presence bar");
+ await setStyle("bar");
+ assert.equal(await barVisible(), false, "settled delegates do not create a bar");
+ await assertOrdinaryTasks();
const invalid = await invoke("agentStopSubagents", { sessionId: setup.sessionId, delegationIds: [] });
assert.equal(invalid.ok, false, "empty selection must not mean stop-all");
await until(async () => {
@@ -300,6 +318,8 @@ try {
await page.evaluate(`window.__PI_DESKTOP__.selectSession(${JSON.stringify(demoId)})`);
await invoke("agentPrompt", { sessionId: demoId, content: "这是本地模拟模型演示:启动两个子智能体,可以分别停止,或停止全部。主智能体继续运行。" });
await until(() => workers.size === 2 && parents.size > 0, "demo ready");
+ await setStyle("transcript");
+ await until(async () => (await buttons()).length === 2, "demo topology");
await page.evaluate(`document.querySelector('.subagent-topology-node-header').click()`);
await until(() => page.evaluate(`!!document.querySelector('.subagent-transcript-composer-controls .stop-btn')`), "demo detail stop control");
const shot = await page.call("Page.captureScreenshot", { format: "png" });