The background bash tests assumed their initial output would arrive
within a two-second deadline. Separate completed-command output capture
from timeout behavior, and gate background completion until after the
handler returns. Each run now uses its own temporary FIFO and completion
marker instead of a fixed sleep and shared file.
Fixes https://linear.app/codercom/issue/CODAGT-1004
<details>
<summary>Investigation and validation evidence</summary>
Injecting a three-second delay into external command execution
reproduced both original failures with exit code 124 and no initial
output. This demonstrates the unsafe startup-timing assumption; it does
not establish the precise source of the CI runner's delay or implicate
the output-drain window.
The updated tests passed three repetitions with the same injected delay,
five race-enabled repetitions, the full `toolsdk` package, and package
lint checks (zero issues).
The continuation test releases its FIFO only after the timeout result
and verifies the unique completion marker afterward. Output capture is
covered separately for stdout and stderr.
</details>
Generated by Coder Agents on behalf of @hugodutka.