Skip to content

fix(web): strip hidden terminal strings from displayed tool evidence #700

Closed

Description

@outlier27-cell

Production-function reproduction

At latest origin/main 3cb2ecf, evidenceText(before + ESC P hidden ESC backslash + after) returns beforePhidden backslash after. The canonical shared sanitizeTerminalText on the same input returns beforeafter. Web evidence uses separate OSC/CSI regexes and then removes bare control characters, leaking DCS/PM/APC/SOS string bodies into visible tool output.

Value and scope

Terminal-owned hidden strings should not appear as ordinary command output in Web evidence. Reuse the existing shared sanitizer after the current bounded input slice. Preserve output byte/line bounds, ordinary Unicode and explicit truncation reporting; normalize tabs consistently with the canonical sanitizer. Do not claim this is a confirmed exploit or change execution/persisted evidence.

Evidence boundary and deduplication

The isolated Node probe imported both production functions; no model, private Session or installed runtime was used. All-state searches DCS evidence / DCS / evidence terminal sanitization found no equivalent Web correction. Merged PR 149 hardened Background Terminal output and supplied the reusable shared policy, but this Web function still uses the regex path. Claimed on independent fix/web-evidence-terminal-strings from latest origin/main, with actual projection regressions and full check/test planned.

Activity

  1. outlier27-cell commented on Oct 7, 2026

    @outlier27-cell
    ContributorAuthor

    Evidence record and validation boundary are in the branch docs/research record; targeted regression was red on origin/main and green after the fix. Full local Windows limitations are stated in the PR.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions