Skip to content

Commit a7dc704

Browse files
fix: claude plugin duplicate pushes
1 parent b1c3c06 commit a7dc704

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

apps/webapp/app/jobs/ingest/ingest-episode.logic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { type AddEpisodeResult, EpisodeType } from "@core/types";
77
import { hasCredits } from "~/trigger/utils/utils";
88

99
export const IngestBodyRequest = z.object({
10-
episodeBody: z.string(),
10+
episodeBody: z.string().min(20),
1111
originalEpisodeBody: z.string().optional(), // Full content (for semantic_diff where episodeBody is diff only)
1212
referenceTime: z.string(),
1313
metadata: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),

apps/webapp/app/routes/api.v1.add.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const { action, loader } = createHybridActionApiRoute(
1515
},
1616
async ({ body, authentication }) => {
1717
const response = await addToQueue(body, authentication.userId);
18-
return json({ success: true, id: response.id });
18+
return json({ success: true, id: response?.id });
1919
},
2020
);
2121

plugin/scripts/cli.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,9 @@ function extractConversationPairs(transcriptPath, stripSystemReminders = false)
4646
const lines = content.split("\n");
4747
const pairs = [];
4848
let currentUserMessage = null;
49-
let pars = [];
5049

5150
for (const line of lines) {
5251
const parsed = JSON.parse(line);
53-
pars.push(parsed);
5452

5553
if (parsed.type === "user") {
5654
if (currentUserMessage !== null || currentUserMessage !== "") {
@@ -85,6 +83,7 @@ function extractConversationPairs(transcriptPath, stripSystemReminders = false)
8583
assistant: "",
8684
});
8785
}
86+
8887
return pairs;
8988
}
9089
__name(extractConversationPairs, "extractConversationPairs");

0 commit comments

Comments
 (0)