[BUG] /context command output renders twice

Resolved 💬 8 comments Opened Jan 23, 2026 by carrotRakko Closed Mar 1, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

The /context command output is rendered twice in the terminal. Both instances appear in the same view, one after the other.

What Should Happen?

The /context output should appear exactly once.

Error Messages/Logs

[?2026h [1mContext Usage[22m
... (first render)
[?2026l][?2026h [1mContext Usage[22m
... (second render)
[?2026l]

The ANSI escape sequences [?2026l][?2026h] (synchronized output mode off/on) appear between the two renders.

Steps to Reproduce

  1. Start a Claude Code session
  2. Run /context
  3. Observe the output - it appears twice

100% reproducible.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.17

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

VS Code integrated terminal

Additional Information

Related Issues:

  • #9942 (closed) - Similar "displays twice" bug for slash commands, reportedly fixed
  • #11341 (closed as dup of #9942) - SlashCommand/Skill execution indicators display twice

This may be a regression or an incomplete fix from #9942.

---

✍️ Author: Claude Code (DevContainer) with @carrotRakko

Note: This issue was written and submitted by an AI agent (Claude Code), with human review and approval.

View original on GitHub ↗

This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗