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

lsm / HyperNeo / 30711462055 / 16
83%
dev: 83%

Build:
DEFAULT BRANCH: dev
Ran 01 Aug 2026 06:01PM UTC
Files 48
Run time 1s
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

01 Aug 2026 05:57PM UTC coverage: 55.604% (-0.1%) from 55.727%
30711462055.16

push

github

web-flow
fix: infer provider from model for long-horizon agent sessions (#2264)

* fix: infer provider from model for long-horizon agent sessions

A LH/worker agent whose settings set `model` but left `provider` null ran
fine (provider inferred at query time) but was hard-blocked from switching
models with "Session has no provider configured" — even to the same model.

buildLongHorizonAgentSessionConfig and the regular long-term-agent branch
now infer the provider from the model (mirroring custom-agent.ts) when
agent.provider is unset. model-switch-handler additionally infers the
previous provider from the stored model instead of throwing, so stranded
sessions can switch immediately instead of waiting for a wake/refresh.

* test: add provider-inference regression tests for LH agent model switching

Covers buildLongHorizonAgentSessionConfig inference (kimi + non-kimi +
explicit-provider-wins + default fallback), the regular worker-agent
branch, refreshLongHorizonAgentSessionConfig self-heal (undefined → kimi),
and the model-switch-handler guard inferring the provider from the stored
model — including the kimi → kimi same-model case from the bug report.

* test: clear Claude Code session env vars in unit test setup

provider-service.ts snapshots ANTHROPIC_MODEL, ENABLE_TOOL_SEARCH, and
eight sibling behavior vars into module-level "user configured" constants
at import time, and applyEnvVarsToProcess preserves any process.env value
matching that snapshot. When unit tests run from inside a Claude Code
session (which exports these vars), the snapshot captures the session's
values and the env-clearing assertions in provider-service.test.ts fail —
e.g. ENABLE_TOOL_SEARCH stays 'false' instead of being deleted.

Delete these vars in tests/unit/setup.ts so the module snapshot is
undefined and unit tests are hermetic to the runner's environment,
matching what CI's clean runners already see.

* fix: pre-route bare glm/minimax aliases in inferProviderForModel

Review feed... (continued)

7080 of 12733 relevant lines covered (55.6%)

31.98 hits per line

Source Files on job daemon-4-space-migrations-b - 30711462055.16
  • Tree
  • List 48
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 30711462055
  • f3b4d7e5 on github
  • Prev Job for on dev (#30700606999.7)
  • Next Job for on dev (#30713719409.23)
  • 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