Skip to content
TheChatArchiveThe Chat Archive
composer-2.5· unknownHugging Face ibragim-bad/swe_rebench_07_2026_trajectories

fix(installer): back navigation from Pi-only install shows unrelated Gentle AI…

  1. User

    fix(installer): back navigation from Pi-only install shows unrelated Gentle AI configuration

    Pre-flight Checklist

    • I have searched existing issues and this is not a duplicate
    • I understand that PRs will be rejected if the linked issue does not have status:approved

    📝 Bug Description

    When running the gentle-pi installer from gentle-ai, if I select only Pi as the installation target and then use Back on the next step,
    the installer returns to an unexpected configuration flow.

    Instead of going back to the previous installation target selection, it shows configuration options that do not correspond to the selected
    Pi-only path, such as TDD configuration, multi-agent installation, communication style, and related Gentle AI setup options.

    🔄 Steps to Reproduce

    1. Start the gentle-ai installer.
      2. Select only Pi as the installation target.
      3. Continue to the next step.
      4. Select Back.
      5. Observe that the installer shows configuration screens for TDD, multi-agent setup, speaking style, etc.

    ✅ Expected Behavior

    After selecting Back, the installer should return to the previous relevant step in the Pi-only installation flow, likely the installation
    target selection screen.

    ❌ Actual Behavior

    The installer jumps to unrelated Gentle AI configuration screens, including TDD setup, multi-agent installation, communication style, and other
    options that were not expected after choosing a Pi-only installation.

    Gentle AI Version

    v 1.30.5

    Operating System

    macOS

    AI Agent / Client

    Other

    📋 Affected Area

    CLI (commands, flags)

    💡 Logs / Error Output

    No logs available. This appears to be an installer navigation/state-flow issue.
    

    Additional Context

    This happens specifically when selecting only Pi during installation and then navigating back from the following step.

    Interface

    No new interfaces are introduced.

  2. Assistant

    Investigating the installer navigation flow for Pi-only installs and where Back routing goes wrong.

  3. Assistant

    Pi-only skips Persona/Preset and goes straight to DependencyTree, but Back still uses the default route to Preset (TDD, multi-agent, etc.). Adding Pi-only handling in goBack() and confirmSelection so Back returns to agent selection.

  4. Assistant

    Implementing the fix and adding tests.

  5. Assistant

    Fixed the Pi-only installer back-navigation bug.

    Root cause: Pi-only install skips Persona, Preset, TDD, and related screens and goes straight from agent selection to the dependency tree. Back navigation still used the default ScreenDependencyTree → ScreenPreset route, so users landed on unrelated Gentle AI configuration screens.

    Fix: When only Pi is selected, Back from the dependency tree (Esc or Enter on "Back") now returns to agent selection (ScreenAgents). Updated in:

    1. goBack() — Esc handling
    2. confirmSelection() — Enter on "Back" for both custom and non-custom preset paths

    Tests added:

    • TestPiOnlyDependencyTreeBackNavigatesToAgents (Esc)
    • TestPiOnlyDependencyTreeEnterBackNavigatesToAgents (Enter on Back)

    All internal/tui tests pass.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.