Repository navigation
Logs: typed text shown in full in a development build's terminal - #1925
Merged
Merged
Conversation
What a person wrote goes into a line through engine::sensitive::Sensitive: whole once a debug build's binary reveals it, its length everywhere else. A debug build's file keeps no line before a warning, so what it shows stays in the terminal. The launch copy's line names the copy, not its path. D35 changed first. Closes #1922 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BbVs5syDjY1sDvi7chZYW8
This was referenced Dec 6, 2026
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.
Closes #1922.
What changes
engine::sensitive::Sensitive: the one way for what a person wrote into a log line.Displayalone (noDebug):‹27 chars›until revealed,« … »whole once revealed.engine::sensitive::reveal()is called once, by the binary of a debug build, right after the log starts (logging::reveal_in_development). A release, the e2e flavour and every test leave it off:state::logged_tests(Logs: a test fails when typed text reaches a log line #1918) keeps guarding what a release writes, and journey 14 is untouched.Build::kept_before: 0 in debug, 200 in a release): what its terminal shows never reaches the disk. A release keeps its 200 lines; the e2e flavour files every level as before.Library copied: 2026-12-06_10-07-32, no longer the profile's path (which holds the person's home).CLAUDE.md's security line anddevnotes-security-review's checklist: aSensitivenever in awarnor anerror.Nothing uses
Sensitiveyet: the lines that do are #1923 (notes, folders, spaces) and #1924 (requests), stacked on this one.Checks run
cargo fmt --all --check,cargo clippy -p engine -p app -p ui --all-targets --all-features -- -D warnings.cargo test -p engine -p app: all pass, among themsensitive::tests(both branches, without touching the process's switch) andlogging::tests(16), witha_debug_build_files_its_warnings_without_the_lines_before_themnew; the tests of the lines before a warning and of the panic now run as a release.cargo test -p ui --lib logged_tests.node scripts/architecture-links.mjs,node --test "scripts/*.test.mjs"(81 pass).Generated by Claude Code