Skip to content

feat: move trace emoji from storage to rendering - #13072

Merged
kim-em merged 2 commits into
masterfrom
feat/trace-emoji-at-render
Jun 11, 2026
Merged

kim-em merged 2 commits into
masterfrom
feat/trace-emoji-at-render

Conversation

@kim-em

@kim-em kim-em commented Mar 23, 2026

Copy link
Copy Markdown
Collaborator

This PR moves the status emoji from the stored trace header to the rendering layer. withTraceNode/withTraceNodeBefore no longer prepend TraceResult.toEmoji to the header MessageData; instead, formatAux and InteractiveDiagnostic prepend it when rendering. TraceResult.toEmoji is moved from Lean.Util.Trace to Lean.Message (next to the TraceResult definition) 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

@kim-em
kim-em requested a review from Vtec234 as a code owner March 23, 2026 23:46
@kim-em kim-em added changelog-language Language features and metaprograms awaiting-review Waiting for someone to review the PR labels Mar 24, 2026
@github-actions github-actions Bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Mar 24, 2026
@mathlib-lean-pr-testing

Copy link
Copy Markdown

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase e0de32ad488af9c8949b8d88cebe800a16c83cf2 --onto 4bf7fa7447eea00cecba8327bb9c9e5f4485f0a7. You can force Mathlib CI using the force-mathlib-ci label. (2026-03-24 01:16:15)

@leanprover-bot

Copy link
Copy Markdown
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI will not be attempted unless your PR branches off the nightly-with-manual branch. Try git rebase e0de32ad488af9c8949b8d88cebe800a16c83cf2 --onto cfa8c5a036d6990635c6ec50b02d0e806995cec3. You can force reference manual CI using the force-manual-ci label. (2026-03-24 01:16:16)

@Kha Kha added awaiting-author Waiting for PR author to address issues and removed awaiting-review Waiting for someone to review the PR labels Jun 9, 2026
kim-em and others added 2 commits June 11, 2026 11:28
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]>
@kim-em
kim-em force-pushed the feat/trace-emoji-at-render branch from 464bc9b to d09b480 Compare June 11, 2026 11:35
@kim-em kim-em removed the awaiting-author Waiting for PR author to address issues label Jun 11, 2026
@kim-em
kim-em enabled auto-merge June 11, 2026 11:35
@kim-em
kim-em added this pull request to the merge queue Jun 11, 2026
Merged via the queue into master with commit 7bb3fe8 Jun 11, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-language Language features and metaprograms toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: don't bake emoji into trace header now that TraceData.result? exists

5 participants