Repository navigation
Fix /schedule edit preview matching saved view (#242) - #244
Merged
Merged
Conversation
NinjaLikesCheez
marked this pull request as ready for review
November 28, 2026 10:22
cursor Bot
pushed a commit
that referenced
this pull request
Nov 28, 2026
Address Sentry review on #244: when evaluate fails for a non-timing reason, fill the draft preview for the parsed occurrence via timingOf instead of now(); treat pre-strip auto-names that still contain mention markup as auto so edits keep refreshing the name. Co-authored-by: NinjaLikesCheez <NinjaLikesCheez@users.noreply.github.com>
After editing a message, the draft content slot could show the raw stored template while the schedule panel and the real post showed filled tokens. Always fill that slot for the next occurrence, fill titles/names the same way, refresh auto-names when the text changes, and keep mention markup out of auto-names. Co-authored-by: NinjaLikesCheez <NinjaLikesCheez@users.noreply.github.com>
Address Sentry review on #244: when evaluate fails for a non-timing reason, fill the draft preview for the parsed occurrence via timingOf instead of now(); treat pre-strip auto-names that still contain mention markup as auto so edits keep refreshing the name. Co-authored-by: NinjaLikesCheez <NinjaLikesCheez@users.noreply.github.com>
cursor
Bot
force-pushed
the
cursor/schedule-preview-mismatch-242-a026
branch
from
November 28, 2026 10:34
e1d4b96 to
6f9f0bd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #242 / Sentry PIXEL-2D: after editing a
/schedulemessage, the draft preview and the saved schedule view (and what actually posts) could look like different messages — even with no errors.Closes #242
Root cause
Not a store / mention-handling bug from #240/#241. Stored content was already correct; the mismatch was in how the draft panel presented it:
Hello {{date}}, raw<@id>), while a successful draft and the saved schedule panel always show filled text (Hello 14 October 2026). After Edit → fix a field → Save, people compared those two languages and reported “preview and message are different.”On {{date}}) next to a filled body.Fix
evaluatefails.timingOfso the filled preview matches what Save would show (notnow()).Notes
mainafter /schedule: rename draft Schedule button to Save (#243) #245 (Savebutton rename); regression tests click Save.Test plan
{{date}}— draft preview ≡ saved view ≡ posted textSave