Public: anyone can read this; the crew can change it.

One place for every cloud: see, clean up, move, write (AWS, DigitalOcean, Hetzner, Cloudflare) #17548

opened this in answer to

Merged 15h 51m ago, live in production

A game server's Sleep setting now says that sleeping frees memory and the machine is still billed. That is the only part of #17532's new comment I built. The mc price comparison and the AWS role offer are not started.

Notes

opened this

A game server's Sleep setting now says that sleeping frees memory and the machine is still billed. That is the only part of #17532's new comment I built. The mc price comparison and the AWS role offer are not started.

  • What changed: the sentence is "Sleep frees the server's memory; the machine it runs on is still billed in full." It shows as its own line in the Sleep block on /games/<box>/<service>. In the terminal Games screen it is in the z key's help text and in the note after you choose sleep. The how-to in docs/features/games.md says it too. The text is one constant, STILL_BILLED in src/games/sleep.ts.
  • Tests and checks: the existing sleep test in test/game-sleep.test.ts now also checks that the page shows the sentence. That test, test/guide.test.ts and tsc pass, and bun scripts/design-lint.ts is clean. I did not run the full suite. The four checks the crew is refused for most often (as never, dead code, the /llms.txt byte budget, module-level state) don't apply to a one-sentence wording change.
  • What I did not do:
    • Phase 1 (#17532): the issue says it is being built from trevato's own session and asks that no second one be started. The mc comparison needs live vendor prices and latency measurements, and nothing may move without trevato's go.
    • AWS role (the comment's last item): the role the forge assumes with short-lived credentials, before anyone else is asked to connect AWS, is not started either. It writes to AWS, which the issue reserves for trevato's word.
  • To try it: open /games/<box>/<service> on the preview and read the Sleep block, or press z on the terminal Games screen.

Closes #17532

3 earlier comments
commented

<!-- look-pages 4052080f3e60 --> Look pages for 4052080, 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
commented

The look-pages feedback is addressed in a new commit, b40f0f85f, and pushed to the same branch. The gate now prints no rule or look complaint. I did not re-run the tests, because the new commit has no code change.

  • Look pages: the earlier commit had mangled the line (Looks: No look: …). The new commit carries a plain No look: one sentence added to the Sleep block of a game server page; no layout change. I didn't name a page with Looks: because the gate could not trace the route for games.ts.
  • Issue number: the new commit has a Direction: line ending in (#17532).
  • Other refusals: the as never and /llms.txt byte-budget items don't apply, because the change adds no test input and no /llms.txt text. The dead-code test is covered because the one new export, STILL_BILLED, is used by both the page and the terminal screen.

The pull is unchanged otherwise. It adds the sentence that Sleep frees memory and the machine is still billed, and leaves the mc price comparison and the AWS role offer unbuilt.

commented

Pull title and description: Sleep says the machine is still billed — part of #17532 (not "Closes"; the mc price comparison and the AWS role are not built here, so #17532 stays open). I can't edit the title or description from here, so a person needs to retitle the pull to that and change "Closes #17532" to "Part of #17532".

What changed

  • A game server's Sleep says Sleep frees memory and the machine is still billed. One constant, STILL_BILLED in src/games/sleep.ts, feeds the web page, the terminal note and docs/features/games.md.
  • The terminal z key label is back to "sleep when empty, or keep warm", so the 80-column key bar no longer wraps. The sentence now lives only in the note shown after choosing sleep.
  • New test in test/tui-games.test.ts: z on a warm server gives the note containing STILL_BILLED, and z again, back to warm, does not. I confirmed the first half fails without the suffix.
  • The test compose gains a velocity proxy service, because sleep needs one. It is a wider (200-column) terminal because the note is longer than 140 columns.

Not done

  • The note is cut off with "…" on a terminal narrower than about 150 columns, so the billing sentence won't show on a narrow one. I left the screen's note line as it is; making notes wrap would be a separate change.
  • tsc didn't run here (the gate says it needs installed dependencies), so the forge's check is the first run of it. The gate passes with 0 failures, and I ran only test/tui-games.test.ts, which passes.

Try it: open Games in the terminal, move to a server in a box that has a proxy, and press z. It says "sleeps when empty … Sleep frees the server's memory; the machine it runs on is still billed in full." Press z again and the note says "stays warm" with no billing sentence.

commented

I merged main into the branch and pushed it. tsc came back clean. The only conflict was the import block in src/web/pages/games.ts.

Conflict resolution: I kept both sides. main's new imports (commitServer, planRemoveServer, planServer, wishOn from presets.ts, plus proxyOf and WAKER) stay as they were. STILL_BILLED is added to the sleep.ts import so the Sleep sentence from this pull still renders.

Checks:

  • test/tui-games.test.ts, test/game-sleep.test.ts and test/games.test.ts pass (23 tests).
  • scripts/gate.ts --explain reports 0 failures.
  • I did not run the whole suite; the forge's check does that on push.
  • A Modrinth network call made during the tests was denied by the sandbox. Those tests passed anyway.

The pull is still titled and described as closing #17532, which it doesn't. It should be retitled "Sleep says the machine is still billed" and say "Part of #17532". I can't edit either from here.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs