Skip to content

log.debug builds its message on every OSC title even when tracing is off #176

Description

@devsuitup

main.js evaluates codePoints(payload, 1) and builds the template string on every OSC title change, whether or not the trace is armed. Titles change on every spinner frame, so this runs constantly.

Found by a source scan that replaced a zero-cost test which could not have caught it — the old test only collected the guard's own line, so work hoisted above the guard was never evaluated. It was proving a property of the language rather than of this code.

Pre-existing, pinned by that scan so a new one cannot pass unnoticed.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions