From 824dca3db83edbd0c81fddd1515a90ddb838cf7c Mon Sep 17 00:00:00 2001 From: qer Date: Wed, 19 Aug 2026 00:04:39 +0800 Subject: [PATCH] feat(chat): keep the subagent detail transcript fully expanded without the run-end footer (#260) * feat(chat): keep the subagent detail transcript fully expanded without the run-end footer * feat(chat): pin activity runs open in the subagent detail inspector * feat(chat): restore notification order in inspector blocks, pin thinking open, demote force-open heads to captions --- .changeset/agent-detail-inspector.md | 5 +++ .../renderer/components/chat/ActivityRun.vue | 32 +++++++++++++--- .../components/chat/AgentDetailPanel.vue | 1 + .../src/renderer/components/chat/ChatPane.vue | 25 +++++++++--- .../components/chat/ThinkingBlock.vue | 31 ++++++++++++--- .../renderer/components/chatTurnRendering.ts | 11 ++++++ .../src/renderer/views/DesignSystemView.vue | 2 +- .../renderer/chat-turn-rendering.test.ts | 22 +++++++++++ apps/web/src/components/chat/ActivityRun.vue | 32 +++++++++++++--- .../src/components/chat/AgentDetailPanel.vue | 1 + apps/web/src/components/chat/ChatPane.vue | 25 +++++++++--- .../web/src/components/chat/ThinkingBlock.vue | 31 ++++++++++++--- apps/web/src/components/chatTurnRendering.ts | 11 ++++++ apps/web/src/views/DesignSystemView.vue | 2 +- apps/web/test/chat-turn-rendering.test.ts | 38 +++++++++++++++++++ 15 files changed, 233 insertions(+), 36 deletions(-) create mode 100644 .changeset/agent-detail-inspector.md diff --git a/.changeset/agent-detail-inspector.md b/.changeset/agent-detail-inspector.md new file mode 100644 index 000000000..2c7b0eb9f --- /dev/null +++ b/.changeset/agent-detail-inspector.md @@ -0,0 +1,5 @@ +--- +"kimi-code-app": patch +--- + +子代理详情面板不再折叠工作过程,并移除回合结尾的时间栏。 diff --git a/apps/desktop/src/renderer/components/chat/ActivityRun.vue b/apps/desktop/src/renderer/components/chat/ActivityRun.vue index 2581edeaa..f0a9c91cf 100644 --- a/apps/desktop/src/renderer/components/chat/ActivityRun.vue +++ b/apps/desktop/src/renderer/components/chat/ActivityRun.vue @@ -41,8 +41,11 @@ const props = withDefaults( may append). Keeps the row expanded and the summary in live shape even across the brief gap between two tool calls. */ streaming?: boolean; + /** Inspector mode (subagent detail panel): pin the body open — the head + becomes a plain caption (no toggle, no chevron). */ + forceOpen?: boolean; }>(), - { mobile: false, streaming: false }, + { mobile: false, streaming: false, forceOpen: false }, ); const emit = defineEmits<{ @@ -78,6 +81,8 @@ const runStatus = computed<'running' | 'error' | 'done'>(() => { // The default applies only at mount; manual toggles stick. const open = ref(runStatus.value === 'running'); +// Inspector mode pins the body open no matter what the fold state says. +const effectiveOpen = computed(() => props.forceOpen || open.value); const pinScroll = inject<(el: HTMLElement, ms?: number) => void>('pinScroll', () => {}); const headEl = ref(null); @@ -136,6 +141,7 @@ watch( ); function toggle(): void { + if (props.forceOpen) return; open.value = !open.value; // A streaming run keeps growing on its own — no pin: the follow (or native // anchoring off-follow) absorbs the toggle (same rule as ThinkingBlock). @@ -200,8 +206,15 @@ function isThinkingStreaming(item: ActivityItem): boolean { -