You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(pi): correct switch coercion for draft and tidy Babysit reporting
- `draft` had the same string-coercion bug that `babysitMode` was fixed for one
line above it. A switch arrives as `'true'`/`'false'` when its value came
through a variable reference, an API trigger payload, or a legacy serialized
workflow, and `inputs.draft !== false` read `'false'` as truthy — opening a
draft PR against the user's explicit setting. Both now go through one
`isSwitchEnabled` helper that handles either polarity and takes the field's
default, because the bug is opposite on each.
- `mergePhaseDiffs` joined two separately-capped diffs without re-capping, so
the combined output could reach twice MAX_DIFF_BYTES.
- The cancellation poller's `logger.warn` was the one message in these files
emitted unscrubbed. A Redis poll error is unlikely to carry a run credential,
but a uniform invariant is easier to keep than a per-call-site argument.
- Renamed `waitWithSandboxKeepalive` to `waitWithSandboxProbe`. E2B's `timeoutMs`
counts down from create and is reset only by `Sandbox.setTimeout`, never by
running a command, so `true` every four minutes proves liveness and buys no
time. The old name invited raising the round wait on the assumption that waits
extend the sandbox, which would let E2B reap it mid-wait.
- Dropped a `{@link}` to a symbol in another module that was never imported.
0 commit comments