You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🤖 fix: truncate status_set messages at 60 chars instead of failing (#487)
The `status_set` tool previously validated message length at 40
characters via Zod schema, causing tool failures when agents provided
longer messages. This changes the behavior to gracefully truncate at 60
characters with an ellipsis.
**Changes:**
- Added `STATUS_MESSAGE_MAX_LENGTH` constant (60 chars) to
`toolLimits.ts`
- Removed `.max(40)` Zod validation from schema
- Added `truncateMessage()` helper that truncates to 59 chars + "…"
- Updated tests to verify truncation behavior
**Behavior:**
- Messages ≤ 60 characters: unchanged
- Messages > 60 characters: truncated to 59 chars + ellipsis
This eliminates validation errors for long status messages while
maintaining a reasonable display limit.
_Generated with `cmux`_
0 commit comments