{
  "task": "Native session title InvalidArgument repair",
  "date": "2026-10-17",
  "trigger": "Raw multiline/control-bearing prompt or saved title enters NativeFrontend title command. OpenTUI0.6.6 rejects LF, CR, TAB and terminal controls with ot_session_control failed: InvalidArgument.",
  "operator_report": "The error text matches the independently reproduced native error. The preceding operator action/version is still unknown; no exact host reproduction is claimed.",
  "repair": "Sanitize at the last application-owned boundary before renderer.setTerminalTitle: remove terminal escapes, collapse control/whitespace, truncate complete UTF-8 characters within4091bytes. Preserve all other controls/rendering behavior.",
  "tests": {
    "node": "22.22.1",
    "bun": "1.3.14",
    "opentui": "0.6.6",
    "native_direct": {
      "ordinary_title": "accepted",
      "raw_control_titles_rejected": 4,
      "sanitized_title_cases_accepted": 6,
      "native_errors_after_fix": 0,
      "captured_stderr": "empty"
    },
    "related_suites": "Header presentation2, cursor defaults1, modal lifecycle1 and sidebar divider1 passed. Final corrected titlefixture1 reran with empty stderr.",
    "source_noEmit": "pass",
    "logs": [
      "/tmp/omnius-title-final-test-20261017.log",
      "/tmp/omnius-title-core-direct-20261017.log",
      "/tmp/omnius-title-noemit-20261017.log"
    ]
  },
  "scope": "Source-only. No inference, package publication, host installation, daemon, tray or GPU workload.",
  "owned_source_sha256": {
    "packages/cli/src/tui/native/terminal-title.ts": "012970545a8215781e59536cf1111f65ff791b8f7eae24c2b5a562e7e6417033",
    "packages/cli/src/tui/native/components/frontend.ts": "14b42a5e5710816414dcca68bc890a1b7acd2cc8d3de4616e76e31b22be6f5ac",
    "packages/cli/tests/native-terminal-title.bun.ts": "3772a9ed18ca61a49f32212dfed6dc3a88b1c17a3a0c29163ba263e0a3886826",
    "packages/cli/tests/native-terminal-title.test.ts": "80d4ca796fefd7b66e7a69bc4a721b83d32f8d8f53a08c11847665bf5162462c"
  }
}
