Skip to content

fix: increase agent max output tokens - #563

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
BharadwajKanneveti:fix/ai-agent-output-tokens
Jul 31, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
BharadwajKanneveti:fix/ai-agent-output-tokens

Conversation

@BharadwajKanneveti

Copy link
Copy Markdown
Contributor

Summary

Added an explicit maxOutputTokens limit to the AI Agent chat stream to prevent long responses from being truncated mid-answer due to the provider defaulting to a lower token limit.

Related issue

Closes #539

Type of change

  • fix — Bug fix
  • feat — New feature
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks — exactly the fix the issue called for, clean and minimal. 🙌

@gkhngyk
gkhngyk merged commit 4ed443e into ansvisor:main Jul 31, 2026
4 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.

AI Agent responses get cut off mid-answer — no maxOutputTokens set, provider falls back to 4096

2 participants