fix(web): show command output in work log #4083
MergedLikoKiko(GitHub profile, opens in a new tab)merged 3 commits into
main fromrefs/pull/4083/headmerged by juliusmarminge View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- @@ -1174,4 +1245,20 @@1245+ detail &&1246+ normalizedHeading !== normalizedDetail &&1247+ (!commandTool ||1248+ (normalizedCommand !== normalizedDetail && normalizedRawCommand !== normalizedDetail))1249+ ) {11741250 return detail;11751251 }117612521177- if (isCommandToolDetail(payload, heading)) {1253+ if (commandTool) {1254+ if (!command) {1255+ return null;1256+ }1257+1258+ const output = extractToolOutput(payload);1259+ const normalizedOutput = normalizePreviewForComparison(output);1260+ if (1261+ output &&1262+ normalizedOutput !== normalizedHeading &&1263+ normalizedOutput !== normalizedCommand1264+ ) {
- @@ -1384,0 +1427,21 @@1427+ itemResult?.content,1428+ data?.rawOutput,1429+ rawOutput?.content,1430+ outputStreams.length > 0 ? outputStreams.join("\n") : null,1431+ rawOutput?.output,1432+ extractAcpTextContent(data?.content),1433+ ];1434+1435+ for (const candidate of candidates) {1436+ const text = asTrimmedString(candidate);1437+ if (!text) {1438+ continue;1439+ }1440+ const output = stripTrailingExitCode(text).output;1441+ if (output) {1442+ return output;1443+ }1444+ }1445+1446+ return null;1447+}
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:M
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
juliusmarminge merged this143f713
juliusmarminge closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
1ba33f49-a993-414e-904a-f5b8e2a1d885You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share