Skip to content

Commit 646927e

Browse files
ralyodioclaude
andcommitted
fix(autoblog): preserve seed keywords too, not just the long-tail list
The Preserve flag now also gates Anthropic's seedKeywords overwrite in applyProfile, so a hand-edited seed list survives Refetch. Niche, audiences, and description still refresh. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 2211ec5 commit 646927e

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

  • app/(app)/projects/[id]/autoblog/setup

‎app/(app)/projects/[id]/autoblog/setup/form.tsx‎

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ export function SetupForm({
202202
// and ticked the box, skip the DFS call entirely. Editorial fields
203203
// (niche, audiences, description, seeds, etc.) still get refreshed.
204204
if (preserveKeywords) {
205-
setNotice("Auto-filled editorial. Keywords preserved (uncheck to overwrite).");
205+
setNotice(
206+
"Auto-filled editorial. Seeds + long-tail preserved (uncheck to overwrite).",
207+
);
206208
setAutoFilling(false);
207209
return;
208210
}
@@ -282,8 +284,13 @@ export function SetupForm({
282284
setNiche(p.niche);
283285
setAudiences(p.targetAudiences.join(", "));
284286
setDescription(p.description);
285-
setSeedKeywords(p.seedKeywords.join(", "));
286-
setKeywords(p.keywords.join("\n"));
287+
// Preserve gate: when on, the user's hand-curated seeds and the
288+
// long-tail list both survive Refetch. Niche/audiences/description
289+
// still refresh.
290+
if (!preserveKeywords) {
291+
setSeedKeywords(p.seedKeywords.join(", "));
292+
setKeywords(p.keywords.join("\n"));
293+
}
287294
setSeoTitle(p.seoTitle);
288295
setSeoDescription(p.seoDescription);
289296
setTone(p.tone);
@@ -785,8 +792,8 @@ export function SetupForm({
785792
/>
786793
<span>
787794
<span className="font-medium">Preserve keywords</span> — Refetch
788-
flows skip the long-tail list (still refresh niche, audiences,
789-
description, seeds).
795+
flows skip the seed list and the long-tail list (still refresh
796+
niche, audiences, description).
790797
</span>
791798
</label>
792799
</div>

0 commit comments

Comments
 (0)