)]}'
{
  "commit": "37aaf08095add87b345bfc87d4aae4d2e95ed0fd",
  "tree": "b831c2e6f1701b0df480a88c6bf9d7bc633c8362",
  "parents": [
    "e01ea0e6d41c8235261d09d2847489ff298d1ed9"
  ],
  "author": {
    "name": "Philip Zeyliger",
    "email": "philip@bold.dev",
    "time": "Tue May 06 03:15:55 2025 +0000"
  },
  "committer": {
    "name": "Autoformatter",
    "email": "bot@sketch.dev",
    "time": "Tue May 06 03:28:19 2025 +0000"
  },
  "message": "Fix terminal not loading when first tabbed to.\n\nThe terminal for some reason, at least in Safari, thought it was\nreally small, so it would be hard to use until you resized your window.\nI got Claude, below, to make it lazily init when you tab to the\nterminal view, which is better anyway.\n\nImplement lazy initialization for sketch-terminal component\n\nInstead of initializing the terminal when the component is created (which causes sizing issues when the terminal isn\u0027t visible), this change defers initialization until the terminal tab is actually activated.\n\nThis solves the problem where the terminal was initialized with strange dimensions because:\n1. The terminal is now only initialized when its tab is visible\n2. We use a flag to track initialization state\n3. The resize handler only runs for initialized terminals\n\nThis approach is more efficient and avoids unnecessary initialization when the terminal isn\u0027t being used.\n\nCo-Authored-By: sketch \u003chello@sketch.dev\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4ffccfddf34712116746f56a317a42571c9d580f",
      "old_mode": 33188,
      "old_path": "webui/src/web-components/sketch-terminal.ts",
      "new_id": "b405657cc294dfa1fe0a6a15d2dcc1f6e59e9a05",
      "new_mode": 33188,
      "new_path": "webui/src/web-components/sketch-terminal.ts"
    }
  ]
}
