Skip to content

feat(extensions): support countItems on WebGPU DataFilter - #11035

Merged
ibgreen merged 8 commits into
masterfrom
codex/data-filter-count-items-webgpu
Nov 5, 2026
Merged

ibgreen merged 8 commits into
masterfrom
codex/data-filter-count-items-webgpu

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Background

DataFilterExtension.countItems reports how many objects pass the active filters. This change enables counting on WebGPU, where callbacks are delivered asynchronously.

Change List

  • Reuse the filter plugin and aggregation model
  • Align counting attributes for WebGPU vertex buffers
  • Discard stale counts and notify the current callback
  • Cover constant attributes, fp64 values, and empty datasets
  • Assert exact counts alongside the existing golden images
  • Describe extension features and document backend differences

Verified: build, lint, focused counting tests, and 14 render cases.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-11-04T21:42:09.791801Z
We couldn’t complete this review. Comment @codex review to try again.
897b56a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@greptile-apps

greptile-apps Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no blocking findings remain.

Summary

Adds WebGPU item counting to DataFilterExtension.

  • WebGPU layers can report filtered item counts after GPU readback.
  • Several extension pages now use shorter capability notes.

The earlier callback finding is fixed: onFilteredItemsChange uses ignore: false, and pending results use the current layer’s callback. No new actionable issues were found in the changes since the previous review. Tests were not run during this review.

Diagram

sequenceDiagram
  participant Layer
  participant GPU
  participant Callback
  Layer->>GPU: Draw filtered item counts
  Layer->>GPU: Read count buffer asynchronously
  GPU-->>Layer: Return count bytes
  alt Count is current and layer still exists
    Layer->>Callback: Report count to current callback
  else Count was superseded or layer removed
    Layer->>Layer: Discard result
  end
Loading

Reviews (6) · Last reviewed commit: "test(extensions): assert filtered counts..." · Reviewed by Greptile

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 25625d7. Configure here.

@coveralls

coveralls commented Nov 4, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 84.788% (-0.03%) from 84.815% — codex/data-filter-count-items-webgpu into master

@chrisgervang chrisgervang 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.

Approved pending comments

Comment thread docs/whats-new.md Resolved
@ibgreen
ibgreen merged commit dc8b92a into master Nov 5, 2026
9 checks passed
@ibgreen
ibgreen deleted the codex/data-filter-count-items-webgpu branch November 5, 2026 01:25
@ibgreen ibgreen mentioned this pull request Nov 19, 2026
42 of 61 tasks
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.

3 participants