fix: remove --bare flag to restore OAuth login for Claude Pro/Max #32
No reviewers
Labels
No labels
blocked
needs-review
phase:0
phase:1
phase:1.5
phase:2
phase:3
phase:4
phase:5
phase:6+
priority:p0
priority:p1
priority:p2
security
type:chore
type:ci
type:docs
type:feat
type:fix
type:idea
type:known-issue
type:refactor
type:test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: dev/disclaw#32
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/remove-bare-flag"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
--baredisables OAuth/keychain auth entirely and requiresANTHROPIC_API_KEY, which breaks Claude Pro/Max subscriptions. Even after removingCI=true, users saw "Not logged in" because--barewas still forcing API key mode.Solution
Remove
--bareand--append-system-prompt-filefrom the runner args.CLAUDE.md isolation is achieved structurally: workspaces live under
~/.disclaw/workspaces/(outside the DisClaw repo), so CLAUDE.md walk-up never reaches the DisClaw project CLAUDE.md. No flag needed.Changes
src/agent/runner.ts: removed--bareand--append-system-prompt-filefrom argstests/integration/no-parent-claude-md-leak.test.ts: rewritten to assert--bareis absent and verify correct args (-p,--output-format json) are presenttests/unit/sanitize-env.test.ts: fixed 2 tests that expectedCI=true(already removed in PR #29)Tests
35/35 passing.
npm run build && npm testgreen.Security checklist
shell: trueintroducedsanitizedEnv()still strips Discord tokens from child env