ShellSession times out when stdout has no trailing newline and the done marker is appended to the same line
The ShellSession execution erroneously times out when a command produces output without a trailing newline because the completion marker is appended to the same line, causing the startswith check to fail and the session to wait until timeout.
