LibreChat/packages/api
Marco Beretta abc9285523
🚦 feat: Show Exit Status and Stderr for Attached Workspace Commands (#16556)
* feat: Show Exit Status for Attached Workspace Commands

Parse the exit trailer the attached-workspace bash_tool writes so the card
fails a non-zero exit, a signal or a timeout, names the reason beside the
failure suffix, and renders stderr distinctly. The group outcome reads the
same parser so its failed count matches the card. Sandbox output without the
trailer keeps the existing heuristics.

* fix: Parse Exit Status Only for Attached Workspace Calls

The sandbox and attached-workspace tools are both named bash_tool, and the
sandbox output is trimmed, so a sandbox command that printed
"[exit code: 1]" last was read as a failed attached-workspace run by the
card and the group outcome.

The execute handler now records a run step when the resolved tool instance
is the one createAttachedWorkspaceBashTool built (tracked by object
identity), and the step-completed handler stamps executor:
'attached_workspace' on the streamed tool call and the aggregated part.
Redis replay and the client SSE merge carry the field through. BashCall
and outcome.ts parse the trailer only when the marker is set.

* fix: Count Styled Terminal Lines Like Plain Ones When Output Ends in a Newline
2026-09-30 15:20:49 +02:00
..
openapi 🤖 fix: Accept GitHub App bot commit identities (#16253) 2026-09-23 22:21:29 -04:00
src 🚦 feat: Show Exit Status and Stderr for Attached Workspace Commands (#16556) 2026-09-30 15:20:49 +02:00
types
.gitignore
babel.config.cjs
jest.config.mjs 🧩 feat: MCP Apps support (#13831) 2026-09-23 21:24:50 -04:00
jest.setup.cjs
package.json 🛶 chore: Include Latest Agents SDK Bump in Canary Sync 2026-09-28 02:22:45 +00:00
tsconfig-paths-bootstrap.mjs
tsconfig.build.json
tsconfig.json
tsconfig.openapi.json 🔌 feat: OpenAPI spec and docs for the public Agents API (#15928) 2026-09-16 13:50:05 -04:00
tsconfig.spec.json
tsdown.config.mjs