Skip to content

cua-engine (Linux) wire.rs: escape U+2028/U+2029 in JSONL lines (ship with 0.4.5) #572

Done

Description

@SSFSKIM

cua-engine (Linux): escape U+2028/U+2029 in every JSONL line wire.rs writes (ship with 0.4.5)

From #571's review (#565, ruling 1192). native/linux-engine wire.rs to_line() writes U+2028 (LS) and U+2029 (PS) raw inside JSON strings. Node 24+ readline splits a line at both, so a client reading the engine's output with readline cuts a message in two and drops it. That is #565's hang. cua's own client reads LF-only after #571, so only third-party readers are affected. No engine release is cut just for this; it ships in 0.4.5, alongside #512.

Done when

  • Every JSONL line the engine writes escapes LS and PS as 
 / 
. The JSON value is unchanged.
  • A test puts an AT-SPI name containing LS through the engine and reads it with a Node 24+ readline reader, one line, value intact.

Relates #565, #571, #512.

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P2
    on Nov 24, 2026
  2. removed
    status:ready-for-implementer
    on Nov 24, 2026
  3. SSFSKIM commented on Nov 24, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #585 (cua 0.29.21, linux-engine 0.4.5)

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

    bugpriority:P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions