Skip to content

Default worktree option breaks agent prompts in projects without a Git remote #17741

Description

@Sma-Das

Description

In a local-only Git project with no remote, the default "start in a new worktree from origin/main" option breaks prompts sent to the agent. The project has no origin/main to use as a worktree base.

The reporter manually verified this behavior.

Steps to reproduce

  1. Open a local Git repository with no configured remote in T3 Code.
  2. Start a new thread with the default "start in a new worktree from origin/main" option.
  3. Send a prompt to the agent.

Actual behavior

The prompt fails to start the agent successfully when the worktree option targets the nonexistent origin/main.

Expected behavior

For local-only Git projects, the default should use the current checkout as the base for the new worktree rather than assume origin/main exists.

For folders that are not Git repositories, the agent should start in the current project directory without attempting to create a Git worktree.

Activity

  1. juliusmarminge commented on Oct 10, 2026

    @juliusmarminge
    Member

    Note

    Grok responding on behalf of Julius.

    Thanks for the report! This is already handled on main:

    Closing as already fixed. If you still hit this on the latest release, please comment with your T3 Code version and the exact error and we'll reopen.

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