Skip to content

fix: prevent ArgumentOutOfRange on agentic string truncation - #10

Merged
vitorcastro78 merged 1 commit into
mainfrom
dynamic-context-discovery
Aug 30, 2026
Merged

vitorcastro78 merged 1 commit into
mainfrom
dynamic-context-discovery

Conversation

@vitorcastro78

Copy link
Copy Markdown
Collaborator

Summary

  • Clamp agentic string truncation so short session ids and low observation budgets no longer throw ArgumentOutOfRangeException (HTTP 400 to TriageHub and other clients).
  • Touches compaction history ids, tool observation previews, MCP short descriptions, and session wiki compile.

Test plan

  • Redeploy ContextMemory gateway (Deploy local on merge to main)
  • Re-run TriageHub agentic triage for PAC-769 (or any short ticket key) and confirm chat no longer returns 400 on string length
  • Confirm agentic steps still appear in session progress

Short session ids and low observation budgets could throw during compaction, tool previews, MCP descriptions, and wiki compile — returning HTTP 400 to all apps.
@vitorcastro78
vitorcastro78 merged commit 62ee36a into main Aug 30, 2026
2 checks passed
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