Skip to content

gibblox: (web) File support#10

Open
samcday wants to merge 1 commit intomainfrom
fastboop-web-file
Open

gibblox: (web) File support#10
samcday wants to merge 1 commit intomainfrom
fastboop-web-file

Conversation

@samcday
Copy link
Owner

@samcday samcday commented Feb 16, 2026

No description provided.

Signed-off-by: Sam Day <me@samcday.com>
Assisted-by: opencode:gpt-5.3-codex
@samcday
Copy link
Owner Author

samcday commented Feb 16, 2026

@codex review

Copy link

@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: 9db8f7b1b3

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +45 to +46
unsafe impl Send for SendFile {}
unsafe impl Sync for SendFile {}

Choose a reason for hiding this comment

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

P2 Badge Avoid declaring web File handles as Send/Sync

The unsafe impl Send/Sync on SendFile bypasses wasm-bindgen’s thread-safety model for JS-backed handles; this becomes a real correctness risk when wasm threads are enabled or when a BlockReader future is moved across workers, because the underlying File/JsValue can then be accessed or dropped on a different thread than where it originated. In that environment this can panic or lead to undefined behavior, so this should be constrained to a proven single-thread runtime or redesigned to avoid cross-thread File sharing.

Useful? React with 👍 / 👎.

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

Comments