Skip to content

fix: guard buildChunks infinite loop and use ?? for chunk inputs#7787

Merged
alex-nork merged 1 commit into
mainfrom
swarm/chunk-vision-analysis/task-4
Feb 24, 2026
Merged

fix: guard buildChunks infinite loop and use ?? for chunk inputs#7787
alex-nork merged 1 commit into
mainfrom
swarm/chunk-vision-analysis/task-4

Conversation

@alex-nork
Copy link
Copy Markdown
Contributor

@alex-nork alex-nork commented Feb 24, 2026

Addresses review feedback on #7781. Clamps buildChunks step to minimum 1 to prevent infinite loop when overlap >= chunkSize. Uses ?? instead of || for chunk_size, overlap, and batch_size inputs so that explicit 0 values are respected.


Open with Devin

…nputs

Co-Authored-By: Claude <noreply@anthropic.com>
@alex-nork alex-nork self-assigned this Feb 24, 2026
@alex-nork alex-nork merged commit 06ad6b8 into main Feb 24, 2026
@alex-nork alex-nork deleted the swarm/chunk-vision-analysis/task-4 branch February 24, 2026 13:39
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

View 4 additional findings in Devin Review.

Open in Devin Review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0cb9ed2f64

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@alex-nork
Copy link
Copy Markdown
Contributor Author

Addressed in #7789

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant