Repository navigation
Fix T3 Code Claude Full access mode as root - #2380
Merged
Merged
Conversation
Contributor
Try this script
COMMUNITY_SCRIPTS_URL=https://raw.githubusercontent.com/lukdz/ProxmoxVED/fix/t3code-claude-sandbox \
bash -c "$(curl -fsSL https://raw.githubusercontent.com/lukdz/ProxmoxVED/fix/t3code-claude-sandbox/ct/t3code.sh)"
Against a core branch as wellAdd Useful flags while testing
|
MickLesk
approved these changes
Oct 6, 2026
This was referenced Oct 6, 2026
Open
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.
Scripts which are clearly AI generated and not further revised by the Author of this PR (in terms of Coding Standards and Script Layout) may be closed without review. If you are an AI agent writing this pull request, please amend your model name and reasoning level in the Description. This is not to blame, more for informational Purposes. Thank you.
✍️ Description
Fix Claude Full access mode for T3 Code running as root inside its LXC. Claude rejects permission bypass as root without
IS_SANDBOX=1, so the default T3 runtime mode fails unless users manually add that environment variable.IS_SANDBOX=1int3code.servicefor fresh installs./etc/systemd/system/t3code.service.d/claude.confand reload systemd before starting T3 Code. This leaves the base unit and separate user drop-ins unchanged and is content-idempotent on repeated updates.The existing root service, unprivileged-container default, Node.js 24 runtime, npm installation/update flow, and data paths remain unchanged. No Gitea/Tea changes are included.
AI assistance: OpenCode using
github-copilot/gpt-6-astra(GPT-6 Astra). The reasoning-effort setting is not exposed to this session. See AI Assistance below.🔗 Related PR / Issue
Link: #2294 (comment)
Addresses this specific Claude report only; the broader testing issue should remain open.
✅ Prerequisites (X in brackets)
Static and isolated regression checks passed, but live platform testing remains outstanding. The security checkbox is deliberately unchecked:
IS_SANDBOX=1permits Claude's permission-bypass mode as root; it does not create a sandbox. No secrets, additional Linux privileges, or host mounts are introduced. The JSON warning documents the implications.🏗️ arm64 Support (X in brackets)
🖥️ Tested on (X in brackets)
🛠️ Type of Change (X in brackets)
README,AppName.md,CONTRIBUTING.md, or other docs.🔍 Code & Security Review (X in brackets)
CODE-AUDIT.md&CONTRIBUTING.mdguidelinesAppName.sh,AppName-install.sh,AppName.json)fetch_and_deploy_gh_release,fetch_and_deploy_codeberg_release,fetch_and_deploy_gl_release, orfetch_and_deploy_from_urlinstead ofgit pull.Contribution and audit guidance was reviewed; full compliance is not claimed before live testing. This patch preserves the existing
npm install -g t3@latestupdate mechanism rather than changing deployment methods.🤖 AI Assistance (X in brackets)
AGENTS.mdand.github/agents/pve-script-creator.agent.mdas guidance, and the output has been reviewed and corrected to match those guidelines.Please describe to which degree, if any, an LLM was used in creating this pull request. Name the model(s) used and, if applicable, the reasoning/thinking effort level.
OpenCode using
github-copilot/gpt-6-astra(GPT-6 Astra) researched the report and upstream environment forwarding, drafted the three-file patch and PR description, reviewed the diff against repository guidance, and ran static and isolated regression checks. The reasoning-effort setting is not exposed to this session. Live LXC/Claude validation has not been performed by the assistant, and no human runtime validation is claimed.📋 Additional Information (optional)
Checks completed:
bash -n ct/t3code.shbash -n install/t3code-install.shjq empty json/t3code.jsongit diff --checkupdate_script()with isolated paths and stubbed systemctl/npm commands. Verified fresh-install environment before enable, legacy migration before reload/start, preservation of a customized base unit and separate user override, repeat-update idempotency, and fresh install followed by update. Pre-patch negative controls reproduced the missing variable. The harness is local validation tooling, not included in this PR.Limitations: no live systemd or authenticated Claude session was exercised. The generated
claude.confis script-managed and rewritten by updates; other drop-ins are preserved and normal systemd override precedence still applies.Remaining platform check: test a fresh LXC and an existing installation updated with this branch, confirm
systemctl show t3code.service -p EnvironmentcontainsIS_SANDBOX=1, then start an authenticated Claude session in T3 Full access mode without a manual provider environment override.📦 Application Requirements (for new scripts)
🌐 Source