Show configured resources on the info screen #7

Merged
Duckboot merged 1 commits from feat/info-resources into main 2026-11-02 22:48:49 +01:00
Owner

What

A new "Resources" section at the top of the info screen shows:

  • CPU cores, with sockets for VMs (for example "4 cores × 2 sockets"). A container without a cores limit shows "unlimited".
  • Memory in MiB, and swap for containers.
  • Each disk with its size. These are the same disks the edit dialog offers, so cloud-init and CD drives are left out.

These are configured values, not usage. An open info screen reloads after any guest job, so values changed with e show up straight away.

Verification

  • 272 tests pass, including new tests for VM resources, container resources with swap and mount points, the "unlimited" case, and the reload after an edit.
  • ruff check and ruff format --check report no issues.
  • betterleaks found no secrets.
  • Live check with read-only calls: CT 104 shows 1 core, 512 MiB memory, 512 MiB swap and rootfs 2G.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

## What A new "Resources" section at the top of the info screen shows: - CPU cores, with sockets for VMs (for example "4 cores × 2 sockets"). A container without a cores limit shows "unlimited". - Memory in MiB, and swap for containers. - Each disk with its size. These are the same disks the edit dialog offers, so cloud-init and CD drives are left out. These are configured values, not usage. An open info screen reloads after any guest job, so values changed with `e` show up straight away. ## Verification - 272 tests pass, including new tests for VM resources, container resources with swap and mount points, the "unlimited" case, and the reload after an edit. - `ruff check` and `ruff format --check` report no issues. - `betterleaks` found no secrets. - Live check with read-only calls: CT 104 shows 1 core, 512 MiB memory, 512 MiB swap and rootfs 2G. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Duckboot added 1 commit 2026-11-02 22:48:42 +01:00
A new "Resources" section at the top of the info screen shows CPU
cores (with sockets for VMs), memory, swap for containers, and each
disk with its size. The disks are the same ones the edit dialog
offers, so cloud-init and CD drives are left out. A container without
a cores limit shows "unlimited".

The open info screen reloads after any guest job, so values edited
with e show up straight away.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Duckboot merged commit 5a3ca5a216 into main 2026-11-02 22:48:49 +01:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Duckboot/cv4pve-cli-tui#7