Repository navigation
Bug: Semantic dispatcher replaces unexpected errors with "The semantic operation failed safely." and never logs the original error #22688
haakjesluiten
started this conversation in
General
Replies: 1 comment
|
the normalizeFailure silently swallows the original error, which makes this basically undebuggable from the operator side. the fix is straightforward: before returning the sanitized failure, log the original error with its stack at the catch site, and generate a correlation id (uuid or just a hash of runId+callId) that gets attached both to the log entry and to the SemanticDispatchFailure you return to the agent. that way the agent still sees a safe generic message, but the operator can grep the id from the transcript and find the real cause immediately. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Bug report (posted as a discussion: the issue form requires confirming the latest release or a reproduction on master; this was observed on
2026.1116.0-nightly.0and the code path was re-read, unchanged, onmastere856a607, but not reproduced there).Version
@paperclipai/server/ runner2026.1116.0-nightly.0, commit278660149, self-hosted.mastere856a607: unchanged.Observed
operation_unavailable/ "The semantic operation failed safely."Expected
runId,callId,operationId) that is also included in the generic result, so an operator can find the log line from the agent transcript.Code pointer (
mastere856a607)packages/paperclip-runner/src/semantic-tools/dispatcher.ts~L575:Called from the
catchin the dispatch path (~L165):#recordstores only the normalized failure. There is no logger call indispatcher.ts, soerroris dropped.Suggested minimal fix
catch(or innormalizeFailure, given a logger and the call context), log the original error once atwarn/errorwithrunId,callId,operationIdand a generatederrorId.errorId(andcallId) in the returned failure message, for example "The semantic operation failed safely (ref: )." Do not put the original message in the agent-facing text if it may contain secrets; the log is enough.retryablefrom known transient errors instead of always mapping tooperation_unavailable.Related / possible duplicates
read_chat_attachmentfails with a masked error; it names the same masking in the Rust layer (acpx_provider_session.rs,deliver_tool_result→ "Paperclip semantic operation failed"), not this TypeScriptnormalizeFailure.Chat attachments (images) never reach native runs on remote / cloud-sandbox targets; read_chat_attachment fails with a masked error #19740
call_apiupload fails and the provider sees only "Paperclip semantic operation failed" (a concrete case of the same diagnosability gap).Runner call_api cannot upload a workspace file on a remote command-runner target #20975
fix(runner): tell ACPX agents which field a refused semantic call failed #22037
normalizeFailureoroperation_unavailable(search for both returned 0 results).All reactions