LibreChat/api/server
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
..
controllers 🚦 feat: Show Exit Status and Stderr for Attached Workspace Commands (#16556) 2026-09-30 15:20:49 +02:00
middleware 💬 refactor: ChatForm UI redesign with unified palette (#14473) 2026-09-27 22:25:00 +02:00
routes 🎒 feat: Carry Project Context Across Conversations (#15684) 2026-09-30 00:12:35 +02:00
services 🚦 feat: Show Exit Status and Stderr for Attached Workspace Commands (#16556) 2026-09-30 15:20:49 +02:00
utils 🥢 fix: Fit MCP App Snapshots Within Message Documents (#16299) 2026-09-24 09:56:40 -04:00
cleanup.js
csp.spec.js 🔌 fix: Close Leaked HTTP Server in Server Specs (#15821) 2026-09-10 15:17:06 -04:00
experimental.js 🛶 chore: Merge Latest Dev into Canary Sync 2026-09-27 12:12:16 +00:00
experimental.spec.js 🛬 fix: Settle Background Tool Results Before the Server Shuts Down (#16365) 2026-09-26 20:42:47 -04:00
index.js 🛶 chore: Merge Latest Dev into Canary Sync 2026-09-27 12:12:16 +00:00
index.metrics.spec.js 🔌 fix: Close Leaked HTTP Server in Server Specs (#15821) 2026-09-10 15:17:06 -04:00
index.spec.js 🛬 fix: Settle Background Tool Results Before the Server Shuts Down (#16365) 2026-09-26 20:42:47 -04:00
socialLogins.js 🔁 feat: Retry OpenID Discovery After Startup Failures (#15899) 2026-09-13 23:16:26 -04:00
socialLogins.spec.js 🔁 feat: Retry OpenID Discovery After Startup Failures (#15899) 2026-09-13 23:16:26 -04:00
telemetry.js
telemetry.spec.js