Skip to content

feat: launcher max-output env channel (BILI_LAUNCHER_MODEL_MAX_OUTPUTS) - #973

Merged
ranxianglei merged 1 commit into
masterfrom
2026-09-19_launcher-max-outputs
Sep 19, 2026
Merged

ranxianglei merged 1 commit into
masterfrom
2026-09-19_launcher-max-outputs

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

Fixes #971

What

Closes the last runtime-info gap (#955/#956 covered native plugins; this covers pure-proxy launcher clients): the client's configured max output now travels the same launch-time env channel as the window map.

Matrix after this PR

Every path now reports model info: native plugins (headers + bootstrap POST), launcher-with-plugin (inherits the plugin), pure-proxy launcher (env channel: windows + max outputs).

Pre-flight

  • npm run typecheck
  • npm test 1911 tests / 1909 pass / 0 fail (2 E2E-gated skips)
  • npm run build
  • new tests: 10 unit (5 readers × shapes, scoped collect, env parse) + 2 e2e rank tests in tests/headroom-output-fallback.test.ts (launcher stands in at 80k → nudge; plugin headers 180k outrank launcher 10k)
  • 2 existing assertions updated: fixtures that always carried maxTokens now expect it parsed (tests/model-windows.test.ts)

@github-actions

github-actions Bot commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

📦 Built Package Artifact

Branch: 2026-09-19_launcher-max-outputs (0ddbe31)

Option A — Install from npm PR tag (recommended)

npm install -g billion-context@pr-973

Each push to this PR publishes a new version under the pr-973 npm tag.

Option B — Download artifact

  1. Download the artifact from the Actions run
  2. Extract the tarball and install:
tar xzf billion-context-pr973.tgz
npm install -g package

Install instructions are refreshed on each push.

Pure-proxy launcher clients now hand the proxy their configured per-model
max output alongside the window map:

- client-config: ModelWindow.maxOutput — codex model_max_output_tokens,
  pi/omp maxTokens, opencode limit.{context,output} (object shape now
  parsed), codebuddy maxOutputTokens; collectModelMaxOutputs()
- launcher: ensureProxyRunning({modelMaxOutputs}) → child env
  BILI_LAUNCHER_MODEL_MAX_OUTPUTS; instance-compat check extended
- server: parse/lookup + #924 headroom rank runtime-info (#955) >
  launcher env > configured > registry; instance file carries the map

Fixes #971
@ranxianglei
ranxianglei force-pushed the 2026-09-19_launcher-max-outputs branch from 6bcf29d to 0ddbe31 Compare September 19, 2026 01:25
@ranxianglei
ranxianglei merged commit 2d1d502 into master Sep 19, 2026
8 checks 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.

[launcher] BILI_LAUNCHER_MODEL_MAX_OUTPUTS — carry configured max output through the launcher env channel

1 participant