mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-16 13:00:55 +00:00
* 🪵 fix: Explain Failed Attachment Copies and Subagent Start-Up Failures The attachments .gitignore and import failure warnings logged only a bare error type: getSafeErrorMetadata reads `status`, which a workspace tool error does not carry. They now log the request outcome, upstream status and the worker's error code, never a body or host path. A worker that reports the folder missing (one that predates LibreChat-AI/code-interpreter#360 on a root registered by path alone) is reported to the user as needing an update. A subagent that could not start was logged only as the SDK's `unknown` resolution cause. The run now passes onSubagentResolutionFailure, which logs the underlying cause chain (name, code, status, redacted message) and names an MCP server that needs re-authentication. A detached child thread shows the SDK's model-facing start-up message instead of a generic failure, and its failure log carries the task id, resolution cause and a redacted error in place of the raw stack. * 🪵 fix: Log Only Trusted Error Text and Recognize the Legacy Missing-Path Reply - Cause chains keep a message only for errors whose text LibreChat or the SDK composes (MCP authentication errors, SubagentResolutionError, CodeWorkspaceSelectionError); every other link logs name, code and status. Child-thread failures log stack frames without the message line instead of redacted error text. - A retryable MCP refresh or rejection is logged as a sign-in failure a retry may clear, not as one that needs re-authentication. - A worker's missing attachments folder relayed by an older Code API as INVALID_PATH "Workspace path does not exist" is also reported as unsupported, through the shared isWorkspacePathMissing check. * 🪵 fix: Log Frames Only From a Verified Stack and Keep OpenID Out of MCP - Stack frames are read only after the stack's own name: message header, and only when that header still matches the error, so a message line shaped like a frame is never logged. - OpenIDReauthRequiredError alone is no longer reported as an MCP sign-in failure: model and endpoint headers raise it too. |
||
|---|---|---|
| .. | ||
| fixtures | ||
| setup | ||
| agent.spec.ts | ||
| agent.ts | ||
| attachments.spec.ts | ||
| attachments.ts | ||
| bridge.spec.ts | ||
| bridge.ts | ||
| capabilities.spec.ts | ||
| capabilities.ts | ||
| command.spec.ts | ||
| command.ts | ||
| config.spec.ts | ||
| config.ts | ||
| decision.spec.ts | ||
| decision.ts | ||
| edits.spec.ts | ||
| edits.ts | ||
| enrollment.spec.ts | ||
| enrollment.ts | ||
| environment.live.spec.ts | ||
| environments.integration.spec.ts | ||
| environments.ts | ||
| errors.spec.ts | ||
| errors.ts | ||
| http.spec.ts | ||
| http.ts | ||
| index.ts | ||
| inheritance.spec.ts | ||
| inheritance.ts | ||
| instructions.spec.ts | ||
| instructions.ts | ||
| lane.spec.ts | ||
| lane.ts | ||
| lifecycle.spec.ts | ||
| lifecycle.ts | ||
| limits.ts | ||
| paths.ts | ||
| protocol.ts | ||
| remoteWorkspace.spec.ts | ||
| requests.spec.ts | ||
| requests.ts | ||
| settings.spec.ts | ||
| settings.ts | ||
| setup.registry.integration.spec.ts | ||
| targets.integration.spec.ts | ||
| targets.spec.ts | ||
| targets.ts | ||
| workspace.lanes.spec.ts | ||
| workspace.spec.ts | ||
| workspace.ts | ||