Skip to content

fix: Custom Component Generator Template contains broken URLs returning 404 errors#11866

Merged
olayinkaadelakun merged 8 commits into
mainfrom
LE-376
Mar 4, 2026
Merged

fix: Custom Component Generator Template contains broken URLs returning 404 errors#11866
olayinkaadelakun merged 8 commits into
mainfrom
LE-376

Conversation

@olayinkaadelakun
Copy link
Copy Markdown
Collaborator

@olayinkaadelakun olayinkaadelakun commented Feb 23, 2026

Description
It seems a folder restructured cause the URL in the template URL component to be invalid. I just changed the path, and they seem to be valid

Testcase

  1. create a new flow Custom Component Generator
  2. Check the URLs in the URL component.
  3. All URL should navigate to an appropriate page and should 404

Summary by CodeRabbit

  • Chores
    • Updated resource URLs used by the Custom Component Generator starter project to point to new package locations.
    • Updated matching test/starter data references so starter assets now resolve from the new lfx source paths.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 23, 2026

Frontend Unit Test Coverage Report

Coverage Summary

Lines Statements Branches Functions
Coverage: 20%
19.94% (6643/33307) 13.27% (3453/26011) 13.56% (961/7086)

Unit Test Results

Tests Skipped Failures Errors Time
2365 0 💤 0 ❌ 0 🔥 33.175s ⏱️

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 35.42%. Comparing base (f8e8382) to head (2be4d50).
⚠️ Report is 15 commits behind head on main.

❌ Your project status has failed because the head coverage (41.47%) is below the target coverage (60.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #11866      +/-   ##
==========================================
- Coverage   35.42%   35.42%   -0.01%     
==========================================
  Files        1541     1541              
  Lines       75247    75247              
  Branches    11388    11388              
==========================================
- Hits        26660    26658       -2     
- Misses      47087    47088       +1     
- Partials     1500     1501       +1     
Flag Coverage Δ
backend 55.34% <ø> (-0.01%) ⬇️
frontend 17.92% <ø> (ø)
lfx 41.47% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 8 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@viktoravelino viktoravelino changed the title Custom Component Generator Template contains broken URLs returning 404 errors fix: Custom Component Generator Template contains broken URLs returning 404 errors Feb 25, 2026
Copy link
Copy Markdown
Collaborator

@viktoravelino viktoravelino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@github-actions github-actions Bot added the lgtm This PR has been approved by a maintainer label Feb 25, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 25, 2026

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Walkthrough

Seven component URL entries were updated to point from backend Langflow locations to new lfx (Langflow X) source locations across two Custom Component Generator JSON files.

Changes

Cohort / File(s) Summary
Custom Component Generator files
src/backend/base/langflow/initial_setup/starter_projects/Custom Component Generator.json, src/lfx/tests/data/starter_projects_1_6_0/Custom Component Generator.json
Replaced seven component URLs (agents, structured_output, calculator, tavily_search, ollama, conditional_router, file) that referenced backend Langflow GitHub paths with new lfx/src/lfx/... GitHub blob/raw paths.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes


Important

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

❌ Failed checks (1 error, 1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Test Coverage For New Implementations ❌ Error Bug fix for broken URLs in template lacks automated regression tests to validate URL correctness and prevent future 404 errors. Add automated test file to validate URLs in starter project templates, ensuring they are syntactically correct and accessible.
Test Quality And Coverage ⚠️ Warning The PR fixes broken URLs but existing tests do not validate that updated URLs return successful HTTP responses or are accessible. Add tests to verify all URLs in the Custom Component Generator template return 200 OK responses and are not 404 errors.
Test File Naming And Structure ❓ Inconclusive PR modifies configuration data files with URLs but contains no test code files following proper naming conventions (test_*.py or *.test.ts) to validate the URL changes. Verify whether test files validating URLs were created/modified in the PR; if URL tests are needed, ensure they follow naming patterns (test_*.py) with both positive and negative test cases.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: fixing broken URLs in the Custom Component Generator template that were returning 404 errors due to folder restructuring.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Excessive Mock Usage Warning ✅ Passed This PR only modifies JSON configuration files with URL updates, containing no Python test files or mock implementations.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch LE-376

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Feb 25, 2026
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
src/backend/base/langflow/initial_setup/starter_projects/Custom Component Generator.json (1)

1196-1197: ⚠️ Potential issue | 🔴 Critical

URL-G5J7i (CUSTOM_COMPONENT_CODE, line 1910) is broken and returns 404.

The PR fixes URL-h1gAB, but URL-G5J7i at line 1910 also needs to be updated. The target path (src/backend/base/langflow/components/custom_component/custom_component.py) no longer exists in the repository after the folder restructure. Find the correct location of the custom component implementation and update the URL accordingly.

URL-gEE5N at line 1196 remains functional but now points to a backward compatibility shim that re-exports from lfx; verify this is the intended source for BASE_COMPONENT_CODE.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/backend/base/langflow/initial_setup/starter_projects/Custom` Component
Generator.json around lines 1196 - 1197, The URL referenced by symbol URL-G5J7i
used in CUSTOM_COMPONENT_CODE is 404 because the custom component implementation
moved; update that URL to point to the new raw file location where the custom
component is now implemented (replace the broken raw.githubusercontent URL with
the one for src/backend/base/langflow/custom/custom_component/component.py) so
CUSTOM_COMPONENT_CODE fetches the correct implementation; also leave URL-gEE5N
(used by BASE_COMPONENT_CODE) as-is only after verifying it intentionally points
to the backward-compatibility shim that re-exports from lfx.
src/lfx/tests/data/starter_projects_1_6_0/Custom Component Generator.json (1)

1847-1848: ⚠️ Potential issue | 🔴 Critical

Update the URL-E6QCv (CUSTOM_COMPONENT_CODE) URL to reflect the correct file path.

The URL at line 1848 references src/backend/base/langflow/components/custom_component/custom_component.py, but the actual file is located at src/backend/base/langflow/custom/custom_component/custom_component.py. Update the URL to:

https://raw.githubusercontent.com/langflow-ai/langflow/refs/heads/main/src/backend/base/langflow/custom/custom_component/custom_component.py

This path should be fixed alongside the other URLs updated in this PR for consistency.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/lfx/tests/data/starter_projects_1_6_0/Custom` Component Generator.json
around lines 1847 - 1848, Update the URL value for URL-E6QCv
(CUSTOM_COMPONENT_CODE) to point to the correct file path: replace
"https://raw.githubusercontent.com/langflow-ai/langflow/refs/heads/main/src/backend/base/langflow/components/custom_component/custom_component.py"
with
"https://raw.githubusercontent.com/langflow-ai/langflow/refs/heads/main/src/backend/base/langflow/custom/custom_component/custom_component.py"
so the JSON entry for CUSTOM_COMPONENT_CODE references the actual file location
consistent with the other updated URLs.
🧹 Nitpick comments (1)
src/backend/base/langflow/initial_setup/starter_projects/Custom Component Generator.json (1)

1550-1556: Consider pinning URLs to a commit SHA or release tag to prevent future 404 recurrences.

All seven URLs use refs/heads/main, which is a moving target. This PR was needed precisely because a folder restructure on main broke these URLs. Pinning to a stable ref (e.g., a release tag or a fixed commit SHA) would make the template resilient to future refactors without requiring another fix PR.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/backend/base/langflow/initial_setup/starter_projects/Custom` Component
Generator.json around lines 1550 - 1556, Those seven resource URLs referencing
refs/heads/main (agent.py, structured_output.py, calculator.py,
tavily_search.py, ollama.py, conditional_router.py, file.py) should be pinned to
an immutable ref; replace each occurrence of refs/heads/main (or the moving
"main" branch) with a specific release tag or commit SHA for the corresponding
repository/file so the template won't 404 after upstream refactors—update the
JSON entries that currently point to those filenames/URLs to use the chosen tag
or SHA and verify the raw/blob form still serves the file.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/backend/base/langflow/initial_setup/starter_projects/Custom` Component
Generator.json:
- Around line 1550-1551: Two GitHub blob URLs in the starter project JSON
("https://github.com/langflow-ai/langflow/blob/main/src/lfx/src/lfx/base/agents/agent.py"
and
"https://github.com/langflow-ai/langflow/blob/main/src/lfx/src/lfx/components/llm_operations/structured_output.py")
return HTML pages instead of raw source; update those two entries to use
raw.githubusercontent.com equivalents (match the pattern used by the other five
working URLs) so RecursiveUrlLoader fetches plain source rather than GitHub UI
HTML.

In `@src/lfx/tests/data/starter_projects_1_6_0/Custom` Component Generator.json:
- Around line 1485-1486: The EXAMPLE_COMPONENTS prompt is receiving rendered
GitHub HTML because the two entries referencing agent.py and
structured_output.py use browser-view "github.com/.../blob/..." URLs; update
those two URLs to their corresponding raw.githubusercontent.com paths (matching
the pattern used for lines 1487–1491) so the URL-LiTXv node returns raw Python
source for agent.py and structured_output.py and not HTML, ensuring
EXAMPLE_COMPONENTS receives clean source code.

---

Outside diff comments:
In `@src/backend/base/langflow/initial_setup/starter_projects/Custom` Component
Generator.json:
- Around line 1196-1197: The URL referenced by symbol URL-G5J7i used in
CUSTOM_COMPONENT_CODE is 404 because the custom component implementation moved;
update that URL to point to the new raw file location where the custom component
is now implemented (replace the broken raw.githubusercontent URL with the one
for src/backend/base/langflow/custom/custom_component/component.py) so
CUSTOM_COMPONENT_CODE fetches the correct implementation; also leave URL-gEE5N
(used by BASE_COMPONENT_CODE) as-is only after verifying it intentionally points
to the backward-compatibility shim that re-exports from lfx.

In `@src/lfx/tests/data/starter_projects_1_6_0/Custom` Component Generator.json:
- Around line 1847-1848: Update the URL value for URL-E6QCv
(CUSTOM_COMPONENT_CODE) to point to the correct file path: replace
"https://raw.githubusercontent.com/langflow-ai/langflow/refs/heads/main/src/backend/base/langflow/components/custom_component/custom_component.py"
with
"https://raw.githubusercontent.com/langflow-ai/langflow/refs/heads/main/src/backend/base/langflow/custom/custom_component/custom_component.py"
so the JSON entry for CUSTOM_COMPONENT_CODE references the actual file location
consistent with the other updated URLs.

---

Nitpick comments:
In `@src/backend/base/langflow/initial_setup/starter_projects/Custom` Component
Generator.json:
- Around line 1550-1556: Those seven resource URLs referencing refs/heads/main
(agent.py, structured_output.py, calculator.py, tavily_search.py, ollama.py,
conditional_router.py, file.py) should be pinned to an immutable ref; replace
each occurrence of refs/heads/main (or the moving "main" branch) with a specific
release tag or commit SHA for the corresponding repository/file so the template
won't 404 after upstream refactors—update the JSON entries that currently point
to those filenames/URLs to use the chosen tag or SHA and verify the raw/blob
form still serves the file.

ℹ️ Review info

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5369b63 and 5bfb1e2.

📒 Files selected for processing (2)
  • src/backend/base/langflow/initial_setup/starter_projects/Custom Component Generator.json
  • src/lfx/tests/data/starter_projects_1_6_0/Custom Component Generator.json

Comment on lines +1550 to +1551
"https://github.com/langflow-ai/langflow/blob/main/src/lfx/src/lfx/base/agents/agent.py",
"https://github.com/langflow-ai/langflow/blob/main/src/lfx/src/lfx/components/llm_operations/structured_output.py",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

blob URLs return GitHub HTML, not raw source — convert them to raw.githubusercontent.com.

Lines 1550–1551 point to github.com/…/blob/main/… URLs. RecursiveUrlLoader will fetch the rendered GitHub HTML page for these, so even after BeautifulSoup text extraction the LLM receives noisy GitHub UI chrome alongside the code — defeating the purpose of using raw source as context. The other five URLs on lines 1552–1556 correctly use raw.githubusercontent.com.

🐛 Proposed fix
-                  "https://github.com/langflow-ai/langflow/blob/main/src/lfx/src/lfx/base/agents/agent.py",
-                  "https://github.com/langflow-ai/langflow/blob/main/src/lfx/src/lfx/components/llm_operations/structured_output.py",
+                  "https://raw.githubusercontent.com/langflow-ai/langflow/refs/heads/main/src/lfx/src/lfx/base/agents/agent.py",
+                  "https://raw.githubusercontent.com/langflow-ai/langflow/refs/heads/main/src/lfx/src/lfx/components/llm_operations/structured_output.py",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"https://github.com/langflow-ai/langflow/blob/main/src/lfx/src/lfx/base/agents/agent.py",
"https://github.com/langflow-ai/langflow/blob/main/src/lfx/src/lfx/components/llm_operations/structured_output.py",
"https://raw.githubusercontent.com/langflow-ai/langflow/refs/heads/main/src/lfx/src/lfx/base/agents/agent.py",
"https://raw.githubusercontent.com/langflow-ai/langflow/refs/heads/main/src/lfx/src/lfx/components/llm_operations/structured_output.py",
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/backend/base/langflow/initial_setup/starter_projects/Custom` Component
Generator.json around lines 1550 - 1551, Two GitHub blob URLs in the starter
project JSON
("https://github.com/langflow-ai/langflow/blob/main/src/lfx/src/lfx/base/agents/agent.py"
and
"https://github.com/langflow-ai/langflow/blob/main/src/lfx/src/lfx/components/llm_operations/structured_output.py")
return HTML pages instead of raw source; update those two entries to use
raw.githubusercontent.com equivalents (match the pattern used by the other five
working URLs) so RecursiveUrlLoader fetches plain source rather than GitHub UI
HTML.

Comment on lines +1485 to +1486
"https://github.com/langflow-ai/langflow/blob/main/src/lfx/src/lfx/base/agents/agent.py",
"https://github.com/langflow-ai/langflow/blob/main/src/lfx/src/lfx/components/llm_operations/structured_output.py",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

github.com/blob/ URLs return rendered HTML, not raw source — will corrupt the EXAMPLE_COMPONENTS prompt.

Lines 1485–1486 use the GitHub browser-view URL scheme (github.com/.../blob/main/...), while lines 1487–1491 correctly use raw.githubusercontent.com. The URL-LiTXv node feeds its raw_results into the EXAMPLE_COMPONENTS prompt variable, so the LLM will receive full GitHub HTML (navigation, scripts, markup) instead of the Python source for agent.py and structured_output.py.

🐛 Proposed fix — use raw URLs consistently
-                  "https://github.com/langflow-ai/langflow/blob/main/src/lfx/src/lfx/base/agents/agent.py",
-                  "https://github.com/langflow-ai/langflow/blob/main/src/lfx/src/lfx/components/llm_operations/structured_output.py",
+                  "https://raw.githubusercontent.com/langflow-ai/langflow/refs/heads/main/src/lfx/src/lfx/base/agents/agent.py",
+                  "https://raw.githubusercontent.com/langflow-ai/langflow/refs/heads/main/src/lfx/src/lfx/components/llm_operations/structured_output.py",
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/lfx/tests/data/starter_projects_1_6_0/Custom` Component Generator.json
around lines 1485 - 1486, The EXAMPLE_COMPONENTS prompt is receiving rendered
GitHub HTML because the two entries referencing agent.py and
structured_output.py use browser-view "github.com/.../blob/..." URLs; update
those two URLs to their corresponding raw.githubusercontent.com paths (matching
the pattern used for lines 1487–1491) so the URL-LiTXv node returns raw Python
source for agent.py and structured_output.py and not HTML, ensuring
EXAMPLE_COMPONENTS receives clean source code.

@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Feb 26, 2026
@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Feb 26, 2026
@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Feb 26, 2026
@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Feb 27, 2026
@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Feb 27, 2026
@olayinkaadelakun olayinkaadelakun added this pull request to the merge queue Feb 27, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 27, 2026
@olayinkaadelakun olayinkaadelakun added this pull request to the merge queue Feb 27, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 27, 2026
@olayinkaadelakun olayinkaadelakun added this pull request to the merge queue Feb 27, 2026
@olayinkaadelakun
Copy link
Copy Markdown
Collaborator Author

@coderabbitai full review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 27, 2026

✅ Actions performed

Full review triggered.

@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Feb 27, 2026
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♻️ Duplicate comments (2)
src/backend/base/langflow/initial_setup/starter_projects/Custom Component Generator.json (1)

1550-1551: ⚠️ Potential issue | 🟠 Major

Replace blob URLs with raw.githubusercontent.com URLs.

Line 1550 and Line 1551 still point to GitHub blob pages, so the loader receives rendered HTML instead of raw Python source.

🐛 Proposed fix
-                  "https://github.com/langflow-ai/langflow/blob/main/src/lfx/src/lfx/base/agents/agent.py",
-                  "https://github.com/langflow-ai/langflow/blob/main/src/lfx/src/lfx/components/llm_operations/structured_output.py",
+                  "https://raw.githubusercontent.com/langflow-ai/langflow/refs/heads/main/src/lfx/src/lfx/base/agents/agent.py",
+                  "https://raw.githubusercontent.com/langflow-ai/langflow/refs/heads/main/src/lfx/src/lfx/components/llm_operations/structured_output.py",
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/backend/base/langflow/initial_setup/starter_projects/Custom` Component
Generator.json around lines 1550 - 1551, Replace the GitHub "blob" URLs so the
loader receives raw Python source: update the two string entries that currently
read
"https://github.com/langflow-ai/langflow/blob/main/src/lfx/src/lfx/base/agents/agent.py"
and
"https://github.com/langflow-ai/langflow/blob/main/src/lfx/src/lfx/components/llm_operations/structured_output.py"
to use the raw GitHub content format
"https://raw.githubusercontent.com/langflow-ai/langflow/main/src/lfx/src/lfx/base/agents/agent.py"
and
"https://raw.githubusercontent.com/langflow-ai/langflow/main/src/lfx/src/lfx/components/llm_operations/structured_output.py"
respectively so the loader fetches plain Python source instead of HTML.
src/lfx/tests/data/starter_projects_1_6_0/Custom Component Generator.json (1)

1485-1486: ⚠️ Potential issue | 🔴 Critical

Critical: Blob URLs return HTML, not raw source code.

Lines 1485-1486 use github.com/.../blob/main/... URLs, which return rendered HTML pages from the GitHub web interface. The URL-LiTXv component feeds this content into the EXAMPLE_COMPONENTS prompt variable, so the LLM will receive full GitHub HTML (navigation bars, scripts, CSS, and markup) instead of the actual Python source code for agent.py and structured_output.py.

🐛 Proposed fix — use raw.githubusercontent.com URLs
-                  "https://github.com/langflow-ai/langflow/blob/main/src/lfx/src/lfx/base/agents/agent.py",
-                  "https://github.com/langflow-ai/langflow/blob/main/src/lfx/src/lfx/components/llm_operations/structured_output.py",
+                  "https://raw.githubusercontent.com/langflow-ai/langflow/refs/heads/main/src/lfx/src/lfx/base/agents/agent.py",
+                  "https://raw.githubusercontent.com/langflow-ai/langflow/refs/heads/main/src/lfx/src/lfx/components/llm_operations/structured_output.py",
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/lfx/tests/data/starter_projects_1_6_0/Custom` Component Generator.json
around lines 1485 - 1486, The listed GitHub blob URLs for agent.py and
structured_output.py are returning HTML pages; update the values fed into
EXAMPLE_COMPONENTS to point to raw file content by replacing the
"github.com/.../blob/main/..." URLs with the equivalent
"raw.githubusercontent.com/<owner>/<repo>/main/<path/to/file>" raw URLs (ensure
the repo/branch/path are correct for agent.py and structured_output.py), so the
prompt receives plain Python source instead of rendered HTML.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@src/backend/base/langflow/initial_setup/starter_projects/Custom` Component
Generator.json:
- Around line 1550-1551: Replace the GitHub "blob" URLs so the loader receives
raw Python source: update the two string entries that currently read
"https://github.com/langflow-ai/langflow/blob/main/src/lfx/src/lfx/base/agents/agent.py"
and
"https://github.com/langflow-ai/langflow/blob/main/src/lfx/src/lfx/components/llm_operations/structured_output.py"
to use the raw GitHub content format
"https://raw.githubusercontent.com/langflow-ai/langflow/main/src/lfx/src/lfx/base/agents/agent.py"
and
"https://raw.githubusercontent.com/langflow-ai/langflow/main/src/lfx/src/lfx/components/llm_operations/structured_output.py"
respectively so the loader fetches plain Python source instead of HTML.

In `@src/lfx/tests/data/starter_projects_1_6_0/Custom` Component Generator.json:
- Around line 1485-1486: The listed GitHub blob URLs for agent.py and
structured_output.py are returning HTML pages; update the values fed into
EXAMPLE_COMPONENTS to point to raw file content by replacing the
"github.com/.../blob/main/..." URLs with the equivalent
"raw.githubusercontent.com/<owner>/<repo>/main/<path/to/file>" raw URLs (ensure
the repo/branch/path are correct for agent.py and structured_output.py), so the
prompt receives plain Python source instead of rendered HTML.

ℹ️ Review info

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a75b127 and 4d090db.

📒 Files selected for processing (2)
  • src/backend/base/langflow/initial_setup/starter_projects/Custom Component Generator.json
  • src/lfx/tests/data/starter_projects_1_6_0/Custom Component Generator.json

@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 27, 2026
@olayinkaadelakun olayinkaadelakun added this pull request to the merge queue Feb 27, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 27, 2026
@github-actions github-actions Bot added bug Something isn't working and removed bug Something isn't working labels Feb 27, 2026
@olayinkaadelakun olayinkaadelakun added this pull request to the merge queue Mar 2, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Mar 2, 2026
@olayinkaadelakun olayinkaadelakun added this pull request to the merge queue Mar 4, 2026
Merged via the queue into main with commit 06f861d Mar 4, 2026
176 of 179 checks passed
@olayinkaadelakun olayinkaadelakun deleted the LE-376 branch March 4, 2026 12:42
HimavarshaVS pushed a commit that referenced this pull request Mar 10, 2026
…ng 404 errors (#11866)

replace with value urls as folder structure seems to have changed

Co-authored-by: Olayinka Adelakun <olayinkaadelakun@Olayinkas-MacBook-Pro.local>
Co-authored-by: Viktor Avelino <64113566+viktoravelino@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working lgtm This PR has been approved by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants