Repository navigation
Commit e9b47cc
fix(heartbeat): keep private-text final replies from leaking to channel in message_tool_only mode
When visibleReplies is set to message_tool and the agent produces a text
final reply without calling the heartbeat response tool, the heartbeat
runner was falling through to the normal delivery path, leaking private
heartbeat text to the channel. Now checks usesHeartbeatResponseTool &&
!heartbeatToolResponse and silently dismisses the turn, matching the
user's privacy configuration. Payloads marked with
deliverDespiteSourceReplySuppression (e.g. Codex runtime failure notices)
still deliver normally.
Fixes #94053
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>1 parent 5b7cf46 commit e9b47cc
1 file changed
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
1849 | 1850 | | |
1850 | 1851 | | |
1851 | 1852 | | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
1852 | 1886 | | |
1853 | 1887 | | |
1854 | 1888 | | |
| |||
0 commit comments