fix(installer): back navigation from Pi-only install shows unrelated Gentle AI…
- 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-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 trace the installer flow for Pi-only installs and how Back navigation is handled.
- Assistant
Pi-only skips Persona/Preset and goes straight to DependencyTree, but Back still uses the generic route to Preset. I'll fix both Esc and Enter back paths and add tests.
- Assistant
Fixed. Pi-only installs skip Persona, Preset, and related Gentle AI screens on Continue, but Back from the dependency tree still used the generic route and landed on
ScreenPreset(TDD, multi-agent, persona, etc.).Root cause: Forward navigation from agent selection checks
isPiOnlyAgents()and jumps straight to the dependency tree. Back navigation did not — it fell through toScreenPresetvialinearRoutesor the generic back logic.Fix: In both back paths (
EscviagoBack()and Enter on the "Back" option inconfirmSelection()), return toScreenAgentswhen Pi is the only selected agent.1804:1808:internal/tui/model.go// NOTE: Back logic also in goBack() — keep in sync. if isPiOnlyAgents(m.Selection.Agents) { m.setScreen(ScreenAgents) return m, nil }2435:2439:internal/tui/model.go
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.