Skip to content

Fix --- message splitting in all Telegram message paths#43

Merged
mosnicholas merged 1 commit intomainfrom
claude/fix-telegram-message-splitting-FDuJ5
Feb 23, 2026
Merged

Fix --- message splitting in all Telegram message paths#43
mosnicholas merged 1 commit intomainfrom
claude/fix-telegram-message-splitting-FDuJ5

Conversation

@mosnicholas
Copy link
Owner

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

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 mosnicholas merged commit a7dff5c into main Feb 23, 2026
4 checks passed
@mosnicholas mosnicholas deleted the claude/fix-telegram-message-splitting-FDuJ5 branch February 23, 2026 04:58
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants