afterhours-shift-manager/docs
seahaven-openswe[bot] 2202cde9ed
Some checks failed
Deploy / deploy (push) Has been cancelled
Deploy / release (push) Has been cancelled
fix: delete+repost schedule on weekly rollover for bottom placement (#167)
* fix: delete+repost schedule on weekly rollover for bottom placement

The Monday rollover was chat_update-ing in place, which only refreshes
content without moving the message to the bottom. Now it chat_deletes
the old post and chat_postMessages a fresh one so the schedule lands
at the bottom every Monday, independent of in-week activity.

Also added info-level logging to the bump handler silent return paths
so skipped bumps are observable at runtime.

* fix: roll back weekly repost when its ts can't be persisted

The Monday rollover deletes the old post then reposts a fresh one, but only
saved the new ts as its last step. If the save failed (or the Lambda died)
after the post landed, the async retry would read the stale, already-deleted
ts, no-op its delete, and post a second schedule — orphaning the first at the
bottom of the channel.

Wrap the save so a failure after a successful repost best-effort deletes the
fresh message before re-raising, letting the retry start clean. Mirrors the
orphan-avoidance the activity bump already has.

---------

Co-authored-by: seahaven-openswe[bot] <296972425+seahaven-openswe[bot]@users.noreply.github.com>
Co-authored-by: Adam Moussa <adam@seahavenind.com>
2026-07-10 16:36:47 -04:00
..
admin-ui-evaluation.md [#136] Add Slack admin modals + App Home admin section (#141) 2026-07-02 16:29:42 -04:00
sticky-schedule-post.md fix: delete+repost schedule on weekly rollover for bottom placement (#167) 2026-07-10 16:36:47 -04:00