Public: anyone can read this; the crew can change it.
/games says real uptime, memory and CPU, from the cloud tree's containers #17743
Merged 15h 19m ago, live in production
"up since" on /games was when the container was made, so a restart never moved it. The box's page, a server's own page (and its stream) and the terminal now say one line from containersIn, the function behind the cloud tree: "900 MiB of 2.0 GiB · 12.5% CPU · up 3 hours".
-
Reviews
Changes requested — before the latest pushSecurity reads clean: containersIn keeps the per-service viewer gate, the image stays owner-only and is not in
brief, and the output is escaped (html template on the row, textContent on the live line). The MCP tool no longer sendsstartedAtand has a test. Docs are in docs/features/games.md, not README.One change to make: the server page's figures line leaves a gap that shifts the page. See the line comment. The design bar is no layout shift.
Smaller, no need to block on them: in src/tui/screens/games.ts the
.replace(/ · $/, "")patch on the secondary line shows the join is built by hand. Build the parts as an array and join them with " · " instead.ApprovedApproved. The earlier ask was that the figures line always says something so the page stays put; that is met.
figuresOfreturns "not running: no memory or CPU to show" or "memory, CPU and uptime not known" and feeds the page, its stream and the terminal. The test runs one open stream through running, stopped, started and silent. The role filter incontainersInis unchanged, so a viewer still sees only the servers their role covers. The MCP list now dropsstartedAtand keepsupSince, which is what the issue asked for. Web and terminal show the same words,docs/features/games.mdis updated, and each added behaviour has a test.Non-blocking: the longest line ("... · up less than a minute") may wrap to two rows at 390 px for the first minute after a start, as the builder says. Check it in a browser when convenient.
Non-blocking: the gate cannot match
Looks: /games/<box>/<server>to a page inapp.looks. Add a real nearby page toapp.looks, or use aNo look:line. -
Checks
shipped production is serving it deploy 9d6fa9d
-
History
- A server's figures line always says something, so the page stays put (#17532) ee1ae6f
- Merge main, which has #17731 as one commit, into games-up-since 7f02fc0
- A container's limits and start time are shown in the cloud tree (#17731) 66aac7a
- The backup holds recipes, archived forges' records and the routes table (#17723) 079ae5c
- Merge commit 'e94a03f0dd4874e3f11db45ba35645555bd0b2c3' into sold/games-up-since bc1f982
- Merge the current base into container-limits e94a03f
- Merge pull request #17737 from sold/aws-date e6e7f0f
- A browser test loads the owner's home at 375 px and fails on any sideways scroll (#16731) 7cefc8d
- Merge pull request #17720 from sold/leaf-editor-1 423c8d4
- An EC2 instance's date is its first launch, and a bucket's says it may be its last change (#17532) 321a98d
- Merge remote-tracking branch 'origin/main' into sold/games-up-since 49434e6
- The game agent reads a CPU limit set as a quota too (#17532) a02fd42
- Merge branch 'sold/container-limits' into sold/games-up-since 0187b3a
- The splice's test has its module's name, and no wall-clock check f57a3af
- The games tool no longer answers when a container was made (#17532) 4bf6c2f
- A game server's own page says its memory, CPU and uptime (#17532) bad8849
- A change stream says which stream it is, so a client knows when its numbers started again (#17736) 40fffab
- Merge pull request #17735 from sold/leaf-table-1 3a50184
- Games: the forge's AutoStopper is pinned, and its plan says what happens to the old one (#17734) 72e511d
- Merge branch 'sold/container-limits' into sold/games-up-since 519daf1
3 earlier comments
7f02fc017 joins main 66aac7a79, which holds #17731 as one commit. It was merged from the branch head that commit came from, with nothing resolved by hand. The tests named above ran on bc1f982ec; none were run again on this merge.
🤖 Generated with Claude Code
<!-- look-pages 7f02fc0174bd --> Look pages for 7f02fc0, from the gate:
look pages (none): this pull changes src/web/pages/games.ts but the forge could not trace the route of /, /docs, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
ee1ae6f93 answers the review. The figures line always says something: "not running: no memory or CPU to show" for a stopped server, "memory, CPU and uptime not known" for one the box no longer names. One function (figuresOf) gives it to the page, its stream and the terminal, and the test goes from running to stopped to running over one open stream. The terminal's second line is joined from an array.
Ran on this head: tsc, 13 test files (160 pass, 0 fail), the gate. Not run: the full suite, a browser, 390 px. From the text's size, the longest usual line ("… · up less than a minute") is at the edge at 390 px and may take two rows for the first minute after a start. The Looks line names /games/<box>/<server>; the gate notes that no /games page is in app.looks.
🤖 Generated with Claude Code
<!-- look-pages ee1ae6f93532 --> Look pages for ee1ae6f, from the gate:
look pages (none): "Looks: /games/<box>/<server>" is not a page of app.looks in forge.json; this pull changes src/web/pages/games.ts but the forge could not trace the route of /, /docs, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
"up since" on /games was when the container was made, so a restart never moved it. The box's page, a server's own page (and its stream) and the terminal now say one line from
containersIn, the function behind the cloud tree: "900 MiB of 2.0 GiB · 12.5% CPU · up 3 hours". A box that is silent for two minutes says "memory, CPU and uptime not known", and a server that is not running shows no figures. The games tool answersupSinceand no longerstartedAt; the column and the sync's field stay. Part of #17532.Looks: /games/<box>/<server>
Ran on this head: tsc, 15 test files (282 pass, 0 fail), the gate. Not run: the full suite, a browser, 390 px, real Docker.
Try: /games, open a box, then a server; in the terminal, open a server and press tab twice.
🤖 Generated with Claude Code