Skip to content

Add proxy routing diagnostics#63

Merged
jacobcxdev merged 3 commits into
mainfrom
feat/proxy-routing-diagnostics
Apr 28, 2026
Merged

Add proxy routing diagnostics#63
jacobcxdev merged 3 commits into
mainfrom
feat/proxy-routing-diagnostics

Conversation

@jacobcxdev
Copy link
Copy Markdown
Owner

Summary

  • Harden cq proxy pin so reserved command words and flag-like arguments cannot become literal pins.
  • Add opt-in JSONL proxy routing diagnostics with redacted route, status, selected-account hint, failover, and safe error metadata.
  • Expose diagnostics status in health output and document diagnostics configuration plus the supported pin-clear syntax.
  • Refresh the README screenshot.

Test plan

  • go test -race -count=1 ./cmd/cq -run TestProxyPin
  • go test -race -count=1 ./internal/proxy -run 'TestDiagnostics|TestServer|TestConfig'
  • go test -race -count=1 ./internal/proxy -run 'TestDiagnostics|TestConfig|TestTokenTransport|TestCodexTokenTransport'
  • go vet ./...
  • go test -race -count=1 ./...
  • Manual isolated-config checks for cq proxy pin --clear, cq proxy pin clear, and cq proxy pin --help
  • Codex CLI gpt-5.5 xhigh recursive review and explicit plan validation

@jacobcxdev jacobcxdev merged commit 1f7d0d3 into main Apr 28, 2026
1 check passed
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