Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When a terminal command reports a nonzero exit code, the collapsed conversation row currently says only “工具调用失败”. If the tool transport reports
completed, the row can even appear successful while the expanded terminal reports a nonzero exit.Use the existing structured command result for the timeline status and localized error summary. Preserve background handoff behavior, expandable command/stdout/stderr details, and generic fallback for unknown failures. Add Chinese/English strings and tabular numerals to the existing error label.
Refs #98 (partial fix). The exact command in the original collapsed screenshot remains unidentified. This fixes the reproduced presentation defect, not the underlying failing commands. Permission/timeout reason propagation remains open:
toolBlockToNormalizedEntrycurrently reduces timeline statuses to created/success/failed, so this change deliberately does not guess causes from output text.Evidence
TurnActivityregression suite produced 3 failed / 4 passed: numeric exit summaries were missing in Chinese and English, and a completed transport with exit 1 used the wrong summary state. The DOM contained the same generic error badge as the report.After: 4 test files / 89 tests passed, including all 7 new regression cases. After correcting the test fixture timestamp type, the 7 new cases passed again.
git diff --checkpass.tsc --noEmit --pretty falsepasses after hydrating the sparse checkout's example workflows and plugin declaration files from the pinned base commit.frontend, Node 22.22.3):pnpm exec vitest run src/components/NormalizedConversation/TurnActivity.test.tsx src/components/NormalizedConversation/tools/ToolCards.test.tsx src/components/NormalizedConversation/TurnToolChips.test.tsx src/components/NormalizedConversation/messageTurnTool.test.ts --maxWorkers=1 --minWorkers=1.Merge Danger
Door: two-way
Frontend-only and reversible; no schema, dependency, execution, credential, or permission changes.
Blast Radius: conversation
Terminal commands with nonzero structured exit codes now remain visible as errors even when the tool transport says completed. No desktop package was built or installed; visual layout has component DOM coverage, not a native screenshot check.