Skip to content

Conversation

@robaone-redshelf
Copy link
Contributor

Summary

  • Increases maxOutputTokens from 8192 to 16384 tokens in the auto-release-description action
  • Updates AI prompt to be more concise and use bullet points
  • Fixes issue where release PR descriptions were being truncated mid-sentence

Problem

The current release PR for rsm-monorepo (v3.23.0) has a truncated description:

*   **Monorepo Version Update**: The root `package.json` version has been incremented from `3
<!-- end auto generated release description -->

The text cuts off at "from 3" instead of completing "from 3.22.0to3.23.0`".

Root Cause

The maxOutputTokens limit was set to 8192, which is approximately 32KB of text. When the Gemini API generates comprehensive release descriptions, it hits this limit and truncates the output.

Solution

  1. Doubled the token limit to 16384 (64KB of text)
  2. Updated the prompt to guide the AI to be more concise
  3. Added instructions to use bullet points and group similar changes

Testing

Tested locally with the rsm-monorepo release/v3.23.0 branch diff and confirmed the script generates complete output without truncation.

Impact

Once merged to main, this will automatically fix future release PR descriptions since the workflow uses @main branch.

- Increase maxOutputTokens from 8192 to 16384 tokens
- Update prompt to guide AI to be more concise
- Add guidance to use bullet points and group similar changes
- Prevents release descriptions from being truncated mid-sentence

The 8192 token limit (~32KB) was too small for comprehensive release
descriptions, causing truncation like 'incremented from `3' instead of
'incremented from `3.22.0` to `3.23.0`'.
@robaone-redshelf robaone-redshelf merged commit 7d04955 into develop Jan 5, 2026
11 checks passed
@robaone-redshelf robaone-redshelf deleted the ar-fix-pr-description-truncation branch January 5, 2026 15:58
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.

1 participant