Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): show command output in work log #4083

MergedLikoKiko(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/4083/headmerged by juliusmarminge View on GitHub

Showing 4 changed files with 193 additions and 3 deletions (loading 1).

x
0 of 4 viewed, 4 left
53 additions and 0 deletionsapps/server/src/orchestration/ActivityPayloadProjection.test.tsModified
View file
@@ -44,6 +44,59 @@
expect(data.somethingClientNeverReads).toBeUndefined();
});
​
+ it("keeps a bounded Codex command output summary", () => {
+ const projected = projectActivityPayload(
+ activity({
+ itemType: "command_execution",
+ data: {
+ item: {
+ command: "/bin/zsh -lc 'printf hello'",
+ aggregatedOutput: `hello from codex\n${"x".repeat(5000)}`,
+ },
+ },
+ }),
+ );
+ const data = (projected.payload as Record<string, unknown>).data as Record<string, unknown>;
+ expect(data.item).toEqual({
+ command: "/bin/zsh -lc 'printf hello'",
+ aggregatedOutput: "hello from codex",
+ });
+ expect(JSON.stringify(projected.payload).length).toBeLessThan(500);
+ });
+​
+ it("keeps bounded Claude and ACP command output summaries", () => {
+ const claude = projectActivityPayload(
+ activity({
+ itemType: "command_execution",
+ data: {
+ command: "printf hello",