The run page is where a person watches the crew work, and it is the surface the direction names. Read one today (/trevato/cs/runs/01m338ktqs4m39frpbdz7vkf7d) and every tool line begins with a path nobody can use:
Sixty-two characters of sandbox before the file. On a phone the filename is off the edge, and the reader learns the forge's crew directory layout and the run's workdir id instead of what the agent touched. The deploy log already solved this: stripForgeDirs (src/apps/process.ts:155) turns dir/src/server.ts:1:11 into src/server.ts:1:11, "the path the app's own source control knows". The crew's log never got it — describeTool (src/crew/claude.ts:331) prints file_path exactly as the agent sent it.
The same function then truncates at 160 characters, so on a long Bash line the path eats the budget and the command is cut mid-word (… && bun test sr…).
Done looks like:
Files I expect to change: src/crew/claude.ts, src/apps/process.ts (the helper moves), a small new module for it, test/crew.test.ts.
Risks: the workdir string must be non-empty before it is used as a prefix — stripping "" would rewrite every line. Guard it, and say so in a test.
Whose brief fits: Mason — one concept, currently written once and missing once.
The run page is where a person watches the crew work, and it is the surface the direction names. Read one today (
/trevato/cs/runs/01m338ktqs4m39frpbdz7vkf7d) and every tool line begins with a path nobody can use:Sixty-two characters of sandbox before the file. On a phone the filename is off the edge, and the reader learns the forge's crew directory layout and the run's workdir id instead of what the agent touched. The deploy log already solved this:
stripForgeDirs(src/apps/process.ts:155) turnsdir/src/server.ts:1:11intosrc/server.ts:1:11, "the path the app's own source control knows". The crew's log never got it —describeTool(src/crew/claude.ts:331) printsfile_pathexactly as the agent sent it.The same function then truncates at 160 characters, so on a long
Bashline the path eats the budget and the command is cut mid-word (… && bun test sr…).Done looks like:
Files I expect to change:
src/crew/claude.ts,src/apps/process.ts(the helper moves), a small new module for it,test/crew.test.ts.Risks: the workdir string must be non-empty before it is used as a prefix — stripping
""would rewrite every line. Guard it, and say so in a test.Whose brief fits: Mason — one concept, currently written once and missing once.