Repository navigation
feat: move trace emoji from storage to rendering - #13072
Merged
Merged
Conversation
|
Mathlib CI status (docs):
|
Collaborator
|
Reference manual CI status:
|
mhuisi
approved these changes
Mar 24, 2026
Vtec234
approved these changes
Mar 24, 2026
withTraceNode and withTraceNodeBefore previously baked TraceResult.toEmoji into the header MessageData. Now that TraceData.result? exists (#12698), the emoji is redundant in the stored header. Move it to the rendering layer (formatAux, InteractiveDiagnostic) so programmatic consumers get clean headers without string manipulation. Rendered output is unchanged. Closes #13069 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
kim-em
force-pushed
the
feat/trace-emoji-at-render
branch
from
June 11, 2026 11:35
464bc9b to
d09b480
Compare
kim-em
enabled auto-merge
June 11, 2026 11:35
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.
This PR moves the status emoji from the stored trace header to the rendering layer.
withTraceNode/withTraceNodeBeforeno longer prependTraceResult.toEmojito the headerMessageData; instead,formatAuxandInteractiveDiagnosticprepend it when rendering.TraceResult.toEmojiis moved fromLean.Util.TracetoLean.Message(next to theTraceResultdefinition) so that both rendering paths can use it.Rendered output is unchanged. Programmatic consumers (e.g. mathlib's
#defeq_abuse) can now compare headers across trace runs without string manipulation.Closes #13069
🤖 Prepared with Claude Code