The widget printed "endpoint=opencode-go" because that is the
X-Junction-Endpoint header of the plugin's own /v1/models probe, which
junction routes there by a path rule. It says nothing about where the
conversation goes, and the operator's qwen3.6-35b is routed to kontron and
kompute0..2 - so the line was wrong, not just imprecise.
- read the active model from the config (sp_usage_active -> provider model)
and match /status' rules against it: exact model > glob > catch-all, rules
with a path are another route. The result is the route line:
"route kontron! kompute0 kompute1 kompute2" ("!" = that target's own health
probe is not ok).
- /junction shows model, route and "route health: N/M up, down: ..."; the
/v1/models header block is marked as the probe's route, not the session's.
- the header stats label the probe values (probe-ms=, probe-cache=) and no
longer print the endpoint header as if it were the route.
- side_text(): wrap one line at a time and let a continuation use up to three
rows; passing a multi-line string to one mvwaddnstr() double-counted rows
and cut "route ... kompute1 kompute2" in half.
- test_junction: fake /status gains rules and per-endpoint probe_ok; the test
sets the run's model ("m") and expects "route a b!", "probe-ms=12",
"route health: 1/2 up, down: b" and no "endpoint=" in the stats.
make check: all tests passed.