Repository navigation
fix(agent): stop --verbose log spam from HTTP/2 frame tracing - #559
Merged
Merged
Conversation
--verbose raised the root tracing level to debug, which also enabled h2's
per-frame DEBUG logging (Connection{peer=Server}: send frame=...) and
buried the Agent's own [grpc]/[stream] debug lines. Pin the transport
crates (h2, tonic, tower) to WARN so only their failures surface; an
explicit RUST_LOG still overrides the whole filter.
Also move the misplaced abort_all_sessions doc comment back onto its
function.
huichen
enabled auto-merge (squash)
September 12, 2026 02:02
This was referenced Sep 12, 2026
huichen
added a commit
that referenced
this pull request
Sep 12, 2026
#561) #559/#560 silenced h2 frame tracing and the three cursor/probe polls, but --verbose still fills up with the per-refresh request bursts of the desktop context panel (it polls every 1.5 s while a run is live): get_commands, list_providers, get_state, refresh_skills, get_session_entries and a dozen list_tool_calls in a row, plus list_models every 10 s. Widen the TRACE promotion from is_poller_command to is_background_command over a BACKGROUND_COMMANDS table covering those panel/catalog reloads; the test asserting every name is a real command keeps a typo from silently dead-coding a log line. rustls also joins the WARN-pinned transport targets: its 'Sending warning alert CloseNotify' DEBUG line comes from the log-compat debug! macro that tracing-subscriber bridges into tracing, so a plain target filter catches it. Envoy/other TLS handshake chatter is silenced the same way, while RUST_LOG still overrides the whole filter.
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.
Problem
future agent --verbosefloods the console with HTTP/2 frame tracing:default_log_filter()set the root level todebug, so--verbosealso turned on h2's per-frame DEBUG logs and buried the Agent's own[grpc]/[stream]lines. The Agent's own debug logs are already gated bystate.verbose; they never needed the global level.Change
--verbosestill sets the root level todebug, but the transport crates that log per-frame detail are pinned towarn:future-agent's tracing tree (cargo tree -i tracing:h2,hyper-util,tonic,tower);hyper-util/hyperhave nodebug!call sites, so they are omitted. h2 is the flood (8debug!sites, per frame),tower/toniconly add a handful.RUST_LOGstill wins entirely (try_from_default_env()is unchanged), so fullh2=debugdumps remain available on demand.warn/errorstill surface.info) behaviour is unchanged.abort_all_sessionsdoc comment back onto its function.Tests
cargo test -p future-agent verbose_default_filter— extends the existing test to asserth2/tonic/towerDEBUG is disabled whilefuture_agentDEBUG is still enabled in verbose mode.cargo fmt -p future-agent --check✅cargo clippy -p future-agent --all-targets -- -D warnings✅cargo test -p future-agent— 1705 passed; the 31 failures are pre-existing on cleanmainunder Windows (Unix-path assumptions insandbox::paths,rpc::prompt_helpers,sandbox::linux, …). Re-ran the same tests in themainworktree at3109ca37and they fail identically there.