Expandable File Change and Command activity boxes #3005
ClosedQuicksaver(GitHub profile, opens in a new tab)wants to merge 10 commits into
main fromrefs/pull/3005/headopened 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:XL
- apps/web/src/components/chat/MessagesTimeline.tsx line 1232OutdatedResolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -1174,0 +1212,21 @@1212+ workEntry.output ||1213+ workEntry.stdout ||1214+ workEntry.stderr ||1215+ workEntry.exitCode !== undefined ||1216+ workEntry.durationMs !== undefined,1217+ );1218+ }1219+ if (isFileChangeWorkEntry(workEntry)) {1220+ return Boolean(workEntry.patch || (workEntry.changedFiles?.length ?? 0) > 0);1221+ }1222+ return false;1223+}1224+1225+function ToolEntryDetails({ workEntry }: { workEntry: TimelineWorkEntry }) {1226+ if (isCommandWorkEntry(workEntry)) {1227+ return <CommandEntryDetails workEntry={workEntry} />;1228+ }1229+ if (isFileChangeWorkEntry(workEntry)) {1230+ return <FileChangeEntryDetails workEntry={workEntry} />;1231+ }1232+ return null;apps/web/src/session-logic.ts line 732OutdatedResolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -663,3 +716,17 @@663716 return [...new Set(merged)];664717 }665718719+function mergeTextOutput(720+ previous: string | undefined,721+ next: string | undefined,722+): string | undefined {723+ if (!previous) {724+ return next;725+ }726+ if (!next) {727+ return previous;728+ }729+ if (previous === next) {730+ return next;731+ }732+ return `${previous}${previous.endsWith("\n") ? "" : "\n"}${next}`;
- apps/web/src/session-logic.ts lines 1290 to 1298Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -1029,0 +1271,21 @@1271+}1272+1273+function collectPatchStrings(1274+ value: unknown,1275+ patches: string[],1276+ seen: Set<string>,1277+ depth: number,1278+ includeNested = true,1279+): void {1280+ if (depth > MAX_PATCH_SEARCH_DEPTH || patches.length >= MAX_PATCH_STRINGS) {1281+ return;1282+ }1283+ if (Array.isArray(value)) {1284+ for (const entry of value) {1285+ collectPatchStrings(entry, patches, seen, depth + 1);1286+ if (patches.length >= MAX_PATCH_STRINGS) {1287+ return;1288+ }1289+ }1290+ return;1291+ }
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
Run ID:
516da489-6779-4576-a7cd-5bbd68d7124fYou 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