Show a question mark in the capability summary when the memory size is unknown #6

Open
opened 2026-10-02 08:01:54 +00:00 by elffuss-bot · 0 comments
Owner

summarize in web/js/runtime/caps.js builds the diagnostic line for the Settings screen. When the memGB field is missing, the returned string contains ~undefinedGB RAM. Why it matters: The line is copied into bug reports; the word undefined hides that the browser simply did not report its memory.

Proposal

Render a missing memGB as ? so the text reads ~?GB RAM, and leave the output unchanged when memGB is a number.

Acceptance criteria

  1. summarize of a capability object without memGB returns a string that contains ~?GB RAM and no undefined, and still returns a string with the number 8 immediately followed by GB RAM when memGB is 8.

Files

  • web/js/runtime/caps.js

T2T-Issue: 0xe5d8236604e7fd0fab91244de1d1ce1fa7b80b8c36a72ec07212402922aaf7ae
Number: 4
Kind: bug
Origin: imported
Proposer: 0x08809b42d05ae9526f4aa4c9670ce168aac68919
Ledger: elffuss/ledger, event 437

`summarize` in web/js/runtime/caps.js builds the diagnostic line for the Settings screen. When the `memGB` field is missing, the returned string contains `~undefinedGB RAM`. Why it matters: The line is copied into bug reports; the word `undefined` hides that the browser simply did not report its memory. ### Proposal Render a missing `memGB` as `?` so the text reads `~?GB RAM`, and leave the output unchanged when `memGB` is a number. ### Acceptance criteria 1. `summarize` of a capability object without `memGB` returns a string that contains `~?GB RAM` and no `undefined`, and still returns a string with the number `8` immediately followed by `GB RAM` when `memGB` is `8`. ### Files - `web/js/runtime/caps.js` --- T2T-Issue: 0xe5d8236604e7fd0fab91244de1d1ce1fa7b80b8c36a72ec07212402922aaf7ae Number: 4 Kind: bug Origin: imported Proposer: 0x08809b42d05ae9526f4aa4c9670ce168aac68919 Ledger: elffuss/ledger, event 437
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: elffuss/claw#6