ISSUE DESCRIPTION fix(installer): back navigation from Pi-only install shows unrelated…
- User
ISSUE DESCRIPTION
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-piinstaller fromgentle-ai, if I select onlyPias the installation target and then useBackon 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
- Start the
gentle-aiinstaller.
2. Select onlyPias the installation target.
3. Continue to the next step.
4. SelectBack.
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
Piduring installation and then navigating back from the following step.Interface
No new interfaces are introduced.
- Assistant
I'll start by exploring the repository structure and locating the installer navigation logic related to Pi-only installs.
- Assistant
Looking at the installer-related code next, especially navigation and Pi-only flows.
- Assistant
Let me look at the installcmd and tui packages more carefully.
- Assistant
I'll search for Pi-related navigation and back-handling in the TUI.
- Assistant
rg is not available, let me use grep.
- Assistant
Found Pi-only helpers — I'll inspect their navigation and back handling next.
- Assistant
Inspecting
goBackand the ScreenAgents Pi-only path in detail. - Assistant
Reading goBack and the agents screen handling for the Pi-only path.
- Assistant
Let me read the goBack function completely.
- Assistant
Let me continue reading goBack, especially around ScreenDependencyTree.
- Assistant
Examining Pi-only helpers and the shouldShow* screen conditions that drive back navigation.
- Assistant
Let me get isPiOnlyAgents, piOnlyComponents, and shouldShowStrictTDDScreen.
- Assistant
Let me continue reading shouldShowStrictTDDScreen and check confirmSelection for DependencyTree back, and for ScreenReview back logic.
- Assistant
Reading existing Pi-only tests and the DependencyTree back path in confirmSelection.
- Assistant
Checking default selection state and other Backward edges from DependencyTree.
- Assistant
Confirming the bug: Pi-only skips to DependencyTree, but Back returns to Preset. Checking related navigation code and implementing the fix.
- Assistant
Implementing Pi-only back-navigation in both
goBackandconfirmSelection. - Assistant
Checking DependencyTree behavior for custom preset and what Pi-only should show.
- Assistant
Applying the fix in both back-navigation paths.
- Assistant
Updating the custom-preset Back branch and goBack next.
- Assistant
Fixing a brace I broke in the switch statement.
- Assistant
Now updating
goBackfor the DependencyTree path. - Assistant
I need to update the goBack DependencyTree handling to check Pi-only first. Also when Pi-only with custom preset, linearRoutes would go to Preset - so Pi-only should be handled regardless of preset.
...
- Assistant
Verifying Esc and Enter-on-Back both hit the fixed paths, then reproducing with a temporary test.
- Assistant
Checking DependencyTreeOptions for the Back cursor index and how existing tests invoke Esc.
- Assistant
Creating a temporary test to reproduce the bug and verify the fix.
- Assistant
Need to set GOPATH or GOMODCACHE.
- Assistant
PiOnly tests passed. Running related nav tests, then removing the temporary test file.
- Assistant
Cleaning up the temporary test and running the full tui package tests.
- Assistant
All TUI tests passed. Checking the diff for a clean change set.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.