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
shellNo 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. - Assistant
I'll start by exploring the repository structure and locating the installer navigation logic related to Pi-only install.
- Assistant
This is a Go project — I'll search for installer and Pi-related navigation code.
- Assistant
rg is not available, let me use grep.
- Assistant
Let me look at the TUI screens and model for navigation related to Pi.
- Assistant
Let me examine the router and agents selection flow for Pi-only navigation.
- Assistant
Searching specifically for Pi agent installation flow and navigation overrides.
- Assistant
Found Pi-only helpers in the model — reading the navigation and selection flow next.
- Assistant
Let me look at goBack and isPiOnlyAgents and the continue flow after agents selection.
- Assistant
Let me read the goBack function and the ScreenAgents enter handler with pi-only logic.
- Assistant
The Pi-only path skips to DependencyTree then backs into Preset — I'll inspect that path and related tests.
- Assistant
Let me look at the DependencyTree handling in confirmSelection more carefully, and also any existing tests related to pi-only flow.
- Assistant
Checking openspec notes and how similar navigation tests are structured.
- Assistant
There's already a Pi-only forward test and DependencyTree back tests — reading those next.
- Assistant
Reproducing the bug with a temporary test, then applying the fix.
- Assistant
Need to set GOPATH or GOMODCACHE
- Assistant
Bug reproduced. Applying the fix in both backlog paths.
- Assistant
Oops, wrong sed syntax
- Assistant
Confirmed Screen 5 is ScreenPreset. Applying the fix in both places.
- Assistant
I'll use replace to fix both places.
- Assistant
Need to navigate to that line first
- Assistant
Now I can apply the replace.
- Assistant
Now fix goBack the same way.
- Assistant
I notice that when pi-only falls through without matching the intermediate screens, goBack would hit PreviousScreen which returns ScreenPreset. I need to add isPiOnly check at the start of the Depende...
- Assistant
Verifying the fix and running related tests.
- Assistant
All tests passed. Removing the temporary repro test file.
- Assistant
There's a helper. Let me run the verify test.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.