Skip to content

serve: engine default still said glm after the rename — direct invocation broken on a clean checkout#526

Merged
JustVugg merged 1 commit into
devfrom
fix/gateway-engine-default
Jul 22, 2026
Merged

serve: engine default still said glm after the rename — direct invocation broken on a clean checkout#526
JustVugg merged 1 commit into
devfrom
fix/gateway-engine-default

Conversation

@JustVugg

Copy link
Copy Markdown
Owner

Noticed by @RDouglasSharp in passing while debugging #488, and it reproduces: python3 openai_server.py --model <dir> looks for a binary named glm beside itself, but since #391 the build produces colibri. It only seemed to work for those of us with a stale glm left over from an older build — on a clean checkout the gateway cannot find its engine.

coli serve was unaffected (the launcher resolves the engine itself and passes --engine), which is why CI never caught it.

Fix: resolve by probing colibri / colibri.exe first, falling back to glm / glm.exe — the same order the coli launcher uses, so old trees keep starting. Verified by moving the stale glm out of the way: resolves to colibri, engine launches. Python suite green (149).

Thanks @RDouglasSharp — reporting a second bug you weren't even looking for is appreciated.

🤖 Generated with Claude Code

python3 openai_server.py --model <dir> looked for a binary named 'glm' next
to itself. Since #391 the build produces 'colibri', so direct invocation was
broken on any clean checkout -- it only appeared to work in trees that still
had a stale glm from an older build. Spotted by @RDouglasSharp while working
on #488.

Resolve the engine by probing colibri / colibri.exe first and falling back to
glm / glm.exe, the same order the coli launcher uses, so old trees keep
starting. Verified by removing the stale glm and running the gateway: it
resolves to colibri and the engine launches.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@JustVugg
JustVugg merged commit 9baae9b into dev Jul 22, 2026
9 checks passed
pull Bot pushed a commit to danielabelski/colibri that referenced this pull request Jul 22, 2026
v1.1.0 trips Microsoft Defender on Windows, and the cause was ours: 107 KB
of zeros in .data (JustVugg#527/JustVugg#532). This gets the fix out rather than leaving
every new Windows download to hit the same alert.

Also carries the Anthropic /v1/messages endpoint (JustVugg#343), the gateway engine
default fix (JustVugg#526), release checksums (JustVugg#530), and the Get-started docs
rewrite (JustVugg#521).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@JustVugg
JustVugg deleted the fix/gateway-engine-default branch July 24, 2026 06:53
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.

1 participant