feat(messages): add toolMessageLogging override#82691
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a messages.toolMessageLogging config override that explicitly controls whether intermediate tool result/status messages are sent, replacing the previously hardcoded DM/forum-vs-group default (which is preserved as the fallback).
Changes:
- New optional
messages.toolMessageLoggingfield on the messages config (schema, type, label, help text). dispatchReplyFromConfignow usescfg.messages?.toolMessageLoggingto drive bothshouldSendToolSummariesandshouldSendToolStartStatuses, falling back to the prior chat-type heuristic.- Documentation and unit tests covering both the suppress-in-DM and enable-in-group cases.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/config/zod-schema.session.ts | Adds optional boolean field to MessagesSchema. |
| src/config/types.messages.ts | Adds typed toolMessageLogging field with doc comment. |
| src/config/schema.labels.ts | UI label for the new field. |
| src/config/schema.help.ts | Help text describing default auto behavior. |
| src/auto-reply/reply/dispatch-from-config.ts | Honors override for tool summaries/start statuses. |
| src/auto-reply/reply/dispatch-from-config.test.ts | Tests for false in DM and true in group. |
| docs/gateway/configuration-reference.md | Documents the new option. |
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close as superseded: the useful tool/progress visibility behavior is now owned by the merged verbose-state work on current main and in the latest release, while this stale branch adds a second config knob that conflicts with the shipped direction and lacks real behavior proof. Canonical path: Keep the shipped So I’m closing this here because the remaining work is already tracked in the canonical issue. Review detailsBest possible solution: Keep the shipped Do we have a high-confidence way to reproduce the issue? Not applicable as a feature/config PR. The related bug path is already handled by merged verbose-state work, and this branch provides no after-fix real chat proof for the proposed new config key. Is this the best way to solve the issue? No. The best current solution is the shipped Security review: Security review needs attention: The diff changes privacy-sensitive tool/status visibility and can expose intermediate progress text in shared rooms if the new override is enabled.
AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against cae64ee360a8. |
|
ClawSweeper applied the proposed close for this PR.
|
Summary
messages.toolMessageLoggingconfiguration override to control tool-message logging behaviorTest
pnpm exec vitest run src/auto-reply/reply/dispatch-from-config.test.ts --config vitest.config.ts