Skip to content

Fix Claude usage-limit prose handling - #66

Merged
hniska-identione merged 1 commit into
mainfrom
hakan/ide-162-claude-limit-prose
Jun 17, 2026
Merged

Fix Claude usage-limit prose handling#66
hniska-identione merged 1 commit into
mainfrom
hakan/ide-162-claude-limit-prose

Conversation

@hniska-identione

Copy link
Copy Markdown

Context

Claude usage-limit prose was treated as a clean turn, causing IDE-162 to loop until max turns.

TL;DR

Classify Claude "hit your limit" prose as a rate-limit error.

Summary

  • Detect Claude usage-limit reset notices even when AssistantMessage.error is unset.
  • Emit a structured rate_limit error with the existing retry-after hint.
  • Add regression coverage for the June 17 trace shape.

Alternatives

  • Wait for SDK error fields only; rejected because the observed trace had plain assistant prose.

Test Plan

  • make -C elixir all
  • cd elixir && uv run --project priv/claude_agent pytest priv/claude_agent/tests/test_forward_message_rate_limit.py

@hniska-identione
hniska-identione merged commit ef684ca into main Jun 17, 2026
@hniska-identione
hniska-identione deleted the hakan/ide-162-claude-limit-prose branch June 17, 2026 13:15
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