Bug: /context command output appears temporarily then vanishes without trace (v2.1.9 regression)

Status Open
Reported on v2.1.9
Maintainer reply None cached
Activity 13 comments · opened Jan 16, 2026

Summary

In Claude Code v2.1.9, the /context command output behaves strangely: it appears in a temporary full-screen view, then completely vanishes after a few seconds, leaving no trace in the conversation. This is a regression from v2.1.7 where the output was permanently appended to the chat history.

Steps to Reproduce

  1. Start a Claude Code session (v2.1.9)
  2. Have some conversation with Claude
  3. Run /context command
  4. Observe the behavior

What Happens (Bug)

| Step | Behavior |
|------|----------|
| 1 | Run /context |
| 2 | Brief pause (few seconds) |
| 3 | Output appears, taking over entire screen |
| 4 | After a few more seconds, output vanishes |
| 5 | Previous chat history returns, but /context output is gone |

The /context output acts like a temporary "flash" that disappears, as if the command was never run.

Expected Behavior (v2.1.7)

The /context output should be permanently appended below the chat history, visible when scrolling, and accessible to Claude in the conversation context.

Impact

  • Users cannot review context information after the brief display
  • Claude cannot see/reference the /context output (it's not in conversation history)
  • The command becomes essentially useless for sharing context info with Claude

Environment

  • Claude Code version: 2.1.9
  • Platform: WSL2 (Linux)
  • Terminal: Windows Terminal

---

🤖 This issue was created with assistance from Claude Code

View original on GitHub ↗

13 Comments

github-actions[bot] · 7 months ago

Found 2 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/18488
  2. https://github.com/anthropics/claude-code/issues/18521

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

GavinRiver · 7 months ago

Tested on v2.1.12 - issue persists.

The bug occurs even in a fresh new session (not just long conversations).

Environment:

  • Claude Code: 2.1.12 (native binary install)
  • Platform: WSL2 (Linux)
  • Terminal: PowerShell 7
brian-poillucci · 7 months ago
Tested on v2.1.12 - issue persists. The bug occurs even in a fresh new session (not just long conversations). Environment: Claude Code: 2.1.12 (native binary install) Platform: WSL2 (Linux) * Terminal: PowerShell 7

Yup v2.2.12 - issue remains.

festoinc · 7 months ago

same issue

sandroden · 7 months ago

Environment

  • Claude Code version: 2.1.12
  • OS: Linux 6.14.0-37-generic
  • Platform: linux

Additional Context

  • Tested in multiple different projects with the same result
  • Tested in terminator, tmux and gnome-terminal

Last known working: approximately 10 days ago
Likely introduced in a recent update

jsheremeta-alt · 7 months ago

Environment:

  • Claude Code version: 2.1.12
  • OS: macOS 26.2 (Darwin 25.2.0, Build 25C56)
  • Terminal: Terminal.app (default)
  • Installed via: ~/.local/bin/claude (local install, not npm)

Symptoms:

  • /context output appears briefly in full-screen, then completely vanishes (flies off screen)
  • Context bar stuck at 0% (though actual context usage is ~12%)

Additional Testing:

  • Reproducible across multiple projects
  • Workaround: /compact command still works correctly

Last known working: 2.1.4 (approximately 1 week ago)

  • 2.1.4 ✅ worked
  • 2.1.11 ❌ broken
  • 2.1.12 ❌ still broken

Regression introduced between 2.1.4 → 2.1.11.

pybe · 7 months ago

Additional Findings: SSH-Specific Issue

We've done extensive debugging on this issue and found it's specifically related to SSH sessions, not terminal capabilities.

Environment Comparison

| Setting | Local Ubuntu WSL (✅ works) | Debian 13 via SSH (❌ broken) |
|---------|---------------------------|------------------------------|
| Claude Code | 2.1.12 | 2.1.12 |
| Node.js | v24.12.0 | v24.13.0 (upgraded from v20) |
| TERM | xterm-256color | xterm-256color / tmux-256color |
| COLORTERM | truecolor | truecolor |
| RGB support | Yes | Yes (verified with 24-bit color test) |

What We Verified Works

  • 24-bit true color rendering (gradient test passes)
  • tmux RGB capabilities (tmux info | grep RGBRGB: (flag) true)
  • COLORTERM=truecolor is set
  • Terminal size detection

What We Tried (None Fixed It)

  1. Upgraded Node.js from v20.19.2 to v24.13.0 (to match working system)
  2. Added TERM to SSH AcceptEnv in sshd_config
  3. Added TERM fallback in bashrc: [ "$TERM" = "dumb" ] && export TERM=xterm-256color
  4. Set FORCE_COLOR=3 environment variable
  5. Various tmux terminal-features and terminal-overrides for RGB

Observed Behavior

  • Over SSH, /context shows a plain text token count dump (not the colorful grid visualization) - listing Memory files, Skills, User items, and Plugins with their token counts
  • This text output flashes for ~125-250ms before the screen clears
  • Same behavior with and without tmux
  • Only difference between working/broken: SSH in the chain

Conclusion

This appears to be an Ink alternate screen buffer timing issue specific to SSH sessions. Over SSH, it falls back to text output instead of the visual grid, and even that text disappears almost immediately as the alternate buffer clears.

System Details

  • Server: Debian 13 (trixie) on Proxmox VM
  • Client: Windows Terminal → SSH
  • Kernel: 6.8.12-13-pve
yparenteau · 7 months ago

Facing the same issue on iTerm2 terminal.

jerrybennett · 7 months ago

Confirming this issue on a different platform:

Environment:

  • Claude Code version: 2.1.12
  • macOS (Darwin 24.6.0)
  • iTerm2
  • Scrollback: 20,000 lines
  • "Save lines to scrollback in alternate screen mode" enabled
  • "Save lines to scrollback when an app status bar is present" enabled

Behavior: Identical to OP. /context output displays briefly (~10 seconds), then vanishes completely. Not
recoverable in scrollback despite iTerm2 settings that normally preserve alternate screen buffer content.

Janzert · 7 months ago

Seeing this on Windows using Powershell as well.

briang1621 · 6 months ago

Time to rebuild this feature using a different method of delivering the results, this is like the third time it broke in 6 months.

aschrijver · 5 months ago

In Zed the command gives no output anymore, where it worked fine 2 weeks or so ago. Asking the claude acp agent it says it is right there and mentions tokens used and still available.

galaris · 5 months ago

Yep, this issue still persist on 2.1.81 (Claude Code)