GoogleCloudPlatform / GoogleCloudPlatform/generative-ai
[Bug]: Generated PowerPoint artifacts clip leading currency and numeric characters
- Dominant language
- Jupyter Notebook
- Stars
- 17.7k
- Forks
- 4.5k
- Avg merge
- 12h 38m
- Merged PRs (30d)
- 42
Description
### File Name
search/gemini-enterprise/ge-demo-generator/agent_template/adk_agent/app/
### What happened?
I reproduced a rendering issue in PowerPoint artifacts generated by the Gemini Enterprise Demo Generator autonomous workflow.
The generated .pptx file opens successfully and the overall slide layout is readable, but numeric and currency values are systematically clipped from the left edge in multiple slides.
This is not limited to one textbox or one slide. I observed the same pattern repeatedly across executive KPI cards, tables, and simulation scenario values.
Examples from the generated deck:
Expected:
USD 4,275.00
Rendered:
,275.00
Expected:
USD 3,825.00
Rendered:
,825.00
Expected:
USD 450.00
Rendered:
50.00
Expected:
USD 5,100.00
Rendered:
,100.00
Expected:
USD 1,350.00
Rendered:
,350.00
Expected:
USD 6,420.00
Rendered:
,420.00
Expected:
USD 14,850 / month
Rendered:
4,850.00 / month
Expected:
USD 18,900 / month
Rendered:
8,900.00 / month
Expected:
USD 11,048 / month
Rendered:
1,048.00 / month
I also observed the same behavior in normal sentence text:
Expected:
Washington's $20.76/hr Labor Squeeze
Rendered:
Washingtons 0.76/hr Labor Squeeze
The apostrophe and the leading "$20" were missing.
In product margin tables, the same issue affected values such as costs, retail prices, and margin-dollar values.
This makes the problem appear systematic rather than being caused by a single malformed text field.
Actual behavior:
The PowerPoint artifact is generated and opens correctly, but some text boxes or table cells do not provide enough left-side rendering space for the generated text. Leading currency symbols and one or more leading digits are lost.
Expected behavior:
Generated PowerPoint artifacts should preserve the complete source value exactly as produced by the underlying data/model.
For example:
$4,275.00 should render as $4,275.00
$185.00 should render as $185.00
$20.76/hr should render as $20.76/hr
The presentation-generation workflow should validate text-box/table-cell sizing, margins, autofit behavior, font metrics, and the final rendered output before publishing the .pptx artifact.
Why this matters:
The generated deck is intended to be customer-facing and executive-facing. Missing leading digits can materially change financial values and business metrics.
For example:
$18,900 becoming 8,900
$11,048 becoming 1,048
$4,275 becoming ,275
is not only a cosmetic issue; it changes the apparent meaning of the business result.
Because the issue occurs in an artifact generated by the reusable demo workflow, manually correcting the current PowerPoint file does not protect future demos generated from the same template/workflow.
I reproduced the issue across multiple slides in the same generated deck and validated the expected values against the underlying generated task result and operational data.
Reported and reproduced by:
Nilden Tutalar
Cloud Solution Architect - Cloud4Next
Contact: nilden.tutalar@cloud4next.com
### Relevant log output
```shell
Generated artifact:
deliverable.pptx
Observed rendering examples:
Expected -> Rendered
$4,275.00 -> ,275.00
$3,825.00 -> ,825.00
$450.00 -> 50.00
$5,100.00 -> ,100.00
$1,350.00 -> ,350.00
$6,420.00 -> ,420.00
$14,850 / month -> 4,850.00 / month
$18,900 / month -> 8,900.00 / month
$11,048 / month -> 1,048.00 / month
Washington's $20.76/hr
->
Washingtons 0.76/hr
The issue appeared on multiple slides and in multiple independently positioned numeric fields.
The .pptx itself was valid and opened normally; the defect was visible in the rendered slide content.
```
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Contributor guide
Research direction
Start in search/gemini-enterprise/ge-demo-generator/agent_template/adk_agent/app/ and reproduce the autonomous workflow that produces deliverable.pptx. Trace the shared text-box and table-cell sizing, margins, autofit, and font-metric handling across the affected slides. Done means regenerated artifacts preserve the complete currency, numeric, and apostrophe-containing values shown in the report.
Written by the indexing model from the issue text.
Assessment
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100