-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: 2026.5.19 Discord shows failed file reads in chat #85310
Copy link
Copy link
Closed
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.ClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.Security boundary, credential, authz, sandbox, or sensitive-data risk.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.ClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.Security boundary, credential, authz, sandbox, or sensitive-data risk.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Priority
None yet
[Bug]: 2026.5.19 Discord shows failed file reads in chat
Existing issue check:
print lines ... failedmessages from failed file reads.Bug type
Behavior bug
Beta release blocker
No
Summary
Discord can show internal failed file-read messages such as
print lines 1-220 from memory/2026-05-22.md (agent) failedorprint lines 1-220 from ~/.openclaw/workspace/skills/gemini/SKILL.md (agent) failedas normal app output.Steps to reproduce
2026.5.19with Discord enabled.Expected behavior
Discord should show the user-facing reply or job output only. Failed internal file-read attempts should stay in logs or diagnostics and should not appear as app messages in the channel.
Actual behavior
Discord showed this internal failed tool message:
The same bug is still present after upgrading to
2026.5.20:The same visible-failure shape was also observed for a skill instruction file:
OpenClaw version
2026.5.19 (
a185ca2)Operating system
macOS 26.5 (
25F71)Install method
Source checkout with pnpm build. Gateway runs from the built source checkout.
Model
openai/gpt-5.5Provider / routing chain
Discord -> OpenClaw Gateway -> Codex runtime ->
openai/gpt-5.5Additional provider/model setup details
Relevant local config:
Logs, screenshots, and evidence
OpenClaw version and source state at the time of the primary observed failure:
The primary
2026.5.19failure came from an agent attempt to read a missing memory file:The relevant file was missing on disk:
A later
2026.5.20run showed the bug is still present. Local launchd job log shows the user-facing scheduled summary followed by the failed internal read message:Gateway log for the same event:
Impact and severity
Affected: Discord channels on this install.
Severity: Medium annoyance. The main work can still complete, but Discord shows internal failed tool messages that look like app errors.
Frequency: Seen on this install across
2026.5.19and still present in2026.5.20, with different memory files.Consequence: Users see noisy implementation details in chat, and routine automation or skill-backed turns can look broken even when the useful output was delivered.
Additional information
This looks related to the broader Discord internal-output leak tracked in #44905, but the visible symptom here is narrower and easy to search for: failed file reads are rendered as
print lines ... failedapp messages.Local workaround for the scheduled job was to stop using an agent turn for a simple summary and send the formatted summary directly. That avoids this one job path, but it does not address Discord showing failed file-read messages from other agent turns.