Skip to content

test(util): record reviewed in-place write in helps/claude_credential_identity.go - #8831

Open
KennethWKZ wants to merge 1 commit into
router-for-me:devfrom
KennethWKZ:fix/nocopy-review-claude-credential-identity
Open

KennethWKZ wants to merge 1 commit into
router-for-me:devfrom
KennethWKZ:fix/nocopy-review-claude-credential-identity

Conversation

@KennethWKZ

Copy link
Copy Markdown

Summary

dev fails one of its own tests: TestInPlaceByteWritesAreReviewed in internal/util counts two in-place byte writes in internal/runtime/executor/helps/claude_credential_identity.go, but the file is recorded with a count of 1. The second write, copy(id[:], digest[:16]) in claudeDeterministicUUIDv4, came in with 901b3aa.

The write copies a local SHA-256 digest into a local uuid.UUID array. No byte of any JSON payload is rewritten, so it cannot corrupt a no-copy GJSON result. This raises the file's count in reviewedInPlaceByteWrites to 2 and adds that reason.

Closes #8830

Evidence

  • Before: dev 1d16ee4, go test ./internal/util fails with has 2 in-place byte write(s), reviewed 1.
  • After: at this head, go vet ./internal/util and go test ./internal/util pass, and go build ./cmd/server succeeds.

Merge Danger

Door: two-way

Blast Radius: tests

One line in a test file; no production code changes.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-05T00:20:36.154347Z 359e774 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.

KennethWKZ added a commit to KennethWKZ/CLIProxyAPI that referenced this pull request Dec 5, 2026
…y) into feat/claude-oauth-base-url

test(util): record reviewed in-place write in helps/claude_credential_identity.go
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