Conversation
- Fix environment variables not being passed through gosu to non-root user - Add comprehensive env var passthrough (proxy, AWS, Anthropic, Claude-specific) - Fix command substitution error in claude.sh error message - Add timezone auto-detection for macOS/Linux systems - Add --auth-with pattern for cleaner authentication method selection - Add -v flag support for flexible volume mounting - Remove ineffective XDG_CONFIG_HOME export - Update documentation for OAuth to API key switching via /login Fixes #6
- Revert broad ~/.config mounting that caused issues - Restore specific ~/.config/gcloud mounting for Vertex AI - Add GH_TOKEN and GITHUB_TOKEN environment variable passthrough - Document GitHub CLI authentication in README - Research keyring vs container auth challenges in dev logs 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
…olumes - Remove dangerous chmod operations on user-mounted directories - Eliminate hardcoded list (.docker, .terraform.d, .kube, .gitconfig, .npmrc) - Switch to permission-preserving symlink-only approach - Users control their own mount permissions for security - Prevents SSH key corruption and other permission issues BREAKING: Users must set appropriate permissions on mounted volumes themselves 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
There was a problem hiding this comment.
Bug: Argument Parsing Infinite Loop
The parse_args() function is missing shift statements for the --inspect and --ps options, causing an infinite loop in the argument parsing. Additionally, the --ps option calls list_containers() but fails to exit, leading to the script incorrectly proceeding to exec "$CLAUDE_SH" --yolo after listing containers.
claude-yolo#L83-L89
Bug: Script Argument Handling Inconsistency
The main script's case statement duplicates argument handling already present in the parse_args function, leading to inconsistent behavior:
--inspectand--psare handled directly, causing other arguments (e.g.,-v) to be silently ignored when combined.--helpis processed twice.
claude-yolo#L122-L137
BugBot free trial expires on July 22, 2025
You have used $0.00 of your $10.00 spend limit so far. Manage your spend limit in the Cursor dashboard.
Was this report helpful? Give feedback by reacting with 👍 or 👎
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Major enhancements to Claude Code YOLO with critical security fixes:
--auth-with METHODpattern (claude, api-key, bedrock, vertex)-vflag in claude-yoloGH_TOKENenvironment variableCritical Security Fix
Problem: The script was running
chmod -R 755on ALL user-mounted directories, including.ssh, corrupting SSH private key permissions and breaking authentication.Solution:
Other Improvements
--auth-withparameter replaces scattered auth flags-vsupport to claude-yolo for custom mountsGH_TOKENenvironment variable passthrough for container authBreaking Changes
Test plan
-vflag preserves permissionsGH_TOKENenvironment variable