Skip to content

[Bug] Default Agent not opening correctly #9772

Open

Description

@orca-discord-issues

OmarSultan OmarSultan via Discord

I currently have the dafault agent for opening workspaces as Claude , however everytime i click on a workspace it opens in Terminal , i tried to change that in the Settings but it just keeps opening to a default blank terminal. Noting that when i press a + to add a new tab and select Claude it works fine

Activity

  1. Hanxcellent commented on Jul 22, 2026

    @Hanxcellent

    Reproduced on macOS (dev build from current main, 1.4.150-rc.0):

    1. Settings → Agents → set Claude as default agent
    2. Click a workspace in the sidebar that has no terminal tab yet (e.g. the main checkout added via Add Project)
    3. A blank shell opens instead of Claude. Adding a tab via + and picking Claude works, matching the report.

    Root cause: the activation path (activateAndRevealWorktree → ensureWorktreeHasInitialTerminal) builds its startup fallback only from worktree.createdWithAgent and never consults the defaultTuiAgent setting, so any workspace not originally created with an agent always seeds a blank terminal.

    I'd like to work on this — plan is to fall back to the configured default agent (respecting disabled agents and the 'blank' preference) when the worktree has no createdWithAgent.

  2. nwparker commented on Jul 27, 2026

    @nwparker
    Contributor

    Screenshot needed

    Default agent opens blank Terminal instead of Claude. Please attach:

    1. Settings page showing the default agent set to Claude.
    2. Result after clicking a workspace (blank terminal).
    3. Working case: + → select Claude (for contrast).

    Orca version + OS would help.

  3. nwparker commented on Jul 27, 2026

    @nwparker
    Contributor

    Reproduction status: cannot_repro as a silent default-agent wiring bug (behavior matches current code)

    What “Default agent” actually drives

    settings.defaultTuiAgent is used for:

    • onboarding / first-folder seed (buildOnboardingFolderAgentStartup)
    • new agent tab / quick launch / floating-window agent
    • some AI action defaults

    It is not read by workspace click activation:

    src/renderer/src/lib/worktree-activation.ts  → defaultTuiAgent references: 0
    sidebar activateAndRevealWorktree(worktreeId) usually passes no `startup`
    

    Clicking an existing workspace restores its terminal layout (or creates a blank shell if none). Creating a Claude tab via + works because that path explicitly launches the selected agent.

    Attempt

    • Code trace of activate paths (WorktreeList, Jump palette, Manage sessions): plain activateAndRevealWorktree(id) without default-agent startup.
    • Reopen-with-agent only via worktree.createdWithAgent (buildCreatedAgentReopenStartup), not global default.

    Product note

    If the intended UX is “every workspace open launches Default agent,” that is a feature gap / product change, not a regression of an existing code path. If a specific entrypoint (e.g. new project first open) still ignores default when it should seed Claude, please name that entrypoint + Orca version for a follow-up.

  4. added
    pending_reproRepro attempted; still pending conclusive reproduction
    on Jul 27, 2026
  5. orca-discord-issues commented on Aug 29, 2026

    @orca-discord-issues
    Author

    Stratus Stratus via Discord

    Echoing this, I would love to see a setting for clicking on a worktree that doesn't have anything open! I'm having to close terminal every time.

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpending_reproRepro attempted; still pending conclusive reproduction

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions