Commit Graph
4282 Commits
Author SHA1 Message Date
Kai (Tam Nhu) TranandGitHub cfb4d7bf19 Merge pull request #1457 from sgaluza/feat/claude-opus-4-8
feat(catalog): add Claude Opus 4.8 to Anthropic model registry
2026-06-02 10:46:54 -04:00
Tam Nhu Tran bfb4258688 Merge remote-tracking branch 'origin/dev' into kai/validate/pr-1457 2026-06-02 07:00:33 -04:00
github-actions[bot] 2368d779c7 chore(release): 8.1.4-dev.6 2026-06-02 10:55:58 +00:00
Kai (Tam Nhu) TranandGitHub 06792d3382 Merge pull request #1462 from kaitranntt/kai/fix/1461-ci-gate
fix(ci): add always-reporting CI Gate so fork PRs stop deadlocking
2026-06-02 06:52:17 -04:00
Tam Nhu Tran 7dba36fb03 fix(ci): add always-reporting CI Gate so fork PRs stop deadlocking
The validate/build/test/compose-parity jobs are gated to trusted author
associations so untrusted fork code never runs on the self-hosted runners.
But a job skipped via a job-level if reports no status, and branch protection
requires the job names typecheck/lint/format/build/test directly, so fork PRs
hang on 'Expected - waiting for status to be reported' and can never merge.

Add a single CI Gate job (if: always(), needs the gated jobs, no checkout so it
runs no third-party code) that fails only when a gated job actually
failed/cancelled and passes when they succeed or skip-for-fork. Branch
protection should require CI Gate instead of the individual job names.

Closes #1461
2026-06-02 06:38:54 -04:00
Sergey Galuza 1fc595f10c docs(pricing): document legacy 4-7-thinking entry; cover tier metadata
Final review polish:

- Add an inline comment on the claude-opus-4-7-thinking registry entry
  explaining it is a pricing-only id kept for historical analytics data
  (no catalog model after Opus 4.7 moved to adaptive thinking levels),
  and why it carries no fast tier.
- Add a test asserting applyServiceTier preserves the serviceTiers map on
  its result, guarding against a future simplification dropping it.

Built [OnSteroids](https://onsteroids.ai)
2026-05-31 20:23:14 +02:00
Sergey Galuza 5a79b47506 fix(pricing): restore opus version order; cover 4.6/4.7 fast-tier rates
Address presto review on the fast-tier work:

- Move the claude-opus-4-8 entry after claude-opus-4-7-thinking so the
  registry keeps chronological 4.6 -> 4.7 -> 4.8 ordering (the 4.8 insert
  had split the 4-7 / 4-7-thinking pair).
- Drop the fast serviceTier from claude-opus-4-7-thinking: that id is a
  legacy pricing-only entry with no catalog model, so a fast premium on it
  is meaningless. The active 4.6-thinking variant (agy provider) keeps its
  fast tier.
- Extend the 4.7 fast-tier test with cache-rate assertions and add an
  equivalent 4.6 fast-tier test so the derived buildRates math is covered
  for every premium-tier model.

Built [OnSteroids](https://onsteroids.ai)
2026-05-31 18:52:54 +02:00
Sergey Galuza e8057a7073 refactor(pricing): share Opus fast-tier rate constants
Hoist the fast-mode rate sets into OPUS_46_47_FAST_RATES and
OPUS_48_FAST_RATES module constants (built via buildRates) so the
registry entries reference shared values instead of repeating literal
buildRates(...) calls. Also wires the fast tier onto the -thinking
aliases (claude-opus-4-6-thinking / -4-7-thinking) so they bill at the
same premium as their base ids.

Built [OnSteroids](https://onsteroids.ai)
2026-05-31 18:16:23 +02:00
Sergey Galuza 254fc88f71 refactor(pricing): derive fast-tier cache rates via buildRates helper
Address review feedback on the per-service-tier pricing:

- Extract `buildRates(input, output)` plus named CACHE_5M_WRITE_MULTIPLIER
  / CACHE_READ_MULTIPLIER constants so fast-tier cache rates are derived
  from Anthropic's documented multipliers instead of hand-computed numbers.
  This removes the inconsistency where Opus 4.6 fast-tier lacked the
  explanatory inline comments that 4.7/4.8 carried (presto suggestion #3).
- Document in `applyServiceTier` that no production caller passes
  `serviceTier` yet (Anthropic's service_tier is not captured on
  CliproxyRequestDetail), so fast-mode usage is currently billed at the
  standard rate until the usage pipeline records the tier.
- Add a combined date-suffix + fast-tier lookup test to prove the two
  resolution stages compose.

Built [OnSteroids](https://onsteroids.ai)
2026-05-31 10:34:50 +02:00
Sergey Galuza 5157a922a5 test(accounts): align stale free-tier expectations with current behavior
Commit 72ea1fc9 ("fix(accounts): simplify codex free tier badges") split
free codex accounts out of the `personal` audience into a distinct
`free` audience and dropped the `'Personal · '` prefix on inlineLabel,
but `account-visual-groups.test.ts` was not updated and has been
failing in CI ever since.

Update expectations to match the shipped behavior:
- `audience` for `-free` tokens is `'free'`, not `'personal'`
- `inlineLabel` for a bare free account is `'Free'`, not `'Personal · Free'`
- `compactDetailLabel` is `null` when no extra parts are present
- Sort order: business -> personal -> free -> unknown

Drive-by fix unrelated to the Opus 4.8 work in this PR but caught
because these tests started failing on every push to the branch.

Built [OnSteroids](https://onsteroids.ai)
2026-05-30 23:01:58 +02:00
Sergey Galuza c74ad22bd4 Merge remote-tracking branch 'upstream/dev' into feat/claude-opus-4-8 2026-05-30 22:31:55 +02:00
github-actions[bot] c8e0de6b02 chore(release): 8.1.4-dev.5 2026-05-30 20:24:52 +00:00
Kai (Tam Nhu) TranandGitHub 64f4147312 Merge pull request #1442 from kaitranntt/codex/fix-cliproxy-v3-snapshot-migration-issue
fix(cliproxy): normalize v3 snapshot details and avoid NaN / double-counting
2026-05-30 16:20:31 -04:00
Sergey Galuza 878775f5b6 feat(pricing): support per-service-tier rates; wire Opus fast mode
Extend `ModelPricing` with an optional `serviceTiers` map keyed by
Anthropic's `service_tier` request parameter. `getModelPricing(model,
{ serviceTier })` returns the matching tier rates when present and
transparently falls through to base rates otherwise — existing call
sites keep current behavior.

Registry entries added (per Anthropic Fast mode pricing docs):
- claude-opus-4-8 fast: $10/$50 input/output (2x premium)
- claude-opus-4-7 fast: $30/$150 (6x premium)
- claude-opus-4-6 fast: $30/$150 (6x premium)

Cache rates derived from the documented Prompt caching multipliers
(1.25x for 5-min cache write, 0.1x for cache read).

Note: tier tracking through CliproxyRequestDetail is not wired yet —
that's a follow-up so usage transformers can pass `serviceTier` when
Anthropic returns it on the response. Schema is in place; integration
can land independently.

Also adds a defensive `claude-opus-4-8-20260530` pricing test to exercise
`stripDateSuffix` even though Anthropic no longer issues date-stamped IDs
for the 4.6+ generation (addresses presto-review suggestion #1).

Built [OnSteroids](https://onsteroids.ai)
2026-05-30 22:17:21 +02:00
Kai (Tam Nhu) TranandGitHub b75b8772fb Merge pull request #1424 from kaitranntt/codex/fix-logs-filtering-to-show-dashboard-audits
fix(ui): show dashboard audit logs by default
2026-05-30 16:15:18 -04:00
Tam Nhu Tran ced9317565 Merge remote-tracking branch 'origin/dev' into codex/fix-cliproxy-v3-snapshot-migration-issue
# Conflicts:
#	src/web-server/usage/cliproxy-usage-transformer.ts
#	tests/unit/web-server/cliproxy-usage-transformer.test.ts
2026-05-30 16:13:49 -04:00
Kai (Tam Nhu) TranandGitHub dce968fdf7 Merge pull request #1425 from kaitranntt/codex/fix-unvalidated-codex-quota-labels
fix(cliproxy): sanitize Codex quota labels
2026-05-30 16:12:22 -04:00
Kai (Tam Nhu) TranandGitHub e2d487883f Merge pull request #1430 from kaitranntt/codex/fix-vulnerability-in-shell-completion-scripts
fix: avoid relative completion backend execution
2026-05-30 16:12:15 -04:00
Kai (Tam Nhu) TranandGitHub f41480cdbd Merge pull request #1431 from kaitranntt/codex/fix-privacy-mode-account-label-exposure
fix(ui): blur account identity badges in privacy mode
2026-05-30 16:12:09 -04:00
Kai (Tam Nhu) TranandGitHub e7db1d65f5 Merge pull request #1452 from kaitranntt/codex/propose-fix-for-codex-target-rejection
Mark Codex as a persisted target and align UI/validation
2026-05-30 16:12:03 -04:00
Kai (Tam Nhu) TranandGitHub 429fcc0d51 Merge pull request #1454 from kaitranntt/codex/fix-email-fallback-parsing-issue
fix(cliproxy): infer emails from alternate token prefixes
2026-05-30 16:11:54 -04:00
Kai (Tam Nhu) TranandGitHub b1c8fbf701 Merge pull request #1417 from kaitranntt/codex/propose-fix-for-proxy-validation-issue
fix: validate browser flags before proxy side effects
2026-05-30 16:10:29 -04:00
Kai (Tam Nhu) TranandGitHub 5ca9b7b1e2 Merge pull request #1448 from kaitranntt/codex/fix-browser-page-open/close-handlers
fix(browser): handle DevTools close endpoint response
2026-05-30 16:09:17 -04:00
Kai (Tam Nhu) TranandGitHub d028329d2c Merge pull request #1426 from kaitranntt/codex/fix-cliproxy-usage-cache-vulnerability
fix(cliproxy): avoid persisting account identifiers and harden usage cache permissions
2026-05-30 16:08:26 -04:00
Kai (Tam Nhu) TranandGitHub bbb717ff2f Merge pull request #1441 from kaitranntt/codex/propose-fix-for-provider-alias-crash
fix: harden provider alias normalization
2026-05-30 16:07:28 -04:00
Kai (Tam Nhu) TranandGitHub 1d1b9fbe6d Merge pull request #1443 from kaitranntt/codex/fix-ccsxp-codex-config-check
fix(codex): gate ccsxp config overrides
2026-05-30 16:07:21 -04:00
Kai (Tam Nhu) TranandGitHub 41e550e92f Merge pull request #1428 from kaitranntt/codex/propose-fix-for-symlinked-cleanup-issue
fix: reject symlinked cleanup directories
2026-05-30 16:05:05 -04:00
Kai (Tam Nhu) TranandGitHub 43046f3047 Merge pull request #1455 from kaitranntt/codex/propose-fix-for-overbroad-issue-parsing
fix(ci): narrow issue reference parsing
2026-05-30 16:04:57 -04:00
Kai (Tam Nhu) TranandGitHub 5ac0e808b4 Merge pull request #1432 from kaitranntt/codex/fix-ccsxp-argument-parsing-bug
fix: stop ccsxp model alias parsing at option terminator
2026-05-30 16:01:55 -04:00
Kai (Tam Nhu) TranandGitHub ee50c0c59a Merge pull request #1422 from kaitranntt/codex/fix-codex-usage-cache-permissions
fix: restrict Codex usage cache permissions
2026-05-30 16:01:00 -04:00
Kai (Tam Nhu) TranandGitHub 7778ab7d39 Merge pull request #1453 from kaitranntt/codex/propose-fix-for-timeline-display-issue
fix(dashboard): respect actual timeline base time
2026-05-30 16:00:33 -04:00
Kai (Tam Nhu) TranandGitHub a6ea3f2d19 Merge pull request #1450 from kaitranntt/codex/fix-hidden-stale-default-model-in-live-catalogs
fix: keep live catalog defaults visible
2026-05-30 15:59:59 -04:00
Tam Nhu Tran 3d9636351e Merge remote-tracking branch 'origin/dev' into codex/fix-logs-filtering-to-show-dashboard-audits 2026-05-30 15:57:03 -04:00
Kai (Tam Nhu) TranandGitHub b2ee234430 Merge pull request #1451 from kaitranntt/codex/propose-fix-for-codex-fallback-issue
fix(cliproxy): prefer explicit Codex free fallbacks
2026-05-30 15:56:02 -04:00
Kai (Tam Nhu) TranandGitHub 4ab920c489 Merge pull request #1438 from kaitranntt/codex/fix-invalid-default-claude-image-analysis-model
fix: correct claude image analysis default model
2026-05-30 15:55:41 -04:00
Kai (Tam Nhu) TranandGitHub 57867ff8f0 Merge pull request #1445 from kaitranntt/codex/propose-fix-for-opus-4.7-test-coverage
fix(analytics): price Claude Opus 4.7 thinking
2026-05-30 15:53:40 -04:00
Kai (Tam Nhu) TranandGitHub 484f0a0427 Merge pull request #1427 from kaitranntt/codex/propose-fix-for-local-runtime-probe-vulnerability
fix: restrict local runtime readiness probes
2026-05-30 15:51:43 -04:00
Kai (Tam Nhu) TranandGitHub a9f5f26807 Merge pull request #1446 from kaitranntt/codex/fix-quota-cooldown-auto-resume-logic
fix(cliproxy): preserve manual quota pauses
2026-05-30 15:51:42 -04:00
Tam Nhu Tran bcc68992fa fix(cliproxy): ignore stale executor exit code 2026-05-30 15:48:18 -04:00
Kai (Tam Nhu) TranandGitHub bdea434339 Merge pull request #1429 from kaitranntt/codex/fix-vulnerability-in-self-signed-routing
fix: guard self-signed routing request setup
2026-05-30 15:46:53 -04:00
Kai (Tam Nhu) TranandGitHub 5151d6d24e Merge pull request #1433 from kaitranntt/codex/fix-issue-with-profile-query-handling
fix: validate usage profile query type
2026-05-30 15:46:47 -04:00
Kai (Tam Nhu) TranandGitHub 93756489a5 Merge pull request #1434 from kaitranntt/codex/fix-unbounded-recursion-in-receipt-generation
fix(persist): bound Codex translator receipt scan
2026-05-30 15:46:29 -04:00
Kai (Tam Nhu) TranandGitHub 229d5456c2 Merge pull request #1436 from kaitranntt/codex/fix-null-retryablecheck-crash
fix: tolerate null retryable check
2026-05-30 15:46:21 -04:00
Kai (Tam Nhu) TranandGitHub 80fcb54c67 Merge pull request #1440 from kaitranntt/codex/fix-log-detail-panel-timestamp-handling
fix(ui): guard invalid log detail timestamps
2026-05-30 15:46:14 -04:00
Kai (Tam Nhu) TranandGitHub 84f2856990 Merge pull request #1444 from kaitranntt/codex/propose-fix-for-test-cleanup-issue
test: restrict claudecode CCS_HOME cleanup
2026-05-30 15:46:08 -04:00
Kai (Tam Nhu) TranandGitHub 5619f32651 Merge pull request #1447 from kaitranntt/codex/fix-pid-only-proxy-cleanup-issue
fix(proxy): load pid-only profile daemon state
2026-05-30 15:45:50 -04:00
Kai (Tam Nhu) TranandGitHub 7b1e6cd209 Merge pull request #1449 from kaitranntt/codex/fix-gemini-tooltip-rendering-bug
fix(ui): preserve Gemini tier fallback without entitlement
2026-05-30 15:45:44 -04:00
Kai (Tam Nhu) TranandGitHub 1333407f54 Merge pull request #1456 from kaitranntt/codex/fix-broken-symlink-handling-in-plugin-setup
fix(management): skip broken shared plugin entries
2026-05-30 15:45:37 -04:00
Tam Nhu Tran 79379a25fe style: format email fallback parsing changes 2026-05-30 15:44:45 -04:00
Tam Nhu Tran f93cb36da6 fix: surface cleanup directory read errors 2026-05-30 15:40:31 -04:00