Skip to content

fix(agent): detect webhook Begin in saved canvases - #21849

Merged
wangq8 merged 1 commit into
infiniflow:mainfrom
6ba3i:fix/agent-webhook-begin-detection
Nov 2, 2026
Merged

wangq8 merged 1 commit into
infiniflow:mainfrom
6ba3i:fix/agent-webhook-begin-detection

Conversation

@6ba3i

@6ba3i 6ba3i commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Detect webhook Begin settings in both nested and flat DSL components.

@6ba3i 6ba3i added the ci Continue Integration label Nov 2, 2026
@6ba3i
6ba3i requested a review from wangq8 November 2, 2026 06:04
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f4989dc3-36f9-434f-b7bd-fb23ddd87ddc
Commits

Reviewing files that changed from the base of the PR and between 6aec415 and 6a9c7eb.

Files selected for processing: 2
  • internal/handler/agent_webhook.go
  • internal/handler/agent_webhook_test.go

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Walkthrough

findWebhookBegin now supports nested component metadata in saved DSL entries. It uses nested component names and parameters when available, while retaining entry-level values as fallbacks. Regression tests cover both webhook endpoints and multiple DSL layouts.

Changes: Webhook DSL compatibility

Layer / File(s) Summary
Select webhook component metadata
internal/handler/agent_webhook.go, internal/handler/agent_webhook_test.go
findWebhookBegin selects nested component names and parameters when present. Tests cover nested and flat DSL representations, both webhook endpoints, and valid and invalid configurations.

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

Change: Bug fix

Suggested reviewers: buua436, t1mn

Merge Risk: Minimal · up to 6a9c7

No merge-blocking risk is established from the supplied review evidence.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly identifies the main change: detecting webhook Begin settings in saved canvases.
Description check Passed The description clearly states the change and covers both nested and flat DSL components. It omits the template's "Summary" heading and background context, but the required purpose is sufficiently des…
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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.
Full details: Description check

Explanation

The description clearly states the change and covers both nested and flat DSL components. It omits the template's "Summary" heading and background context, but the required purpose is sufficiently described.

Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 3 functions across 2 files.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

A rabbit hops through nested fields,
Finds Begin where saved DSL yields.
Webhook settings come into view,
Flat and wrapped forms both pass through.
Two endpoints start when checks are true.

@wangq8
wangq8 merged commit 5908f2e into infiniflow:main Nov 2, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants