Clarify visible replies for message-tool-only chats#80050
Conversation
|
Codex review: needs maintainer review before merge. Summary Reproducibility: yes. for the source-level prompt gap: current main keeps message-tool-only finals private and lacks the direct-addressed/status/completion warning on the relevant prompt surfaces. The PR body also supplies redacted real Discord terminal proof, but I did not rerun the live Discord path. Real behavior proof Next step before merge Security Review detailsBest possible solution: Land the prompt clarification after maintainer review and green current-head checks, while leaving deterministic suppressed-final diagnostics to #80949. Do we have a high-confidence way to reproduce the issue? Yes for the source-level prompt gap: current main keeps message-tool-only finals private and lacks the direct-addressed/status/completion warning on the relevant prompt surfaces. The PR body also supplies redacted real Discord terminal proof, but I did not rerun the live Discord path. Is this the best way to solve the issue? Yes for this PR's scope: a prompt-only clarification across group/direct, ACP, agent-system, and tool-description surfaces is the narrowest maintainable mitigation. Runtime diagnostics are a separate path already represented by #80949. What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 916fc3d09ae1. |
aaf5d1b to
f002f65
Compare
f9cde59 to
8d08155
Compare
11f25d1 to
e67b638
Compare
163bb76 to
8ca012d
Compare
|
Updated this PR head so the generated protocol output is included directly on this branch; it no longer depends on #80436. The PR body includes redacted after-fix behavior proof for the visible-reply guidance lane. /clawsweeper review |
6944464 to
ef2d4c3
Compare
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
ef2d4c3 to
02e61d2
Compare
02e61d2 to
3dfce9b
Compare
3dfce9b to
e2e4119
Compare
e2e4119 to
fbcaed0
Compare
|
Superseded by #80949. I consolidated this prompt/context guidance into #80949 so the message-tool-only final-visibility work has one review surface. #80949 now includes:
Closing this PR to avoid splitting the same fix across multiple open PRs. |
Summary
Clarifies the prompt context for
message_tool_onlygroup/direct conversations so agents do not put user-facing answers only in private final text when a visible update is expected.This is a prompt-only clarification; it does not change reply-delivery runtime behavior.
This keeps the existing privacy boundary intact:
message_tool_onlycontextsmessage(action=send)Tests
corepack pnpm format -- src/auto-reply/reply/groups.ts src/auto-reply/reply/groups.test.tscorepack pnpm vitest run src/auto-reply/reply/groups.test.tsReal behavior proof
message_tool_onlythread, user-facing status/result answers could be written only as private final text, so the channel showed progress/tool output but no visible answer. This PR clarifies that directly addressed status/completion answers must usemessage(action=send)and must not be left only in normal final text.message_tool_onlythread routing. Channel, session, user, host, and file-path identifiers are redacted.final_answerpayloads that were not visible in Discord, while a manualmessage.sendrecovery was visible immediately.message_tool_onlyguidance in the native agent prompt, ACP dispatch prompt, and message tool description surfaces; validation returnedFINAL_VISIBILITY_COMPLETE_HOTFIX_OK, and connectivity was OK after restart. The pre-fix failure was narrowed to private normal final text versus visiblemessage(action=send), not a Discord send failure.