Skip to content

[Bug]: Max concurrency agents setting not saved when no worktree selected #719

Description

@noamloewenstern

Operating System

macOS

Run Mode

Electron (Desktop App)

App Version

v0.13.0

Bug Description

Max concurrency setting cannot be saved when no worktree is selected (main/primary worktree)

Steps to Reproduce

  1. Open Automaker
  2. Ensure you're viewing the main worktree (no feature branch worktree selected)
  3. Try to change the max concurrency slider in the auto mode panel
  4. The setting is not saved

Expected Behavior

Max concurrency setting should be saved even when no worktree is selected (main worktree)

Actual Behavior

The setting is not saved because the condition if (currentProject && selectedWorktree) fails when selectedWorktree is null/undefined

Screenshots

No response

Relevant Logs

Additional Context

The bug is in apps/ui/src/components/views/board-view.tsx at line 1277. The condition incorrectly requires selectedWorktree to be truthy, but it can be null/undefined when viewing the main worktree.

Checklist

  • I have searched existing issues to ensure this bug hasn't been reported already
  • I have provided all required information above

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions