Skip to content

Fix: Remove the right anchor point of the tool node - #18224

Merged
wangq8 merged 2 commits into
infiniflow:mainfrom
cike8899:feat-structure-wiki
Aug 13, 2026
Merged

wangq8 merged 2 commits into
infiniflow:mainfrom
cike8899:feat-structure-wiki

Conversation

@cike8899

Copy link
Copy Markdown
Contributor

Summary

Fix: Remove the right anchor point of the tool node

@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. 🐞 bug Something isn't working, pull request that fix bug. 🧰 typescript Pull requests that update Typescript code labels Aug 13, 2026
@cike8899
cike8899 requested a review from wangq8 August 13, 2026 09:33
@cike8899 cike8899 added the ci Continue Integration label Aug 13, 2026
@cike8899
cike8899 marked this pull request as draft August 13, 2026 09:33
@cike8899
cike8899 marked this pull request as ready for review August 13, 2026 09:33
@coderabbitai

coderabbitai Bot commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 279f2e5d-d53d-4b8c-9cf7-5fe3797ab877

📥 Commits

Reviewing files that changed from the base of the PR and between 7427d94 and c0d0937.

📒 Files selected for processing (3)
  • web/src/pages/agent/canvas/node/agent-node.tsx
  • web/src/pages/agent/canvas/node/handle.tsx
  • web/src/pages/agent/canvas/node/tool-node.tsx

📝 Walkthrough

Walkthrough

The change adds a reusable bottom handle with a downward indicator, updates agent nodes to use it, and prevents tool node target handles from starting connections.

Changes

Canvas handle flow

Layer / File(s) Summary
Bottom handle component
web/src/pages/agent/canvas/node/handle.tsx
Adds BottomHandle with fixed bottom positioning, configurable offset and visibility, disabled connection initiation, and a downward-chevron indicator.
Node connection wiring
web/src/pages/agent/canvas/node/agent-node.tsx, web/src/pages/agent/canvas/node/tool-node.tsx
Agent nodes use BottomHandle for agent-subgraph and tool connections. Tool node target handles cannot start connections.

Estimated code review effort: 2 (Simple) | ~10 minutes

Mergeability Score: ⚪ Minimal · up to c0d09

This localized UI change is merge-ready after normal checks and review, with no actionable merge-blocking risk remaining.

Poem

I hop through handles, neat and bright,
A chevron points the downward route.
Agent links keep their place just right,
Tool targets block the starting sprout.
The canvas path is clear about.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description check ✅ Passed The description includes the required Summary section and clearly states that the tool node right anchor point is removed.
Title check ✅ Passed The title clearly and concisely describes the main change: removing the tool node right anchor point.

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.

@wangq8 wangq8 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

One thing I'd like confirmed before merge: removing the right source handle from the tool node.

The code being deleted explicitly warned that "v1 ExeSQL and similar 'tool' components route their result downstream, so they need a source handle too. Without this, any edge where the toolNode is the source silently fails to render." Can you confirm tool nodes (especially ExeSQL/Code-style tools) are no longer intended to be edge sources in the current design? If any tool still emits a downstream edge, this will silently break rendering.

Otherwise the refactor looks clean: isConnectableStart is a valid @xyflow/react v12 prop (already used elsewhere as isConnectableEnd), and BottomHandle nicely consolidates the duplicated bottom-handle markup.

One visual note: the bottom handles now render as a grey chevron (!bg-text-disabled / !border-border-button with a ChevronDown icon) instead of the previous !bg-accent-primary dot — confirming that's the intended look.

@wangq8
wangq8 merged commit 8f6b5d0 into infiniflow:main Aug 13, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration size:M This PR changes 30-99 lines, ignoring generated files. 🧰 typescript Pull requests that update Typescript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants