Public: anyone can read this; the crew can change it.
The shell refuses -f only where it follows, and a refused command is in its list #17792
Merged 6h 51m ago, live in production
docker inspect -f, docker ps -f name=x and docker compose -f file ps ran into "Following never ends". With docker, docker compose and kubectl, -f and --follow now count only after logs. A refused command is a block in the list, "Failed", with "Not sent to the box:" and why.
-
Reviews
Changes requested — before the latest pushThe refusal list and the kept-refused block do what the issue asks, and the tests cover both. One regression needs fixing before it lands.
Fix first:
docker exec hub tail -f /var/log/x,docker exec hub journalctl -fandkubectl exec pod -- tail -f xwere refused before. Now onlylogscounts as following, so they are queued and hang until the 30 s cap. That is a step back for the person typing. HavefollowsLogs(or the head check) also look at what runs insideexec/run: after the subcommand, atail/journalctlwith a follow flag is refused. Add tests fordocker exec hub tail -f x(refused) and the existingdocker exec hub ls logs -f(still runs).Also: the doc line says a refused command 'never reaches the audit', but its full text is now stored in
game_command(up to 1000 characters), the same place a secret typed in a command would sit. Say so in the doc line, or keep only the first word in the stored row.ApprovedClean. Owner check comes first in queueShell, so only the box's owner can store a refused row. The row is written with handed_at and done_at set, so the agent is never handed it. The text is capped at 1,000 characters. The audit event is not written for a refused command. The test shows the owner's page lists the text, another user's page does not, and the 30-day prune removes it. The doc line now says the forge keeps the text, secrets included, for 30 days. juniper's two points are already handled in this head:
followslooks inside exec, run, kubectl--andsh -c, with tests fordocker exec hub tail -f x(refused) anddocker exec hub ls logs -f(runs). Minor, not blocking:tail -Fand--follow=nameare still not refused, as before. The 30 s cap covers them. -
Checks
waiting merged; waiting for the forge to restart on it deploy a544da9
-
History
- The console refuses a follow inside exec, run and sh -c again de47b97
- The shell refuses -f only where it follows, and a refused command is in its list f1c0079
- A new repository takes one git process, not two: the reflog setting is written into its config (#17781) fb6f1c8
- Four child processes started with an empty environment also skip .env files (#17779) 789c4a8
- A snapshot's full collection is a named job, so a stall line says when it held the loop (#17780) dc59f97
- Merge pull request #17778 from sold/held-worlds 8d747cf
- Games: one list of what a player's game needs, with what those mods require (#17738) 89f7c82
- Merge pull request #17768 from sold/log-reader 5e9e073
- A test file that sets the pinned `net` gives it back, and pinned-ceiling starts clean (#17776) 1540995
- Merge pull request #17774 from sold/leaf-editor-9 eaeb462
- A held box says "held" for a world's import, restore and snapshot too (#17532) d33b316
- The hourly disk check sizes the data directory on a worker, not the serving thread (#17771) 449ec32
- unread-tables reads src/ in one pass, in its test and not at load (#17770) 705fd94
- Games: heal what is safe alone and say so: retry a stuck agent or a stuck wake, with a limit (#17621) 29bd32a
- The games page imports core/users.ts once 7f458f0
- Plugin config: Edit opens the file's own text, and a revert is planned from the history alone b1e38ef
- A deploy says where its name points before it moves it (#17741) ba85a0f
- Sentinel: memory-growth was degraded 12 minutes today: The forge's own memory is 3928 MiB, over twice its first-hour 1430 MiB and past the 2176 MiB more its database caches m… (#17764) a6e9305
- Merge remote-tracking branch 'origin/main' into sold/leaf-logs-2 0734f59
- A hold's end always brings the games up, and a failed look at the hold cannot empty a sync's diagnosis (#17761) b19b3da
docker inspect -f,docker ps -f name=xanddocker compose -f file psran into "Following never ends". With docker, docker compose and kubectl, -f and --follow now count only afterlogs. A refused command is a block in the list, "Failed", with "Not sent to the box:" and why. The box is never handed it.Ran on the vxrail, on this head: red first (14 fail on main's shell.ts and store.ts), then 79 pass, 0 fail; tsc, design-lint and the gate pass. Not run: the full suite, a real box, a look in a browser.
Part of #17151.
🤖 Generated with Claude Code