Skip to content

chore: move the vendored stb headers to vendor/stb (cli#471 X2) - #502

Merged
apotema merged 1 commit into
mainfrom
chore/vendor-stb
Sep 29, 2026
Merged

apotema merged 1 commit into
mainfrom
chore/vendor-stb

Conversation

@apotema

@apotema apotema commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Part of #471, item X2 (D7: move stb to vendor/, not a hash exemption).

  • stb_image.h, stb_image_write.h and stb_image_impl.c move from src/cli/ to vendor/stb/ with git mv, bytes unchanged.
  • build.zig (wireStb) now compiles vendor/stb/stb_image_impl.c and puts vendor/stb on the include path. build.zig.zon adds vendor to .paths so the package ships it.
  • The guard no longer scans the vendored files. cli/stb_image.h was only listed for an upstream comment about iOS/Android NEON, so it leaves the allowlist: 18 → 17 entries.

Tests: zig build test passes 13/13 steps (1132 tests). The Windows CI builds the C file from its new path.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Third-party code lives outside src/, so the agnostic guard stops scanning
upstream comments: stb_image.h's mention of iOS/Android NEON support was
the only reason it sat on the allowlist (17 entries now). The bytes are
unchanged (git mv); build.zig compiles stb_image_impl.c from vendor/stb
and puts that directory on the include path, and build.zig.zon ships it.
@coderabbitai

coderabbitai Bot commented Sep 28, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 16 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 99 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: d1503645-00a0-44c2-abbd-61ba5ea68d19

📥 Commits

Reviewing files that changed from the base of the PR and between 7892c59 and 3b8d131.

📒 Files selected for processing (7)
  • build.zig
  • build.zig.zon
  • src/agnostic_guard_test.zig
  • src/cli/screenshot_format.zig
  • vendor/stb/stb_image.h
  • vendor/stb/stb_image_impl.c
  • vendor/stb/stb_image_write.h

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 28, 2026 •

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 ✅ Completed 2026-09-28T19:41:27.742340Z 3b8d131 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.

@opencode-agent

Copy link
Copy Markdown

User coderabbitai[bot] does not have write permissions

github run

@apotema
apotema merged commit b68fa96 into main Sep 29, 2026
5 checks passed
@apotema
apotema deleted the chore/vendor-stb branch September 29, 2026 12:41
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.

2 participants