Commit c114a56
hclsys
fix(heartbeat): thread ackMaxChars into pending-delivery classifier
shouldSkipHeartbeatPendingFinalDelivery was using the default 300-char
threshold regardless of per-agent heartbeat config. Replace with inline
logic that resolves ackMaxChars from cfg.agents[agentId].heartbeat ->
cfg.agents.defaults.heartbeat -> DEFAULT_HEARTBEAT_ACK_MAX_CHARS.
Also fix: store the stripped text (remainder after HEARTBEAT_OK) rather
than the raw payload text. Previously pendingFinalDeliveryText would
have contained the HEARTBEAT_OK prefix, causing heartbeat-runner to
re-deliver it verbatim on retry.
Resolves clawsweeper P2 review finding on #79270.1 parent 38a3ad3 commit c114a56
2 files changed
Lines changed: 56 additions & 20 deletions
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
404 | 435 | | |
405 | 436 | | |
406 | 437 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
| |||
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
42 | | - | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
829 | 833 | | |
830 | 834 | | |
831 | 835 | | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | | - | |
836 | | - | |
837 | | - | |
838 | | - | |
839 | | - | |
840 | | - | |
841 | | - | |
842 | 836 | | |
843 | 837 | | |
844 | 838 | | |
| |||
1910 | 1904 | | |
1911 | 1905 | | |
1912 | 1906 | | |
1913 | | - | |
1914 | | - | |
1915 | | - | |
1916 | | - | |
1917 | | - | |
1918 | | - | |
1919 | | - | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
1920 | 1925 | | |
1921 | 1926 | | |
1922 | 1927 | | |
1923 | 1928 | | |
1924 | 1929 | | |
1925 | | - | |
| 1930 | + | |
1926 | 1931 | | |
1927 | 1932 | | |
1928 | 1933 | | |
| |||
0 commit comments