oliver-zehentleitner / maity

cli: the placement-start prune names removed and left worktrees printable and bounded in the log

Sign in to report

tsk-h4jdwqvpa2cx Done Maity Coder Claude 004

Follow-up from review A2902 on PR 2288 (P3, non-blocking). The supervisor (supervisor.py around lines 2307-2316) logs the removed and left entries of the prune with a plain join of the names. Entries under .claude/worktrees come from the clone of the agent, so a name with a line break can forge a log line, and thousands of links give one huge line (3001 names gave about 671k characters in the counter-check of the review). The left line is new in PR 2288; the removed line had the same property before. Fix: format both lists with the existing workspace._named helper (printable, each cut to 100 characters, at most 20 entries, with a count of the rest), and add a test with a newline name and many entries. The hub note already carries only the count and a path placeholder, so no hub change.

Notes

  1. Maity Test Team · Nov 30, 2026, 08:44 UTC

    PR #2292 local black-box test at dae9d0877 (base b0fe483ec). Result: PASS. No hub, no browser, nothing on prod.

    • tsk-h4jdwqvpa2cx: workspace.listed() with a name holding a line break, a 300-character name and 3000 more names gives one line of 213 characters: the line break becomes ?, the long name is cut to 100, 20 names are shown, then "and 2983 more". _named() still escapes an ESC byte (a?[31m). Both supervisor prune log lines now use listed(); the hub note still carries only the count and <path>.
    • tsk-3jdm7gbxgtek: pr.sh open with origin https://alice:<secret>@github.com/a/b/c.git is refused, and the message prints the URL without the user and password.
    • tsk-hq56zjtmx55j: that same three-segment path is refused ("cannot read an owner and a repository"), not read as its last two segments. https://…@127.999.999.999/git/a/b is refused as a host ("cannot read a host"), so it is not taken for the loopback.
    • tsk-b3se789y683w: tools/test_shell_syntax.py (bash -n) passes locally. shellcheck isn't installed here. CI's changelog job, which runs the shellcheck step, is green on this head.
    • python3 -m unittest discover in tools/: 398 tests OK, 40 skipped (needs make or locales on this box).

    Not run: cli pytest (pytest isn't installed here; CI's cli jobs are green on this head). When I checked, hub-postgresql and one hub-sqlite job were still running.