Skip to content

[Bug]: Can't launch thread in non git directory, when new worktree is set to default. #1914

@ElSargo

Description

@ElSargo

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Start the app
  2. Make sure new worktree is the default for new threads
  3. Open a folder without a git repo inside
  4. Create a new thread to launch an agent

Expected behavior

Current checkout / local should be the default when git is not initialized, because there is no way to have a worktree without git.

Actual behavior

We get an error message: "Select a base branch before sending in New work tree mode."
Also the selector for local / worktree is missing, so you are required to change the default in settings ( part of the problem )

Impact

Minor bug or occasional failure

Version or commit

Version 0.0.17

Environment

Tested on linux with codex app server.

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

You can change the default in your settings to get it going, this is not ideal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaving incorrectly.needs-triageIssue needs maintainer review and initial categorization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions