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
This is a Go repository. Let's look at the router which likely handles navigation state.
Assistant
Now let's check line 460-510 and 1480-1500 for the forward flow logic when Pi-only is selected.
Assistant
Let's view line 2732 case too (probably rendering-related, esc key elsewhere) and 802.
Assistant
Now let's fix the confirmSelection() branch.
Assistant
Build succeeds. Now let's write a quick test script to simulate the flow.
Assistant
Now let's confirm the pre-fix behavior would have failed, by checking git stash test quickly (temporarily revert model.go changes, run test, then restore).
Assistant
Confirmed: before the fix, test failed (Screen 5 = ScreenPreset probably), reproducing the bug. After the fix, it passes. Now let's remove the temporary test file and run the full test suite.
Assistant
Confirmed these failures are pre-existing (environment-related, HOME not set), unrelated to my change. All
tuipackage tests pass.Assistant
The diff is clean and minimal. Let's run the full tui test suite once more to be thorough, and also check for any other spots referencing pi-only navigation that could be affected (e.g., ScreenAgents' Back option itself, or other paths like custom preset combined with Pi-only, which per
isPiOnlyAgentscheck happens before custom preset is even reachable since Pi-only skips preset selection entirely).Assistant
All pass. Let's double check the whole test output doesn't have FAIL for tui package.
Assistant
No FAIL matches (grep found nothing, hence exit code 1). Good — all tests pass.
Assistant
The fix is minimal, targeted, and verified. Let me go through the checklist:
Checklist review:
-
If an error was reported in the issue description, I have successfully reproduced it. ✅ I wrote a temporary test () that simulates: select Pi-only agent → continue → back. I confirmed via that on the original code, going back landed on (screen ID 5) instead of , exactly matching the reported bug (back navigation lands on unrelated Preset/Persona/SDD configuration flow instead of returning to the Pi-only install target selection).
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.