Skip to content

fix: route docs through infographic generation when research skipped#662

Merged
codercatdev merged 1 commit intodevfrom
fix/ingest-infographic-path
Mar 13, 2026
Merged

fix: route docs through infographic generation when research skipped#662
codercatdev merged 1 commit intodevfrom
fix/ingest-infographic-path

Conversation

@codercatdev
Copy link
Contributor

Problem — #1 Blocker for Infographic Videos

When submitResearch() fails or isn't configured (which is every time right now), ingest sets status to script_ready, completely skipping the research_completeinfographics_generating path. No infographics are ever generated automatically.

The only docs that got infographics were manually patched to research_complete.

Fix

One-line change in ingest/route.ts:

- const status = isFlagged ? "flagged" : isResearching ? "researching" : "script_ready";
+ const status = isFlagged ? "flagged" : isResearching ? "researching" : "research_complete";

This routes all docs through check-research's infographic generation step before advancing to enrichment, regardless of whether deep research was started.

Flow After Fix

ingest creates doc → status: "research_complete"
  → check-research: generates infographics (dual orientation, batched)
  → status: "infographics_generating" → "enriching" → "script_ready"
  → check-renders picks up from script_ready as normal

Verification

  • npx tsc --noEmit — clean
  • ✅ Single file: app/api/cron/ingest/route.ts

When submitResearch() fails or isn't configured, ingest was setting
status to 'script_ready', skipping the research_complete →
infographics_generating path entirely. No infographics were generated.

Fix: set fallback status to 'research_complete' so check-research
always generates infographics before advancing to enrichment.
@vercel
Copy link

vercel bot commented Mar 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
codingcat-dev Ignored Ignored Mar 13, 2026 3:12pm

@codercatdev codercatdev merged commit 14c0458 into dev Mar 13, 2026
2 checks passed
@codercatdev codercatdev deleted the fix/ingest-infographic-path branch March 13, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant