The Claude Dev plugin lost the ability to read terminal output across different environments (local and GitHub Codespaces) after executing a pre-commit hook that runs a project summarization script. This issue persists even in new, clean branches and fresh Codespaces.
Key Observations
The issue is specific to the Claude Dev plugin; terminal output is still visible to the user.
The problem occurs in both local and GitHub Codespaces environments.
The issue was triggered after running a pre-commit hook that executes a Python script.
The problem persists across different sessions, branches, and newly created Codespaces.
Pylance is the only other VS Code extension installed.
A similar script in a different repository (express.js), also created by Claude, led to the same behavior in that development environment.
Triggering Script Details
The pre-commit hook that triggered the issue contains the following code:
#!/bin/sh
# Run the Python script to summarize the project
python3 /workspaces/credex-bot/summarize_project.py
# Add the generated summary to the commit
git add /workspaces/credex-bot/docs/code_summary.md
# Continue with the commit
exit 0
This hook runs a Python script (summarize_project.py) to generate a project summary and adds it to the commit.
Potential Causes
The issue likely stems from an internal bug in the Claude Dev plugin, possibly related to:
Output buffering issues when executing external scripts
Asynchronous processing problems with Git hooks
State management errors after script execution
Permission or security feature mishandling during Git operations
Memory management issues triggered by the summarization process
Interaction problems with Codespaces' terminal emulation during hook execution
Version-specific bug related to handling Git hook outputs
Steps to Reproduce
Set up a Git repository with the above pre-commit hook.
Create or modify a file to trigger a commit.
Attempt to commit the changes, which will execute the pre-commit hook.
After the commit process, try to use the Claude Dev plugin to read any terminal output.
Observe that the plugin cannot read the output, while it remains visible in the terminal.
Environment Details
VS Code Version: codespaces
Claude Dev Plugin Version: latest
Operating System: codespaces
GitHub Codespaces: not sure
Additional Context
The issue persists even after creating new Codespaces and branches, suggesting it might be related to account-level settings or a fundamental interaction between the plugin and Codespaces.
A similar issue was observed in a JavaScript project on a local machine with a comparable script, indicating the problem might not be limited to a specific programming language or environment.
The problem seems to be reproducible across different projects when similar summarization scripts are used in pre-commit hooks.
Impact
This issue significantly impairs the functionality of the Claude Dev plugin, as it can no longer read terminal output after the hook execution. This limitation severely affects the plugin's usefulness in development workflows, especially in projects utilizing Git hooks for automated tasks.
This issue occurs periodically, and then eventually seems to resolve itself. Right now it's maybe one in ten or twenty terminal outputs that I have to copypaste in.
Claude Dev Plugin: Terminal Output Reading Issue
Issue Description
The Claude Dev plugin lost the ability to read terminal output across different environments (local and GitHub Codespaces) after executing a pre-commit hook that runs a project summarization script. This issue persists even in new, clean branches and fresh Codespaces.
Key Observations
Triggering Script Details
The pre-commit hook that triggered the issue contains the following code:
This hook runs a Python script (
summarize_project.py
) to generate a project summary and adds it to the commit.Potential Causes
The issue likely stems from an internal bug in the Claude Dev plugin, possibly related to:
Steps to Reproduce
Environment Details
Additional Context
Impact
This issue significantly impairs the functionality of the Claude Dev plugin, as it can no longer read terminal output after the hook execution. This limitation severely affects the plugin's usefulness in development workflows, especially in projects utilizing Git hooks for automated tasks.