Skip to content

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

Closed

Description

@kim-em

withTraceNode and withTraceNodeBefore bake TraceResult.toEmoji into the header MessageData before storing it in the trace tree. Now that #12698 added TraceData.result?, this is redundant — the emoji is reconstructible at render time.

This causes problems for programmatic consumers comparing headers across trace runs, since the same check gets different emoji prefixes depending on success/failure (e.g. mathlib's #defeq_abuse tactic).

Proposed fix: Remove the emoji prepend from withTraceNode/withTraceNodeBefore, and add it at the rendering sites (formatAux, InteractiveDiagnostic, Profiler). Rendered output is unchanged; stored headers become clean content. TraceData can't hold Option MessageData (defined before MessageData), so this is the only clean path.

Activity

  1. added 2 commits that reference this issue on Mar 23, 2026
    1f24a87
    4977461
  2. added
    P-medium
    on Jun 10, 2026
  3. added a commit that references this issue on Jun 11, 2026
    0c4dd79
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P-medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions