Commit Graph
5 Commits
Author SHA1 Message Date
Ansho ReiandClaude Opus 5 df97b06275 (3e8b6fa) Relay worklane's own error text from the opencode tools
None of the five tools could report why a command failed. mv and comment
spawned without stderr set, and Bun defaults it to inherit, so the text
went to the plugin host and never to the model. show, ls and init used
Bun.$, whose ShellError message is only "Failed with exit code 1", and
each of them interpolated just that message. The CLI explained itself
every time and nothing carried the explanation.

Replace all four spawn and Bun.$ blocks with one run() helper that pipes
both streams and throws with stderr, and strip anyhow's "Error: " prefix
so a relayed message does not read "Error adding comment: Error: ...".

Verified against the real binary with a Bun.spawn shim over node's
child_process, since bun is not installed here: an ambiguous show, mv and
comment now each return the candidate list to the caller. The file is
twenty lines shorter than the duplication it replaces.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-20 14:10:11 +02:00
Anshorei 12f34a3442 Fix 'add' tool command 2026-08-20 13:20:15 +02:00
Anshorei bcb24f1fa6 Attempt to fix the tool 2026-05-16 02:19:54 +02:00
Anshorei 31421ff103 Execute tool calls in worktree root 2026-05-15 22:04:58 +02:00
Anshorei 73e5aee2a2 (415e1c3) Fix worklane.ts tool when passed multi-line args 2026-05-15 20:59:29 +02:00