fix(bindings): surface pre-exec failures in stderr for Python/JS#625
Closed
fix(bindings): surface pre-exec failures in stderr for Python/JS#625
Conversation
…grations Pre-exec failures (parse errors, resource limits) were only stored in the `error` field with an empty `stderr`. Agent integrations like deepagents.py and pydantic_ai.py ignored `result.error`, leading to opaque failures. Now the error message is copied into `stderr` in both Python and JS bindings, and both agent integrations surface `result.error`. Closes #606
08b36dd to
b6c3e87
Compare
chaliy
added a commit
that referenced
this pull request
Mar 14, 2026
- fix(bindings): surface pre-exec failures in stderr for Python/JS (#625) - docs(tool): add bash-vs-sh, chunked writes, limits to agent prompt (#608) - feat(jq): bump reported version to jq-1.8, add trim/abs/if tests (#616) - feat(awk): implement --csv flag with RFC 4180 field splitting (#617, #618)
6 tasks
Contributor
Author
|
Superseded by #631 which includes the fix plus resolves the Python test failures. |
yonas
pushed a commit
to yonasBSD/bashkit
that referenced
this pull request
Mar 15, 2026
) ## Summary - **fix(bindings)**: Surface pre-exec failures (parse errors) in `stderr` for Python and JS bindings — previously only populated the `error` field, leaving `stderr` empty. Fixes everruns#606, supersedes everruns#625. - **docs(tool)**: Add operational guidance to the agent-facing system prompt: bash-vs-sh semantics, `source` usage, chunked multi-file writes, and configured limits. Fixes everruns#608. - **feat(jq)**: Bump reported version from `jq-1.7.1` to `jq-1.8`. Add tests for `trim`, `ltrim`, `rtrim`, `abs`, and `if` without `else` (jq 1.8 features supported by jaq 2.2.1). Addresses everruns#616. - **feat(awk)**: Implement `--csv` / `-k` flag with RFC 4180 field splitting (quoted fields, embedded commas, double-quote escaping). Sets `FS=","` and `OFS=","` in CSV mode. Fixes everruns#618, addresses everruns#617. ## Test plan - [x] All 8 new awk CSV tests pass - [x] All 6 new jq 1.8 tests pass (version, abs, trim, ltrim, rtrim, if-without-else) - [x] Tool system prompt test verifies bash-vs-sh guidance and limits surfacing - [x] `cargo fmt --check` clean - [x] `cargo clippy --all-targets --all-features -- -D warnings` clean - [x] `cargo test --all-features` passes (2 pre-existing doctest failures in realfs unrelated)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
errorfield, leavingstderremptystdout/stderr, so errors were silently loststderrin both Python and JS Rust bindingsdeepagents.pyandpydantic_ai.pyto surfaceresult.errorTest plan
cargo clippy,cargo fmtcleanruff check,ruff formatcleanCloses #606