• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lsm / neokai / 27226163813
82%

Build:
DEFAULT BRANCH: dev
Ran 09 Jun 2026 06:10PM UTC
Jobs 28
Files 593
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Jun 2026 06:09PM UTC coverage: 82.262% (+0.04%) from 82.22%
27226163813

push

github

web-flow
feat: alias Anthropic 1M model IDs for Codex to prevent premature prompt-too-long (#2086)

* feat: alias Anthropic 1M model IDs for Codex to prevent premature prompt-too-long

The Claude Agent SDK has a hard-coded model database. When it sees unknown
Codex IDs (gpt-5.5, gpt-5.3-codex, etc.) it falls back to ~200k context and
rejects requests at ~175k tokens — before NeoKai's compaction at 231k fires.

Fix: present Anthropic model IDs with known large context windows to the SDK:
- claude-opus-4-20250918 (1M context) for frontier models
- claude-sonnet-4-20250514 (200k context) for mini models

The bridge then maps these Anthropic IDs back to real Codex IDs via
modelAliases before forwarding to OpenAI.

Changes:
- codex-models.ts: add CODEX_TO_SDK_ANTHROPIC_MODEL and
  SDK_ANTHROPIC_TO_CODEX_MODEL mappings
- anthropic-to-codex-bridge-provider.ts: use Anthropic IDs in env vars,
  translateModelIdForSdk, modelAliases, and bridge models list
- tests: update assertions to match new Anthropic ID behavior

* fix: use SDK-recognized Opus ID and add per-session model override

Review feedback:
- Change Anthropic Opus ID from claude-opus-4-20250918 (unrecognized by
  SDK 0.2.141) to claude-opus-4-1-20250805 (known by current SDK).
- Add per-session model alias override via setSessionModelConfig() on the
  bridge server so the originally-selected Codex model is preserved upstream.
  Without this, gpt-5.3-codex and gpt-5.4 collapse to gpt-5.5 because they
  share the same Anthropic SDK alias.
- Update stale comment in context-manager.test.ts.
- Add test verifying Anthropic entries in responsesBridgeModels().
- Add test verifying per-session model override in bridge server.

* fix: key session model overrides by (sessionId, aliasModelId)

Previous override was keyed by sessionId alone, causing two bugs:
1. P2: Override applied to ALL requests in a session regardless of
   incoming model. Haiku/sonnet calls from SDK sub-agents were
   incorrectly rewritten to the se... (continued)

10123 of 14808 branches covered (68.36%)

Branch coverage included in aggregate %.

64 of 69 new or added lines in 3 files covered. (92.75%)

1 existing line in 1 file now uncovered.

86924 of 103165 relevant lines covered (84.26%)

291.47 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
90.32
-0.31% packages/daemon/src/lib/providers/openai-responses-bridge/server.ts

Coverage Regressions

Lines Coverage ∆ File
1
76.1
-0.52% packages/web/src/components/MessageInput.tsx
Jobs
ID Job ID Ran Files Coverage
1 daemon-5-space-runtime-b - 27226163813.1 09 Jun 2026 06:11PM UTC 173
45.93
GitHub Action Run
2 daemon-4-space-migrations-b - 27226163813.2 09 Jun 2026 06:11PM UTC 69
39.37
GitHub Action Run
3 daemon-online-coordinator - 27226163813.3 09 Jun 2026 06:10PM UTC 331
7.73
GitHub Action Run
4 daemon-online-rpc-2 - 27226163813.4 09 Jun 2026 06:12PM UTC 342
23.13
GitHub Action Run
5 daemon-online-mcp - 27226163813.5 09 Jun 2026 06:10PM UTC 342
18.47
GitHub Action Run
6 daemon-online-convo - 27226163813.6 09 Jun 2026 06:11PM UTC 342
21.96
GitHub Action Run
7 daemon-online-rpc-3 - 27226163813.7 09 Jun 2026 06:11PM UTC 342
19.65
GitHub Action Run
8 daemon-5-space-runtime-a - 27226163813.8 09 Jun 2026 06:10PM UTC 121
40.08
GitHub Action Run
9 daemon-online-git - 27226163813.9 09 Jun 2026 06:11PM UTC 342
19.06
GitHub Action Run
10 daemon-online-space-2 - 27226163813.10 09 Jun 2026 06:12PM UTC 342
32.02
GitHub Action Run
11 daemon-online-rewind-2 - 27226163813.11 09 Jun 2026 06:11PM UTC 342
22.62
GitHub Action Run
12 web - 27226163813.12 09 Jun 2026 06:12PM UTC 240
73.69
GitHub Action Run
13 daemon-online-features-1 - 27226163813.13 09 Jun 2026 06:11PM UTC 342
22.79
GitHub Action Run
14 daemon-online-rewind-1 - 27226163813.14 09 Jun 2026 06:12PM UTC 342
22.2
GitHub Action Run
15 daemon-4-space-storage - 27226163813.15 09 Jun 2026 06:11PM UTC 155
55.67
GitHub Action Run
16 daemon-online-space-1 - 27226163813.16 09 Jun 2026 06:11PM UTC 342
33.19
GitHub Action Run
17 daemon-online-rpc-4 - 27226163813.17 09 Jun 2026 06:12PM UTC 342
22.98
GitHub Action Run
18 daemon-online-features-2 - 27226163813.18 09 Jun 2026 06:11PM UTC 342
22.42
GitHub Action Run
19 daemon-1-core - 27226163813.19 09 Jun 2026 06:11PM UTC 349
35.45
GitHub Action Run
20 daemon-5-space-agent-other - 27226163813.20 09 Jun 2026 06:11PM UTC 267
27.27
GitHub Action Run
21 daemon-online-websocket - 27226163813.21 09 Jun 2026 06:10PM UTC 342
18.23
GitHub Action Run
22 daemon-online-components - 27226163813.22 09 Jun 2026 06:11PM UTC 342
18.13
GitHub Action Run
23 daemon-0-shared-handlers-workflow - 27226163813.23 09 Jun 2026 06:11PM UTC 170
63.4
GitHub Action Run
24 daemon-4-space-migrations-a - 27226163813.24 09 Jun 2026 06:11PM UTC 49
56.98
GitHub Action Run
25 daemon-online-agent-sdk - 27226163813.25 09 Jun 2026 06:11PM UTC 342
22.06
GitHub Action Run
26 daemon-online-sdk - 27226163813.26 09 Jun 2026 06:11PM UTC 342
22.07
GitHub Action Run
27 daemon-online-rpc-1 - 27226163813.27 09 Jun 2026 06:11PM UTC 342
19.28
GitHub Action Run
28 daemon-online-lifecycle - 27226163813.28 09 Jun 2026 06:11PM UTC 342
22.44
GitHub Action Run
Source Files on build 27226163813
  • Tree
  • List 593
  • Changed 7
  • Source Changed 3
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #27226163813
  • 66a81f09 on github
  • Prev Build on dev (#27183148114)
  • Next Build on dev (#27251953527)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc