Skip to content

Conversation

@AndyWendt
Copy link

Summary

Fixes #206 - 'yolo' mode not sticking in happy app

This PR contains two related fixes:

Fix 1: Set options.permissionMode when --yolo flag is used

The --yolo flag only passed --dangerously-skip-permissions to Claude CLI but did not set options.permissionMode internally. This caused the PermissionHandler to stay in "default" mode.

// Before: only passes CLI flag to Claude
} else if (arg === '--yolo') {
  unknownArgs.push('--dangerously-skip-permissions')
}

// After: ALSO sets internal permissionMode
} else if (arg === '--yolo') {
  unknownArgs.push('--dangerously-skip-permissions')
  options.permissionMode = 'bypassPermissions'
}

Fix 2: Preserve CLI permission mode when mobile sends "default"

When the CLI is started with --yolo, messages from the mobile app with permissionMode: "default" would override the CLI's setting. Now the CLI's explicit mode is preserved unless the mobile explicitly chooses a different mode.

// If CLI was started with --yolo, don't let "default" messages override it
if (cliPermissionMode && incomingMode === 'default') {
    messagePermissionMode = cliPermissionMode;
}

Test Plan

  • Built and installed CLI locally from v0.13.0 + fix
  • Started happy --yolo
  • Verified "bypass permissions on" shows in status bar
  • Sent command from mobile app (with default permission mode)
  • Confirmed tool executes without permission prompt
  • Session runs successfully

Notes

Related

  • Closes #206

@AndyWendt
Copy link
Author

I branched off of v0.13.0 because main didn't appear to be working. There's a delta here.

I tested on mac / android

The --yolo flag only passed --dangerously-skip-permissions to Claude CLI
but did not set options.permissionMode internally. This caused the
PermissionHandler to stay in "default" mode for remote/mobile sessions,
resulting in permission prompts even when yolo mode was selected.

Additionally, when the CLI is started with --yolo, messages from the
mobile app with permissionMode: "default" would override the CLI's
setting. Now the CLI's explicit mode is preserved unless the mobile
explicitly chooses a different mode.

Fixes slopus/happy#206

Co-Authored-By: Claude <noreply@anthropic.com>
@AndyWendt AndyWendt force-pushed the fix/yolo-permission-mode-206-v0.13.0 branch from ad9192d to 40ff9ce Compare January 17, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant