Skip to content

fix(assetserver): release consumed content-sniffer buffers - #6396

Merged
leaanthony merged 1 commit into
masterfrom
codex/v3-20261028-port-006
Oct 28, 2026
Merged

leaanthony merged 1 commit into
masterfrom
codex/v3-20261028-port-006

Conversation

@taliesin-ai

Copy link
Copy Markdown
Collaborator

A consumed prefix became a zero-length slice retaining its backing array, including a large borrowed first-write chunk. Selected because idle streaming responses could keep already-sent data alive.

Set fully consumed prefixes to nil, preserving unsent suffixes and sticky errors. Regression coverage includes short copied prefixes and large borrowed chunks; existing partial-write/flush tests remain applicable.

Ported onto current public master with feature changes excluded.

Validation on this port, from v3:

  • CI=1 go test -race -tags bench ./internal/assetserver -count=1 — passed.
  • go vet -tags bench ./internal/assetserver — passed.
  • git diff --check — passed.

Historical performance measurements, where present in the original implementation, were not rerun here. Native platform validation is limited to the local Linux environment.

The maintainer requested immediate admin merges for this dependency-ordered bug/performance series, with the final PR left open for CI review. No release, milestone or repository-protection changes are included.

@leaanthony
leaanthony merged commit 4d6bc61 into master Oct 28, 2026
17 of 19 checks passed
@leaanthony
leaanthony deleted the codex/v3-20261028-port-006 branch October 28, 2026 10:51
@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Caution

Review failed

The pull request is closed.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • 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

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

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