aboutsummaryrefslogtreecommitdiff
path: root/modules/test
diff options
context:
space:
mode:
authorAgando <roduccomm@gmail.com>2026-10-22 00:43:13 +0200
committerAgando <roduccomm@gmail.com>2026-10-22 00:43:24 +0200
commit14c3cb36a3b037111a9fbdf8ff6ea32ee62b3be1 (patch)
tree0802e16ee1fe2538bcf783c7a4c44e3c5f8ed5c1 /modules/test
parent0c45056c7c51daae9b99c9395b94196537c7d32d (diff)
fix(newos4): coreutils flags + loop-guard arg key, both found by the agent's live run (v4.6.49)
Agent session surfaced two real defects: 1. The A4 prompt told it to use grep -n / sed -n 'N,Mp' / wc -l / head -N — none of those flags parsed: grep treated '-n' as the pattern (6/6 variants failed), wc read '-l' as a filename, head looked for a file named '-2', sed had no range parser. Fixed the tools, not just the text: grep now accepts -n/-i/-c/-v/-l (line numbers were already printed), wc accepts -l/-w/-c, head accepts -N and -n N, sed accepts Np and N,Mp, tail no longer prints a blank line for a trailing newline. Prompt re-ranked to the working forms. 2. Loop guard keyed calls by tool name plus the raw arguments field. When arguments was already an object (parsed upstream), the key became 'run_command:[object Object]', collapsing distinct batched commands into one signature and producing false "called 3x" warnings. Now the key is JSON.stringify(arguments) whenever it is not a string (3 sites: sig, _sigR, _sigD). Verified live v4.6.49: grep -n/-c, wc -l, head -2, sed -n '2,3p', tail -n 1 all correct.
Diffstat (limited to 'modules/test')
0 files changed, 0 insertions, 0 deletions