gemini-cli - 💡(How to fix) Fix Disk-full disables recording silently [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#27277Fetched 2026-05-20 03:59:34
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
labeled ×2

Error Message

if (isNodeError(error) && error.code === 'ENOSPC') { debugLogger.warn(ENOSPC_WARNING_MESSAGE); Disk-full should be user-visible immediately. The UI should say that the session is no longer being saved. The exit summary should not print a resume command for a disabled recorder. If possible, the CLI should retry after disk space is restored or at least preserve a clear error state. Silent data loss is the worst behavior here.

Root Cause

When a write hits ENOSPC, the recorder sets conversationFile = null. From that point on, recording methods return early and no new messages are saved. The user can continue chatting normally. The warning is written to debugLogger, not shown in the main UI. The exit summary can still print a resume command because the runtime session ID still exists. This creates a session that looks normal during use but is not actually saved.

Code Example

if (isNodeError(error) && error.code === 'ENOSPC') {
    this.conversationFile = null;
    debugLogger.warn(ENOSPC_WARNING_MESSAGE);
    return;
  }

---

if (!this.conversationFile || !this.cachedConversation)
    return message.id || randomUUID();

---

╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                                                                                                                                                                 │
About Gemini CLI│                                                                                                                                                                                                                                                                                 │
CLI Version                                                                                    0.42.0Git Commit                                                                                     68e2196d5                                                                                                                                                                        │
Model                                                                                          Auto (Gemini 3)Sandbox                                                                                        no sandbox                                                                                                                                                                       │
OS                                                                                             linux                                                                                                                                                                            │
Auth Method                                                                                    Signed in with GoogleTier                                                                                           Gemini Code Assist in Google One AI Pro│                                                                                                                                                                                                                                                                                 │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
RAW_BUFFERClick to expand / collapse

What happened?

When a write hits ENOSPC, the recorder sets conversationFile = null. From that point on, recording methods return early and no new messages are saved. The user can continue chatting normally. The warning is written to debugLogger, not shown in the main UI. The exit summary can still print a resume command because the runtime session ID still exists. This creates a session that looks normal during use but is not actually saved.

packages/core/src/services/chatRecordingService.ts:440

  if (isNodeError(error) && error.code === 'ENOSPC') {
    this.conversationFile = null;
    debugLogger.warn(ENOSPC_WARNING_MESSAGE);
    return;
  }

packages/core/src/services/chatRecordingService.ts:517

if (!this.conversationFile || !this.cachedConversation)
  return message.id || randomUUID();

What did you expect to happen?

Disk-full should be user-visible immediately. The UI should say that the session is no longer being saved. The exit summary should not print a resume command for a disabled recorder. If possible, the CLI should retry after disk space is restored or at least preserve a clear error state. Silent data loss is the worst behavior here.

Client information

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

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

╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                                                                                                                                                                 │
│ About Gemini CLI                                                                                                                                                                                                                                                                │
│                                                                                                                                                                                                                                                                                 │
│ CLI Version                                                                                    0.42.0                                                                                                                                                                           │
│ Git Commit                                                                                     68e2196d5                                                                                                                                                                        │
│ Model                                                                                          Auto (Gemini 3)                                                                                                                                                                  │
│ Sandbox                                                                                        no sandbox                                                                                                                                                                       │
│ OS                                                                                             linux                                                                                                                                                                            │
│ Auth Method                                                                                    Signed in with Google                                                                                                                              │
│ Tier                                                                                           Gemini Code Assist in Google One AI Pro                                                                                                                                          │
│                                                                                                                                                                                                                                                                                 │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
</details>

Login information

Signed in with Google

Anything else we need to know?

No response

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 Disk-full disables recording silently [1 participants]