feat(gateway): show provider and effort in runtime footer - #49300
Closed
intelege-ma wants to merge 1 commit into
Closed
feat(gateway): show provider and effort in runtime footer#49300intelege-ma wants to merge 1 commit into
intelege-ma wants to merge 1 commit into
Conversation
Collaborator
|
Duplicate of #17026 — the opt-in runtime-metadata footer ( |
Extend the existing opt-in runtime footer from #17026 with provider and reasoning-effort fields for adaptive/runtime observability. The footer mechanism, command, and off-by-default config already exist on main; this change only passes the additional runtime metadata through the existing footer path and renders it when configured.
intelege-ma
force-pushed
the
gateway-runtime-footer
branch
from
June 19, 2026 23:12
e014de7 to
a0b563b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extends the existing runtime metadata footer from #17026 to include provider and reasoning effort when those values are available.
This does not introduce the footer mechanism itself. The opt-in footer,
gateway/runtime_footer.py,build_footer_line(),/footer on|off, and the off-by-defaultdisplay.runtime_footer.enabledconfig already exist onmainfrom #17026.This PR adds two missing runtime fields to that existing footer:
providereffortExample when enabled with these fields:
Motivation
The existing footer shows model/context/cwd, but model alone is not enough to explain the actual runtime path in Hermes deployments where the same or similar model can be served through different providers/transports.
Provider and reasoning effort are useful for spotting:
Scope
This is intentionally a small extension of the existing footer:
Implementation
gateway/runtime_footer.py.effortfield rendered from resolved reasoning effort.providerandreasoning_effortthrough the existingagent_resultfooter path ingateway/run.py.agent.reasoning_configfirst, then falls back to config.Privacy and compatibility
The footer remains off by default.
Existing users who do not enable the footer see no behavior change. Users who enable it can still configure fields and omit
provider,effort, orcwdif they do not want those shown.No API keys, tokens, or secret values are included.
Tests
Clean branch from current
origin/main, one commit.Targeted footer tests:
Gateway-adjacent smoke suite:
Warnings are existing Slack
AsyncMockcoroutine warnings, not footer failures.Manual render smoke:
Static checks:
Added-lines security scan found no hardcoded secrets or shell/eval/deserialization/SQL-injection patterns.