Closed
Description
Follow-ups from the reviews of #775 (handoff row HO3, source command), left after its fix round (fix round comment; lens A #775 (comment), lens B #775 (comment)).
- Wait checks still report a missing program as plain "exit code 127" on Linux (the
timeoutwrapper exits 127); the handoff command now says "could not start". Same wording for wait checks (existed before Handoff: the command source writes part 2 (HO3) #775). - The handoff command gets the whole server environment; consider a short allowed list plus the two handoff ids.
- Nothing checks the command when the setting is saved (absolute path, file exists, not inside an agent-editable repo); today the first failure shows only at a handoff.
- A repo script the command points at is editable by agents: docs say to point outside the repo; a save-time check could refuse a path inside a project checkout.
-
personOnlySettings.test.tsmatches setting keys by name only (existed before Handoff: the command source writes part 2 (HO3) #775). - A failed command at the size backstop is kept for the whole slot wait and not retried (documented; decide whether one retry when the slot frees is worth it).
- stderr counts toward the 32 KB cap (documented); consider a separate small stderr cap.
Part of the handoff design (rows HO3-HO5).
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
No labels
Activity
fix(handoff): review round on the handoff follow-ups
scuttletoby commentedon Nov 22, 2026
Where the remaining points stand after #958 (its review round), for the record:
processRunner.tssetsextendEnv = input.env !== undefined, so anyenvgiven is added to the server's whole environment. That was not the only route: the fork's ownhandoffCommand.tsnow starts the command through/usr/bin/env -iwith onlyPATH,HOME,USER,LOGNAME,SHELL,LANG,LC_ALL,LC_CTYPE,TZ,TMPDIR, theXDG_*folders and the two handoff ids, with no upstream line changed. Windows has no such program, so there the command still gets the whole environment (documented indocs/fork/handoff.md).processRunner.tscollects stdout and stderr with twocollectTextcalls, each with its ownmaxOutputBytes, so stderr has its own 32 KB cap and does not count toward stdout's.docs/fork/handoff.mdsays "a 32 KB cap on stdout and on stderr each".(a), (c), (d) and (e) are done in #958; the save check for (c)/(d) is documented as a guard against mistakes, not attacks, with what it does not catch. #958 says "Part of #785" because (f) is declined; this issue can be closed by hand once #958 merges.
🤖 Generated with Claude Code
fix(handoff): follow-ups from #785, #836, #837, #838 (#958)
fix(handoff): follow-ups from #785, #836, #837, #838 (#958)
fix(handoff): follow-ups from #785, #836, #837, #838 (#958)