LibreChat/api/server/controllers/agents
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
..
__tests__ 🎒 feat: Carry Project Context Across Conversations (#15684) 2026-09-30 00:12:35 +02:00
callbacks.background.spec.js 🛂 feat: Filter Model-Bound Content by Source (#14425) 2026-08-21 22:43:32 -04:00
callbacks.js 🚦 feat: Show Exit Status and Stderr for Attached Workspace Commands (#16556) 2026-09-30 15:20:49 +02:00
client.codeDecision.spec.js 🍯 fix: Stop Approval Pauses From Unsealing Code Environments (#15963) 2026-09-15 12:30:37 -04:00
client.imageDetail.spec.js 🖍️ fix: Honor Agent Image Detail Settings (#15407) 2026-08-31 08:34:05 -04:00
client.js 🎒 feat: Carry Project Context Across Conversations (#15684) 2026-09-30 00:12:35 +02:00
client.test.js 📡 fix: Explain Model Streams That Die Mid-Response (#16415) 2026-09-27 15:21:20 -04:00
errors.js 🧾 fix: Honor Disabled Transactions on the Assistants Usage Path (#15100) 2026-08-25 08:30:12 -04:00
filterAuthorizedTools.spec.js 🚚 chore: Point Repository and Image References at LibreChat-AI (#16005) 2026-09-23 23:08:36 -04:00
openai.js 🎒 feat: Carry Project Context Across Conversations (#15684) 2026-09-30 00:12:35 +02:00
protocol.js 🛫 refactor: Promote Generation Protocol V2 Automatically (#15324) 2026-08-28 17:17:09 -04:00
queuedTurns.js 🍱 fix: Carry Coding Approval Mode With Queued Turns (#16326) 2026-09-25 07:28:43 -04:00
recordCollectedUsage.spec.js 🥢 fix: Fit MCP App Snapshots Within Message Documents (#16299) 2026-09-24 09:56:40 -04:00
request.js 🎒 feat: Carry Project Context Across Conversations (#15684) 2026-09-30 00:12:35 +02:00
responses.js 🎒 feat: Carry Project Context Across Conversations (#15684) 2026-09-30 00:12:35 +02:00
resume.js 🎒 feat: Carry Project Context Across Conversations (#15684) 2026-09-30 00:12:35 +02:00
steer.js 📬 feat: Move Agent Queued Turns Server-Side (#15370) 2026-08-30 21:53:58 -04:00
v1.js 🛶 chore: Bring Canary Up to Date With Dev 2026-09-25 14:38:30 +00:00
v1.spec.js 🛶 fix: Reconcile Canary Sync Checks 2026-09-25 14:58:34 +00:00