gemini-cli - 💡(How to fix) Fix DATA LOST again and again [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
google-gemini/gemini-cli#25679Fetched 2026-04-20 12:15:28
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Author
Participants
Timeline (top)
labeled ×1

Code Example

#ProjectMandates

## Data Integrity & Preservation
- **Zero Data Loss:** You MUST NOT delete, truncate, or lose any original data, documentation (`<xs:documentation>`), localized descriptions, or comments when refactoring, splitting, or moving files.
- **Documentation Fidelity:** Every character of existing documentation and platform-specific notes must be preserved exactly as found in the source.
- **Verification Requirement:** Before completing any task that involves modifying existing data structures, you must empirically verify that 100% of the original informational content is present in the new structure.
- **Safety First:** If you are unsure if a change will preserve all data, you must ask for clarification or perform a non-destructive dry run first.

---

> /about
About Gemini CLI│                                                                                                                                                                                  │
CLI Version                                                   0.38.2Git Commit                                                    b0ed611a0                                                                                                          │
Model                                                         Auto (Gemini 3)Sandbox                                                       no sandbox                                                                                                         │
OS                                                            win32                                                                                                              │
Auth Method                                                   Signed in with Google (@gmail.com)Tier                                                          Gemini Code Assist in Google One AI Pro
RAW_BUFFERClick to expand / collapse

What happened?

Gemini quietly removed the xs:documentation tags from my xsd file, as I only asked gemini to update some information in the file, even though in Gemini.md I told it to keep the original data:

#ProjectMandates

## Data Integrity & Preservation
- **Zero Data Loss:** You MUST NOT delete, truncate, or lose any original data, documentation (`<xs:documentation>`), localized descriptions, or comments when refactoring, splitting, or moving files.
- **Documentation Fidelity:** Every character of existing documentation and platform-specific notes must be preserved exactly as found in the source.
- **Verification Requirement:** Before completing any task that involves modifying existing data structures, you must empirically verify that 100% of the original informational content is present in the new structure.
- **Safety First:** If you are unsure if a change will preserve all data, you must ask for clarification or perform a non-destructive dry run first.

What did you expect to happen?

Making edits without data loss.

Client information

<details> <summary>Client Information</summary>

Run gemini to enter the interactive CLI, then run the /about command.

> /about
│ About Gemini CLI                                                                                                                                                                 │
│                                                                                                                                                                                  │
│ CLI Version                                                   0.38.2                                                                                                             │
│ Git Commit                                                    b0ed611a0                                                                                                          │
│ Model                                                         Auto (Gemini 3)                                                                                                    │
│ Sandbox                                                       no sandbox                                                                                                         │
│ OS                                                            win32                                                                                                              │
│ Auth Method                                                   Signed in with Google (@gmail.com)                                                                         │
│ Tier                                                          Gemini Code Assist in Google One AI Pro
</details>

Login information

No response

Anything else we need to know?

No response

extent analysis

TL;DR

Review and update the Gemini configuration to ensure it preserves xs:documentation tags as per the project mandates.

Guidance

  • Verify that the Gemini configuration aligns with the project mandates outlined in Gemini.md, specifically the Zero Data Loss and Documentation Fidelity sections.
  • Check the Gemini version (0.38.2) for any known issues or updates related to preserving xs:documentation tags.
  • Consider performing a non-destructive dry run before making any changes to the xsd file to ensure data integrity.
  • Review the Gemini CLI output and documentation to understand how to configure it to preserve original data and documentation.

Notes

The issue seems to be related to the Gemini configuration or version, but without more information about the specific commands or configuration used, it's difficult to provide a more detailed solution.

Recommendation

Apply workaround: manually review and update the Gemini configuration to ensure it preserves xs:documentation tags, as the current version (0.38.2) may have issues with this functionality.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

gemini-cli - 💡(How to fix) Fix DATA LOST again and again [1 participants]