Fix --- message splitting in all Telegram message paths#43
Merged
mosnicholas merged 1 commit intomainfrom Feb 23, 2026
Merged
Conversation
sendMessageSafe() now splits on --- markers before formatting, so all callers (cron jobs, command responses, reminders) get proper multi-message splitting. Previously only the webhook handler explicitly split on ---, causing escaped \-\-\- to appear as literal dashes in cron/reminder messages. https://claude.ai/code/session_0171xieP71UziMcmCHHSKfQj
mosnicholas
pushed a commit
that referenced
this pull request
Feb 23, 2026
Replace free-form Edit/Write for structured data with dedicated tools that handle file paths, frontmatter schemas, and formatting deterministically: - start_workout: Creates workout file with proper frontmatter and heading - log_exercise: Appends exercises with structured sets (weight/reps/RPE) - complete_workout: Sets status to completed, adds finish time and summary - update_prs: Validates against existing PRs, calculates 1RM, writes YAML - save_plan: Creates weekly plan in correct week directory The agent still has Edit/Write as fallback for edge cases and prose files (profile.md, retros, plan amendments). Prompts updated to prefer the new tools while keeping backwards compatibility. Also switches scenario tests from Haiku to Sonnet 4.6 for better tool usage. https://claude.ai/code/session_01FtA2RnakDgmB4Qbb31JAgL
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.
sendMessageSafe() now splits on --- markers before formatting, so all
callers (cron jobs, command responses, reminders) get proper multi-message
splitting. Previously only the webhook handler explicitly split on ---,
causing escaped --- to appear as literal dashes in cron/reminder messages.
https://claude.ai/code/session_0171xieP71UziMcmCHHSKfQj