Slack: orchestrator won't post replies delivered as a bracketed paste (pasted-instruction refusal)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- electron
- Ambito
- backend
Direzione di ricerca
Start by reading the Slack Socket Mode relay and the Claude CLI TUI prompt-injection path described in the issue; reproduce the refusal using the stated setup. Compare the bracketed-paste delivery with the trusted-location authorization mentioned in the issue. Done means relayed Slack requests can receive replies without the pasted-instruction refusal.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Version: 0.5.5 (Windows 10, Electron build)
Provider: Claude via subscription — claude --model claude-opus-…[1m] --permission-mode bypassPermissions
Slack mode: Socket Mode, channel C0C0LCFJR71
Summary
When a Slack @mention is relayed to the orchestrator ("god" / Michael), the harness
injects it into the Claude Code session as a bracketed paste (the TUI shows
[Pasted text #N +7 lines]). Claude Code then applies its anti-prompt-injection
safeguard and declines to take an outward action — posting back to Slack — on
instructions that arrived purely as pasted text. The agent reads the message and
even drafts the reply, then refuses to send it without a human saying "yes."
Net effect: the user posts an @mention, the bot never replies, and it looks broken.
Observed behavior (verbatim from the agent's terminal)
"Yes, I can see it… I haven't posted anything to Slack yet. This whole request
came in as pasted text with no message of your own around it, and I don't post to
an outside service on pasted instructions alone. If you want the reply posted,
say so…"
The harness's own [SLACK REQUEST] block does instruct the agent to post (it
includes the reply command), but that instruction is discounted because it lives
inside the untrusted paste. The agent ends up idle with its own "Yes, post it"
sitting unsent in the input line.
Reproduction
- Slack in Socket Mode, bot invited to the channel, provider = Claude CLI on a
subscription (bypassPermissions). - @mention the bot in the channel with a plain request.
- Manually submit the pasted prompt to the agent (see the related stuck-submit
issue; you may need to press Enter in the terminal). - Observe: the agent processes the message but declines to post the reply, stating
it won't act on pasted instructions alone.
Why it happens
Claude Code intentionally treats large pasted content as untrusted data and will
not perform outward/side-effecting actions based on it — an anti-prompt-injection
measure. The harness delivers Slack messages as exactly that kind of paste, so the
safeguard fires on every relayed request.
Suggested fixes
- Deliver the relayed Slack message as a normal conversation turn, not a raw
bracketed paste, so it is not flagged as untrusted pasted data. - And/or place the standing grant ("you are authorized to reply in your own Slack
channel") in a trusted location — the system prompt or project memory
(CLAUDE.md) — rather than inside the pasted block. (A user-sideCLAUDE.md
authorizing replies does appear to resolve it, which confirms the mechanism.) - Over an API transport this safeguard would not trigger at all, since there is no
"paste"; that is further evidence the paste-into-TUI delivery is the root cause.
Notes
- Related issue: PTY auto-submit of the injected prompt intermittently gets stuck
(filed separately). - Screenshot available: the orchestrator's "I don't post on pasted instructions
alone" reply with> Yes, post itunsent in the input line.
- Lingua principale
- TypeScript
- Stelle
- 8.5k
- Fork
- 1.2k
- Merge medio
- 11h 36m
- PR unite (30g)
- 72
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di HarnessMD/munder-difflin
-
Monitor dispatch input is too small to send messagesForse già presa @rajpreetcodes l’ha presa 12 giorni fa. Apertabug os:macos
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
HarnessMD/munder-difflin#720 ·
I maintainer di solito rispondono entro 1 giorno
-
JetBrains Junie CLIApertaenhancement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
HarnessMD/munder-difflin#510 ·
I maintainer di solito rispondono entro 1 giorno
-
Ask Me counter counts down as questions are answered (5/5 to 1/5), which reads as questions disappearingForse di nuovo libera @xiechimon l’ha presa 39 giorni fa e non c’è nessuna pull request aperta. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
HarnessMD/munder-difflin#267 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
HarnessMD/munder-difflin#784 ·
I maintainer di solito rispondono entro 1 giorno
-
Terminal viewport jumps to top / snaps to bottom when scrolling up during streaming outputForse già presa @jakob2103 l’ha presa 3 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
HarnessMD/munder-difflin#778 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di HarnessMD/munder-difflin
Issue simili
-
VS Code extension: clickable file links in chat drop the :line suffix, never jump to the lineAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
MoonshotAI/kimi-code#4398 ·
I maintainer di solito rispondono entro 1 giorno
-
Xiaomi Mimo语音识别服务异常Apertapending triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
package-lock.json : les binaires natifs macOS et Linux de unrs-resolver ont disparu depuis #1823Apertabug dependencies
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
AxaFrance/design-system#2064 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100