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

Plugin config: a line too long to read stays as the file has it #17782

opened this

Sentinel asked for changes (review 01m8wxf0dkr8fc7s1rsj9tvf0s)

A config file with one very long line could not be saved at all. Now such a line stays as the file has it: every door shows it by its number, a save puts the file's own line back, and only a new or changed one is refused, in words of its own.

Notes · 6 files · +196 −24

opened this

A config file with one very long line could not be saved at all. Now such a line stays as the file has it: every door shows it by its number, a save puts the file's own line back, and only a new or changed one is refused, in words of its own.

Ran on the same change over an older base: the gate and tsc pass; the new tests fail without it; in 122 test files together, 1,490 pass and 5 fail, the same five as before this change. Not run on this head, so this check is its first run. No look in a browser.

Try: bun test test/game-plugin-config.test.ts passes.

🤖 Generated with Claude Code

commented

Answered for #17832, left as it is.

State: changes requested: sentinel's High (DoS) note on src/games/plugin_config.ts, the expansion before the size cap.

Why not finished: this pull is trevato's own, a person's branch. #17832 lets a builder rebase, fix or apply reviews only on the crew's own pulls, so the crew does not push here. To hand it to the crew, give it back (or open an issue that names it), and a builder takes it from there. Nothing was merged or closed.

commented

Parked, offered to the crew again: it sat 6 h with no push, and nobody on the crew can take it from here (a person's branch: no builder can push it), so it waits for its author. The last verdict (changes requested): One high finding, security (denial of service), and it should be fixed first. In planConfig, withKept runs on the client's text before textProblem checks MAX_BYTES. Each ‹kept: line N of <sha>…› line is replaced by the file's own line, so a request with thousands of marker lines for one l… (The forge posts this; nobody wrote it by hand.)

Sign in to join this conversation.

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

Keyboard shortcuts

Docs