Skip to content

fix(ai): stop over-truncating agent run reason labels - #1186

Open
janlepsky wants to merge 1 commit into
mainfrom
fix/mog-4550-reasoning-label-truncation
Open

fix(ai): stop over-truncating agent run reason labels#1186
janlepsky wants to merge 1 commit into
mainfrom
fix/mog-4550-reasoning-label-truncation

Conversation

@janlepsky

Copy link
Copy Markdown

The reason label carries the model's reasoning — the readable core of the run timeline, not a truncated excerpt like args/result — but it was capped at 600 chars, cutting reasoning mid-sentence in the UI. Raise maxStepLabelLen to 8000 (args/result unchanged) and make truncateStepText rune-safe so multibyte UTF-8 is never cut mid-character.

MOG-4550

The reason label carries the model's reasoning — the readable core of the run
timeline, not a truncated excerpt like args/result — but it was capped at 600
chars, cutting reasoning mid-sentence in the UI. Raise maxStepLabelLen to 8000
(args/result unchanged) and make truncateStepText rune-safe so multibyte UTF-8
is never cut mid-character.

MOG-4550

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@beneiltis
beneiltis force-pushed the fix/mog-4550-reasoning-label-truncation branch from 683219e to 6b9118a Compare August 21, 2026 12:48
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