Fix Google Calendar/Gmail disabled by read-only token mount #72
Reference in New Issue
Block a user
Delete Branch "fix/google-token-readonly"
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
token.jsonis mounted read-only (docker-compose.yml). Once the stored access token expires,GoogleService.__init__refreshes it and tries to write it back, raisingPermissionError. The catch-all inagents.pythen setsgoogle_calendar_enabled/google_gmail_enabledto False, so the agent loses the Calendar and Gmail tools on every restart.Fix
Ignore
OSErroron the write-back; refreshed creds stay in memory (google-auth keeps refreshing them in-process).Verification
PermissionError(13), Google disabled.pytest tests/: 356 passed.🤖 Generated with Claude Code