Skip to content

docs(claude): fix p2c casing to match ROUTING_STRATEGY_VALUES#6643

Open
chirag127 wants to merge 6 commits into
diegosouzapw:release/v3.8.47from
chirag127:docs/claude-p2c-casing
Open

docs(claude): fix p2c casing to match ROUTING_STRATEGY_VALUES#6643
chirag127 wants to merge 6 commits into
diegosouzapw:release/v3.8.47from
chirag127:docs/claude-p2c-casing

Conversation

@chirag127

Copy link
Copy Markdown
Contributor

Problem

CLAUDE.md:75 lists the 18 combo routing strategies inline and writes the fifth one as P2C. The canonical literal in src/shared/constants/routingStrategies.ts:7 is "p2c" (lowercase). Every other strategy in the same sentence (lkgp, auto, fusion, round-robin, ...) is already lowercase, and JSDoc such as open-sse/services/accountSelector.ts:42 documents the union as 'p2c'.

Devs pasting from the guide into combo configs will hit a type-check failure — P2C is not in the union.

Fix

One-character diff in CLAUDE.md:75: P2Cp2c.

Testing

Docs-only change to a single prose word inside a strategy list. No runtime, build, or type-check impact. Manual read-back confirms the list now matches ROUTING_STRATEGY_VALUES byte-for-byte.

Alternatives considered

Leaving as P2C (proper-noun rendering of "Power of 2 Choices"): rejected — inconsistent with the other 17 names in the same sentence and with the code literal devs actually paste.

Thanks for the excellent OmniRoute!

diegosouzapw and others added 4 commits July 7, 2026 23:10
… (ABI 148) (diegosouzapw#6605)

fix(electron): bump electron 42→43 + rebuild better-sqlite3 from source against the Electron ABI (148).

Electron 43 raises NODE_MODULE_VERSION to 148; better-sqlite3@12.11.1 has no electron-v148 prebuild, so the packaged app died with 'Nenhum driver SQLite disponível'. prepare-electron-standalone now compiles better-sqlite3 from source against the electron headers into build/Release (where 'bindings' resolves it). Validated by Electron Package Smoke (green) + local (node_register_module_v148).

Supersedes diegosouzapw#6378. (--admin: the only reds are SonarQube/SonarCloud failing on a coverage-report artifact digest-mismatch — a GitHub Actions infra flake, not this diff; Sonar is green on main and the diff touches only the electron build.)
…iegosouzapw#6588)

deps: bump the development group (6 updates). Rebased onto current main; all checks green after the electron-smoke fix (diegosouzapw#6605).
…7) + production deps bump (diegosouzapw#6620)

fix(proxy): force CONNECT tunnel for HTTP proxied requests (undici 8.7) + production deps bump.

undici 8.6+ changed ProxyAgent to forward plain-HTTP via request-proxy instead of CONNECT, breaking OAuth refresh through a connection proxy (501). proxyDispatcher now passes proxyTunnel:true. Validated: Unit Tests 3/8 (the OAuth-proxy test) green, new regression test green (fails without the fix on undici 8.7), SonarQube green.

Supersedes diegosouzapw#6380. (--admin: the only red is Electron Package Smoke failing on a next-build artifact 'digest-mismatch' — a GitHub Actions infra flake corrupting the asar ('file data stream has unexpected number of bytes'); the better-sqlite3 rebuild itself succeeded (gyp ok) and the electron path is unchanged from diegosouzapw#6605 which passed the smoke. Not this diff.)
@chirag127 chirag127 requested a review from diegosouzapw as a code owner July 8, 2026 11:20
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the CLAUDE.md file to change the casing of the 'P2C' routing strategy to lowercase 'p2c' in the Combo routing documentation. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@diegosouzapw

Copy link
Copy Markdown
Owner

Confirmed — CLAUDE.md:75 does still say 'P2C' while the code literal is lowercase 'p2c'. One-character fix, merging as-is.

@diegosouzapw diegosouzapw changed the base branch from main to release/v3.8.47 July 8, 2026 23:58
diegosouzapw and others added 2 commits July 9, 2026 04:28
…roxy files belong to diegosouzapw#6620, not this PR)

Restores electron/package-lock.json, electron/package.json, package-lock.json,
package.json, open-sse/utils/proxyDispatcher.ts, scripts/build/prepare-electron-standalone.mjs
and tests/unit/proxy-dispatcher-family.test.ts to origin/release/v3.8.47's content.
The PR fork branched from a state of main that already includes diegosouzapw#6620 (proxy CONNECT
tunnel fix + deps bump), which is not yet synced into release/v3.8.47 — the 3-way
merge would otherwise silently carry that unrelated content into this doc-only PR.

Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
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.

3 participants