fix: add iter method to noopresult by HzaRashid · Pull Request #11517 · langflow-ai/langflow (original) (raw)

feat(auth): Pluggable AuthService with abstract base class (#10702)

During rebase, the teardown method was added in two locations (lines 57 and 220). Removed the duplicate at line 57, keeping the one at the end of the class (line 220) which is the more appropriate location for cleanup methods.

These changes fix test failures caused by LocalStorageService requiring session_service and settings_service parameters instead of just data_dir.

This refactor enhances the clarity and maintainability of the authentication logic.

These additions improve the reliability and maintainability of the authentication system.

These changes improve the accuracy and maintainability of the authentication tests.

After the pluggable auth refactor, encrypt_api_key and decrypt_api_key no longer take a settings_service argument - they get it internally.



Co-authored-by: Gabriel Luiz Freitas Almeida gabriel@logspace.ai Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Mike Pawlowski mike.pawlowski@datastax.com Co-authored-by: Mike Pawlowski mpawlow@ca.ibm.com Co-authored-by: Copilot 198982749+Copilot@users.noreply.github.com Co-authored-by: ogabrielluiz 24829397+ogabrielluiz@users.noreply.github.com Co-authored-by: Deon Sanchez 69873175+deon-sanchez@users.noreply.github.com Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

Add LLM-based guardrails component for detecting PII, tokens/passwords, jailbreak attempts, and custom guardrail rules, along with comprehensive unit tests.


Co-authored-by: Lucas Democh ldgoularte@gmail.com Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

fix tooltip showing up when closing select


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

The regex in langflow_pre_release_tag.py expected a dot before rc (e.g. 1.8.0.rc0), but PyPI returns PEP 440-normalized versions without the dot (e.g. 1.8.0rc0). This caused the script to recompute the same version instead of incrementing, and uv publish silently skipped the duplicate upload.

Update the regex to accept both formats with \.?rc.


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

Previously, clicking the Add Variable button always inserted {variable_name}, causing duplicate text without creating new input fields. Now the button generates incremental names (variable_name, variable_name_1, variable_name_2) by checking existing variables in the template.

Extract the variable name generation logic into an exported function so tests can import and validate the actual production code instead of testing a duplicated copy of the logic.

add edge between components

Co-authored-by: Olayinka Adelakun olayinkaadelakun@Olayinkas-MacBook-Pro.local


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Carlos Coelho 80289056+carlosrcoelho@users.noreply.github.com


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

fix: sessions overflow issue

Sort imports, add type modifier to AllNodeType import, and split long transition class string for readability.


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Carlos Coelho 80289056+carlosrcoelho@users.noreply.github.com


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Viktor Avelino viktor.avelino@gmail.com Co-authored-by: Lucas Oliveira 62335616+lucaseduoli@users.noreply.github.com Co-authored-by: Carlos Coelho 80289056+carlosrcoelho@users.noreply.github.com Co-authored-by: keval shah kevalvirat@gmail.com Co-authored-by: Jordan Frazier 122494242+jordanrfrazier@users.noreply.github.com

The field_order arrays in starter project nodes were out of sync with the actual input definitions in the Python component source files, causing parameters to display in the wrong order in the UI.

Fixed 136 nodes across 32 starter project files including Chat Input, Chat Output, Language Model, Agent, Prompt Template, Text Input, Tavily AI Search, Read File, Embedding Model, and others.

Verifies that field_order arrays in starter project JSONs match the actual component input order by importing each component and comparing the relative ordering of fields.

Update all starter project JSONs to include the complete component field_order instead of a subset, preventing layout inconsistency between template and sidebar. Strengthen the field_order test to require an exact match and add a new test that verifies no two generic nodes overlap on the canvas.


Co-authored-by: cristhianzl cristhian.lousa@gmail.com Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

improve styling of templete input

Co-authored-by: Olayinka Adelakun olayinkaadelakun@Olayinkas-MacBook-Pro.local

Co-authored-by: Claude Opus 4.5 noreply@anthropic.com


Co-authored-by: Olayinka Adelakun olayinkaadelakun@Olayinkas-MacBook-Pro.local


Co-authored-by: Olayinka Adelakun olayinkaadelakun@Olayinkas-MacBook-Pro.local Co-authored-by: Carlos Coelho 80289056+carlosrcoelho@users.noreply.github.com Co-authored-by: Olayinka Adelakun olayinkaadelakun@mac.war.can.ibm.com


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

feat: update GitHub Actions workflow to allow manual branch selection for docs deployment

Older Ollama versions don't return the capabilities field from /api/show. The previous code defaulted to an empty list and required "completion" capability, filtering out all models.

Now we treat missing capabilities as backwards-compatible: assume the model supports completion unless tool_model_enabled is True (where we can't verify tool support without the capabilities field).

Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com

Add tests for get_models handling of missing capabilities field:

Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com

Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com


Co-authored-by: Claude Opus 4.5 noreply@anthropic.com Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>


Co-authored-by: Hamza Rashid 74062092+HzaRashid@users.noreply.github.com

Before adding a knn_vector field mapping, check the index properties and skip updating if the field already exists (and warn if dimensions differ). Attempt to add the mapping only when missing, and catch failures from the OpenSearch k-NN plugin (e.g. NullPointerException); in that known case log a warning and skip the mapping update instead of failing hard. After adding, verify the field is mapped as knn_vector and raise an error if it is not. Also adjusts logging messages to be clearer.


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>


Co-authored-by: olayinkaadelakun olayinka.adelakun@ibm.com Co-authored-by: Olayinka Adelakun olayinkaadelakun@Olayinkas-MacBook-Pro.local Co-authored-by: Carlos Coelho 80289056+carlosrcoelho@users.noreply.github.com Co-authored-by: Olayinka Adelakun olayinkaadelakun@mac.war.can.ibm.com Co-authored-by: Cristhian Zanforlin Lousa cristhian.lousa@gmail.com Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Gabriel Luiz Freitas Almeida gabriel@logspace.ai Co-authored-by: Ram Gopal Srikar Katakam 44802869+RamGopalSrikar@users.noreply.github.com Co-authored-by: Claude Opus 4.5 noreply@anthropic.com Co-authored-by: Mendon Kissling 59585235+mendonk@users.noreply.github.com Co-authored-by: Hamza Rashid 74062092+HzaRashid@users.noreply.github.com Co-authored-by: Edwin Jose edwin.jose@datastax.com

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com


Co-authored-by: Viktor Avelino viktor.avelino@gmail.com Co-authored-by: Claude Opus 4.6 noreply@anthropic.com Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

Add LLM-based guardrails component for detecting PII, tokens/passwords, jailbreak attempts, and custom guardrail rules, along with comprehensive unit tests.


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Viktor Avelino viktor.avelino@gmail.com Co-authored-by: Viktor Avelino 64113566+viktoravelino@users.noreply.github.com


Co-authored-by: Olayinka Adelakun olayinkaadelakun@Olayinkas-MacBook-Pro.local Co-authored-by: Carlos Coelho 80289056+carlosrcoelho@users.noreply.github.com Co-authored-by: Olayinka Adelakun olayinkaadelakun@mac.war.can.ibm.com


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

feat: update GitHub Actions workflow to allow manual branch selection for docs deployment

Older Ollama versions don't return the capabilities field from /api/show. The previous code defaulted to an empty list and required "completion" capability, filtering out all models.

Now we treat missing capabilities as backwards-compatible: assume the model supports completion unless tool_model_enabled is True (where we can't verify tool support without the capabilities field).

Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com

Add tests for get_models handling of missing capabilities field:

Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com

Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com


Co-authored-by: Claude Opus 4.5 noreply@anthropic.com Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>


Co-authored-by: Hamza Rashid 74062092+HzaRashid@users.noreply.github.com

Before adding a knn_vector field mapping, check the index properties and skip updating if the field already exists (and warn if dimensions differ). Attempt to add the mapping only when missing, and catch failures from the OpenSearch k-NN plugin (e.g. NullPointerException); in that known case log a warning and skip the mapping update instead of failing hard. After adding, verify the field is mapped as knn_vector and raise an error if it is not. Also adjusts logging messages to be clearer.


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

Add smart_column_order() method to DataFrame that prioritizes content columns (text, content, output, etc.) and de-prioritizes system metadata columns (timestamp, sender, session_id, etc.). Add Clean Output boolean input to Split Text component that strips metadata columns by default.

The base class declares get_current_active_user_mcp as abstract but the default lfx AuthService did not implement it, causing instantiation to fail in tests.


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

now once all folders are deleted we show the default create first flow state

Co-authored-by: Claude Opus 4.5 noreply@anthropic.com


Co-authored-by: Olayinka Adelakun olayinkaadelakun@Olayinkas-MacBook-Pro.local


Co-authored-by: Carlos Coelho 80289056+carlosrcoelho@users.noreply.github.com Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Ram Gopal Srikar Katakam 44802869+RamGopalSrikar@users.noreply.github.com Co-authored-by: Claude Opus 4.5 noreply@anthropic.com Co-authored-by: olayinkaadelakun olayinka.adelakun@ibm.com Co-authored-by: Olayinka Adelakun olayinkaadelakun@Olayinkas-MacBook-Pro.local


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

on delete propigate changes to useFlowsManagerStore to cause re-render in HomePage

Hopefully fix [WebServer] bash: line 1: exec: uvx mcp-server-fetch: not found

Co-authored-by: Claude Opus 4.5 noreply@anthropic.com


Co-authored-by: Olayinka Adelakun olayinkaadelakun@Olayinkas-MacBook-Pro.local


Co-authored-by: Carlos Coelho 80289056+carlosrcoelho@users.noreply.github.com Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Ram Gopal Srikar Katakam 44802869+RamGopalSrikar@users.noreply.github.com Co-authored-by: Claude Opus 4.5 noreply@anthropic.com Co-authored-by: olayinkaadelakun olayinka.adelakun@ibm.com Co-authored-by: Olayinka Adelakun olayinkaadelakun@Olayinkas-MacBook-Pro.local


Co-authored-by: Olayinka Adelakun olayinkaadelakun@Olayinkas-MacBook-Pro.local Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

fix hidden delete button

Co-authored-by: Olayinka Adelakun olayinkaadelakun@Olayinkas-MacBook-Pro.local

Switch StickToBottom resize mode to instant and add a Safari-specific scroll fix that prevents unnatural jumps while preserving stick-to-bottom behavior.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 noreply@anthropic.com

remove component share from doc

Co-authored-by: Olayinka Adelakun olayinkaadelakun@Olayinkas-MacBook-Pro.local

Disable the Active checkbox with a tooltip when users try to deactivate their own account. This provides clear UI feedback instead of relying solely on the backend 403 error. Protection is added in both the Admin page table view and the user edit modal.


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Viktor Avelino viktor.avelino@gmail.com

When dragging a JSON file onto the canvas, the paste function now preserves width and height properties from the original nodes, ensuring sticky notes retain their custom dimensions.


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Viktor Avelino viktor.avelino@gmail.com

fix autofocus on close button

Co-authored-by: Olayinka Adelakun olayinkaadelakun@Olayinkas-MacBook-Pro.local


Co-authored-by: Olayinka Adelakun olayinkaadelakun@Olayinkas-MacBook-Pro.local Co-authored-by: Carlos Coelho 80289056+carlosrcoelho@users.noreply.github.com Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>


Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

The Vite frontend build was configured with --max-old-space-size=12288 (12GB), which exceeds available RAM on ARM64 CI runners, causing the build process to be OOM-killed during the transform phase.

Reduced to 4GB (4096MB) which is sufficient for the Vite build and prevents OOM kills in memory-constrained Docker BuildKit environments.

The recursive chown -R on /app was re-owning the entire .venv (~2.6GB, 40k+ files) which was already correctly owned via COPY --chown=1000:0. This was causing the build to be killed on ARM64 runners.

Changed to non-recursive chown on /app since only the directory itself needs ownership set. /app/data still gets recursive chown (it's empty).

The 40GB ARM64 runner runs out of disk when building 3 Docker images sequentially. Each image (main ~8GB layers, backend ~5GB, frontend) accumulates build cache and layers that exhaust the disk.

Added cleanup steps between builds that:


Co-authored-by: Gabriel Luiz Freitas Almeida gabriel@logspace.ai Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Mike Pawlowski mike.pawlowski@datastax.com Co-authored-by: Mike Pawlowski mpawlow@ca.ibm.com Co-authored-by: Copilot 198982749+Copilot@users.noreply.github.com Co-authored-by: ogabrielluiz 24829397+ogabrielluiz@users.noreply.github.com Co-authored-by: Deon Sanchez 69873175+deon-sanchez@users.noreply.github.com Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com> Co-authored-by: Lucas Oliveira 62335616+lucaseduoli@users.noreply.github.com Co-authored-by: Viktor Avelino 64113566+viktoravelino@users.noreply.github.com Co-authored-by: Lucas Democh ldgoularte@gmail.com Co-authored-by: Keval718 kevalvirat@gmail.com Co-authored-by: vjgit96 vijay.katuri@ibm.com Co-authored-by: Cristhian Zanforlin Lousa cristhian.lousa@gmail.com Co-authored-by: Ram Gopal Srikar Katakam 44802869+RamGopalSrikar@users.noreply.github.com Co-authored-by: olayinkaadelakun olayinka.adelakun@ibm.com Co-authored-by: Olayinka Adelakun olayinkaadelakun@Olayinkas-MacBook-Pro.local Co-authored-by: Carlos Coelho 80289056+carlosrcoelho@users.noreply.github.com Co-authored-by: Jordan Frazier 122494242+jordanrfrazier@users.noreply.github.com Co-authored-by: Viktor Avelino viktor.avelino@gmail.com Co-authored-by: Claude Opus 4.5 noreply@anthropic.com Co-authored-by: Olayinka Adelakun olayinkaadelakun@mac.war.can.ibm.com Co-authored-by: Mendon Kissling 59585235+mendonk@users.noreply.github.com Co-authored-by: Hamza Rashid 74062092+HzaRashid@users.noreply.github.com Co-authored-by: Edwin Jose edwin.jose@datastax.com Co-authored-by: Adam-Aghili 149833988+Adam-Aghili@users.noreply.github.com