Avatar for the langflow-ai user
langflow-ai
langflow
BlogDocsChangelog

fix: Refactor MCP API to fix value truncation

#8298
Comparing
fix-mcp-truncation
(
87349b0
) with
main
(
7ab4951
)
CodSpeed Performance Gauge
-14%
Improvements
0
Regressions
1
Untouched
18
New
0
Dropped
0
Ignored
0

Benchmarks

Failed

test_cancel_nonexistent_buildRegression
src/backend/tests/unit/test_chat_endpoint.py::test_cancel_nonexistent_build
CodSpeed Performance Gauge
-14%
8.3 ms
9.6 ms

Passed

test_build_flow_start_only
src/backend/tests/unit/test_chat_endpoint.py::test_build_flow_start_only
CodSpeed Performance Gauge
+5%
260.5 ms
247.6 ms
test_successful_run_with_output_type_any
src/backend/tests/unit/test_endpoints.py::test_successful_run_with_output_type_any
CodSpeed Performance Gauge
+2%
173 ms
169.3 ms
test_cancel_build_unexpected_error
src/backend/tests/unit/test_chat_endpoint.py::test_cancel_build_unexpected_error
CodSpeed Performance Gauge
+2%
790.1 ms
773.6 ms
test_build_flow_from_request_data
src/backend/tests/unit/test_chat_endpoint.py::test_build_flow_from_request_data
CodSpeed Performance Gauge
+1%
262.8 ms
259.8 ms
test_get_all
src/backend/tests/unit/test_endpoints.py::test_get_all
CodSpeed Performance Gauge
+1%
854.4 ms
850 ms
test_build_flow_polling
src/backend/tests/unit/test_chat_endpoint.py::test_build_flow_polling
CodSpeed Performance Gauge
0%
263.8 ms
263.4 ms
test_successful_run_with_output_type_debug
src/backend/tests/unit/test_endpoints.py::test_successful_run_with_output_type_debug
CodSpeed Performance Gauge
0%
173 ms
173.1 ms
test_build_flow_invalid_flow_id
src/backend/tests/unit/test_chat_endpoint.py::test_build_flow_invalid_flow_id
CodSpeed Performance Gauge
0%
490.1 ms
490.8 ms
test_cancel_build_with_cancelled_error
src/backend/tests/unit/test_chat_endpoint.py::test_cancel_build_with_cancelled_error
CodSpeed Performance Gauge
0%
265 ms
265.7 ms
test_starter_projects
src/backend/tests/unit/test_endpoints.py::test_starter_projects
CodSpeed Performance Gauge
0%
1.5 s
1.5 s
test_build_flow
src/backend/tests/unit/test_chat_endpoint.py::test_build_flow
CodSpeed Performance Gauge
-1%
247.7 ms
249.3 ms
test_build_flow_invalid_job_id
src/backend/tests/unit/test_chat_endpoint.py::test_build_flow_invalid_job_id
CodSpeed Performance Gauge
-1%
8.4 ms
8.5 ms
test_cancel_build_failure
src/backend/tests/unit/test_chat_endpoint.py::test_cancel_build_failure
CodSpeed Performance Gauge
-1%
246.2 ms
248.1 ms
test_build_flow_start_with_inputs
src/backend/tests/unit/test_chat_endpoint.py::test_build_flow_start_with_inputs
CodSpeed Performance Gauge
-1%
236.7 ms
238.7 ms
test_successful_run_with_input_type_any
src/backend/tests/unit/test_endpoints.py::test_successful_run_with_input_type_any
CodSpeed Performance Gauge
-1%
173.2 ms
174.8 ms
test_invalid_run_with_input_type_chat
src/backend/tests/unit/test_endpoints.py::test_invalid_run_with_input_type_chat
CodSpeed Performance Gauge
-1%
16.6 ms
16.8 ms
test_cancel_build_success
src/backend/tests/unit/test_chat_endpoint.py::test_cancel_build_success
CodSpeed Performance Gauge
-4%
244.5 ms
255.5 ms
test_successful_run_with_input_type_text
src/backend/tests/unit/test_endpoints.py::test_successful_run_with_input_type_text
CodSpeed Performance Gauge
-6%
172.7 ms
182.9 ms

Commits

Click on a commit to change the comparison range
Base
main
7ab4951
-15%
refactor: Improve progress notification handling in handle_call_tool - Updated the logic for progress task creation in the `handle_call_tool` function to ensure it only initializes when progress notifications are enabled and a progress token is present. - Enhanced the cancellation and exception handling of the progress task to prevent potential errors when it is not created. - Improved overall robustness of the function by ensuring that progress updates are managed correctly based on the current context.
2f643fc
3 days ago
by ogabrielluiz
+1%
refactor: Streamline flow execution and message handling in ProjectMCPServer - Replaced `InputValueRequest` with `SimplifiedAPIRequest` for improved input management. - Updated flow execution to utilize `simple_run_flow`, enhancing clarity and performance. - Refined progress notification handling to ensure tasks are only created when necessary. - Improved message collection from flow outputs, ensuring robust handling of both messages and results. - Enhanced error handling during tool execution to provide clearer feedback on failures.
87349b0
3 days ago
by ogabrielluiz
© 2025 CodSpeed Technology
Home Terms PrivacyDocs