Files
multica/server
Bohan-J 2ee5aa62a3 fix(daemon): skip disk-usage status resolution when nothing renders it
Review follow-up on #6270.

The --by-workspace table has no STATUS column, but the CLI resolved
statuses unconditionally. With credentials on disk and an unreachable
server that cost a full timeout before printing a purely local report —
and --all-profiles paid it once per root, serially — then warned about a
column the output does not contain. Gate resolution on whether task rows
are actually rendered; JSON keeps resolving because it always carries the
task array.

Also correct two contract statements that the .git change had made
false: the command's Long help still claimed 'The walk skips .git', and
ScanDiskUsage's doc comment still claimed it never enters .git. Both now
state the real rule (counted toward the total, never toward the artifact
subset, symlinks still never followed), and the help now says STATUS
needs the network and is left blank when it cannot be reached.

Adds the CLI-level regression tests the wiring was missing: the
by-workspace table makes no request, the per-task table resolves and
renders the status, a failing server still exits 0 with valid JSON on
stdout, and --all-profiles resolves each root with its own profile's
token. Verified the no-request test fails when the gate is removed.

Co-authored-by: multica-agent <github@multica.ai>
2026-08-03 13:27:56 +08:00
..