Repository navigation
fix(minimald): log the box name plainly in shared-port hand-over lines - #2308
Merged
norrietaylor merged 2 commits intoOct 18, 2026
Merged
Conversation
Four log sites in box_actor.rs logged the box name with Rust Debug
formatting (name=Some("n2-a8")), which defeats the greps a diagnostics
bundle is written against and diverges from the session_name=<plain>
convention used by every sibling line. Render the name through
as_deref().unwrap_or("-") under the session_name field instead,
matching the ANONYMOUS_SESSION idiom in rpc.rs.
Tests: pin the rendered hand-over info line and the refused-report
warn line to session_name=<plain>.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
The shared-port hand-over lines and the session-start network line now
fall back to ANONYMOUS_SESSION ("<anonymous>"), the placeholder every
other session_name line uses. The refused host-address create line
renders session_name plainly instead of as a Debug-formatted Option.
Member
|
/review |
Contributor
|
Approved: no findings at Nothing to do. Clobber: none: |
norrietaylor
approved these changes
Oct 18, 2026
Member
There was a problem hiding this comment.
Approved on ARCH PASS at a34efbf.
norrietaylor
deleted the
inbox-patch/box-name-debug-log-be1fc05f6de26832
branch
October 18, 2026 09:40
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.
Routing-Key: inbox-route/I_kwDOSUhdos8AAAABX3vU2w
Four log sites in
crates/minimald/src/box_actor.rslogged the box name with Rust Debug formatting (name=Some("n2-a8")) instead of the plain name, defeating the greps a diagnostics bundle is written against and diverging from thesession_name=<plain>convention every sibling line uses.They now render the name via
record.name.as_deref().unwrap_or(crate::rpc::ANONYMOUS_SESSION)under thesession_namefield, so an unnamed box logs<anonymous>like every othersession_nameline. The refused host-address create line inbox_manager.rshad the same Debug rendering (session_name=Some(..)) and now renders it plainly too. Tests pin the rendered hand-over info line, the refused-report warn line, and the refused-create line.Verification
cargo fmt --all --check— passcargo clippy --workspace --all-targets --locked -- -D warnings— passcargo test --locked -p minimald— 999 passed, 11 failed; all 11 fail identically on unmodifiedmainin this container (verified viagit stash+ rerun: same 11 tests fail on pristine main, pre-existing cross-test log-capture pollution, not caused by this change). Both tests covering this fix pass in isolation and in the full suite run.Summary by CodeRabbit
-when no name is set.