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 the Pi-only install flow.
- Assistant
This is a Go project — I'll search the installer code for Pi-only navigation and back-step handling.
- Assistant
Let me look at the install-related packages more specifically.
- Assistant
I'll inspect the TUI navigation and Pi-related installer flow next.
- Assistant
rg is not found, let me use grep instead.
- Assistant
I'll inspect Pi-only helpers and the back-navigation paths around agent selection.
- Assistant
I'll open the Pi-only continue path and the matching back-navigation code.
- Assistant
Looking at dependency-tree back navigation and the shared
goBackhelper. - Assistant
Found the likely bug: Pi-only skips persona/preset, but back from dependency tree still hits the full flow. Checking
goBackand existing Pi-only tests. - Assistant
Let me continue reading goBack, especially the DependencyTree part.
- Assistant
Confirming the Pi-only skip path; next I'll check existing navigation tests and helper functions.
- Assistant
I'll check default selection state and what the shouldShow* helpers return for Pi-only.
- Assistant
Looking at NewModel - when Pi is preselected, it still has PresetFullGentleman. And when continuing from Agents with Pi only, it only changes Components to piOnlyComponents(), not resetting Preset.
- Assistant
I'll check
linearRoutesand any other back-navigation paths from the dependency tree. - Assistant
There's a PreviousScreen function in router.go. Let me check that.
- Assistant
I'll also check back-from-Review for Pi-only and any related comments.
- Assistant
I have a clear fix: Pi-only back from the dependency tree should return to agent selection. Checking related flow edge cases, then applying the change.
- Assistant
I'll implement the Pi-only back-navigation fix in both
confirmSelectionandgoBack. - Assistant
The edit landed in the wrong file — reverting
router.goand applying the change tomodel.go. - Assistant
Good, model.go is open. Now edit the correct file.
- Assistant
There's an extra brace — removing it now.
- Assistant
Now updating
goBackthe same way. - Assistant
I need to update goBack to handle Pi-only at the start of the DependencyTree block.
- Assistant
I'll write a temporary test script to reproduce the bug and verify the fix.
- Assistant
I'll put the temporary reproduce script inside the repo.
- Assistant
Need to set GOPATH or GOMODCACHE.
- Assistant
The fix works. Running existing related tests next to check for regressions.
- Assistant
Cleaning up the temp script and verifying the final diff.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.