Skip to content

Commit 7d19485

Browse files
authored
fix(mcp): bump row spacing between workflow nodes (#2390)
1 parent 397351a commit 7d19485

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/unit/test_mcp_server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,9 +441,9 @@ def test_auto_generate_layout_round_trips_through_extract():
441441
assert action_positions is not None
442442
assert "step1" in action_positions
443443
assert "step2" in action_positions
444-
# step1 at depth 0 → y=150, step2 at depth 1 → y=300
445-
assert action_positions["step1"][1] == 150
446-
assert action_positions["step2"][1] == 300
444+
# step1 at depth 0 → y=300, step2 at depth 1 → y=600
445+
assert action_positions["step1"][1] == 300
446+
assert action_positions["step2"][1] == 600
447447

448448

449449
@pytest.mark.anyio

tracecat/mcp/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ def _auto_generate_layout(
12341234
Walks the dependency graph to assign each action a depth (row), then
12351235
spreads siblings horizontally. The trigger node sits at the top.
12361236
"""
1237-
NODE_HEIGHT = 150 # vertical spacing between rows
1237+
NODE_HEIGHT = 300 # vertical spacing between rows
12381238
NODE_WIDTH = 300 # horizontal spacing between columns
12391239

12401240
# Build dependency graph

0 commit comments

Comments
 (0)