)]}'
{
  "commit": "990b414079ecdac0431ea43817275d88259e803c",
  "tree": "4f474257e079550af135ab544a53603880b840c0",
  "parents": [
    "713a241c6a67a98bebe07db388a53bd8a8354795"
  ],
  "author": {
    "name": "Steve Golton",
    "email": "stevegolton@google.com",
    "time": "Thu Sep 03 11:48:32 2026 +0100"
  },
  "committer": {
    "name": "Steve Golton",
    "email": "stevegolton@google.com",
    "time": "Tue Oct 06 14:38:51 2026 +0100"
  },
  "message": "ui: Don\u0027t swallow errors in AsyncMemo compute functions\n\nPreviously, when an AsyncMemo compute() task failed, the error was\nstored and re-thrown from the next use() call with the same key, and\nAtomicTaskQueue additionally caught and console.error\u0027d task failures.\nSince use() is called from render loops and most callers don\u0027t catch,\nthis crashed the render loop, which prevented the error dialog from\nbeing shown.\n\nNow a compute() failure is cached against its key in place of data and\nthen re-thrown out of the task queue (which no longer catches), so it\nsurfaces as an unhandled promise rejection and is reported by the\nglobal error dialog. use() never throws a compute error. The failed\nkey stays isPending: true with no data for backward compatibility, and\nthe thrown value is exposed as an optional `error: unknown` on the\npending result. Like data, the cached error is not recomputed until\ninvalidate() is called or the key changes; it is never returned for a\ndifferent key or used as stale data via retainOn. Errors from\nsuperseded (cancelled) tasks are dropped.\n\nschedule() now returns the promise for the task it starts so tests can\nobserve the rejection.\n\nUpdates the Memscope process overview, which relied on use() throwing\nto show an inline error, to read result.error instead.\n\nAdds unit tests for the new behavior.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "592775ca519d53419befe08bd3db5b4090a9c788",
      "old_mode": 33188,
      "old_path": "ui/src/base/async_memo.ts",
      "new_id": "5ade07a77b87d5965b9d65e668f1308492f982d2",
      "new_mode": 33188,
      "new_path": "ui/src/base/async_memo.ts"
    },
    {
      "type": "modify",
      "old_id": "93087163919a92b6c2a4c4941629c7cd10b456c4",
      "old_mode": 33188,
      "old_path": "ui/src/base/async_memo_unittest.ts",
      "new_id": "e50f8a30c3c04cce8f499ea622fda8661344d03d",
      "new_mode": 33188,
      "new_path": "ui/src/base/async_memo_unittest.ts"
    },
    {
      "type": "modify",
      "old_id": "5ca769971676c19aad4c911f357cbb86e706348b",
      "old_mode": 33188,
      "old_path": "ui/src/plugins/dev.perfetto.Memscope/views/landing_page/proc_mem_overview.ts",
      "new_id": "0ce8c23fbc2c734b22b054e9e9011258ab55cb94",
      "new_mode": 33188,
      "new_path": "ui/src/plugins/dev.perfetto.Memscope/views/landing_page/proc_mem_overview.ts"
    }
  ]
}
