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 { -