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.ADDITIONAL ADVICE
Since you are given a git repository, you can use git commands to simplify your work. For example, if you made a mistake and want to revert your changes, you can use to restore the file to its original state. You can also reset all changes in the repository using command. Additionally, you can use and to temporarily save your changes and restore them later. Finally, you can see the changes that you've made (which will be submitted when you call ) using or commands. However you don't need to use or before submitting your changes. In fact, only submits currently unstaged changes because it uses to get the changes that need to be submitted.
- Assistant
I’ll trace the installer’s step/state navigation, identify how the Pi-only branch handles Back, then make the smallest flow-state fix. I’ll inspect the repository and relevant tests first, reproduce via available test/CLI mechanisms if practical, and run focused validation plus the broader affected test suite.
- Assistant
The repository is a Go CLI. I’ll now locate installer entry points, target-selection prompts, and Back handling, then inspect the surrounding state machine and existing tests before editing.
- Assistant
The bug is in both navigation paths from the dependency screen. Pi-only selection intentionally skips Persona/Preset and goes directly from
ScreenAgentstoScreenDependencyTree, but dependency-tree Back currently falls through toScreenPreset(and Esc eventually follows the generic route). I’ll special-case Pi-only selections in both Enter-on-Back and Esc/Back navigation so they return toScreenAgents, preserving the selected-target flow and avoiding unrelated configuration screens. - Assistant
The fix is now applied symmetrically: selecting the dependency screen’s Back row and pressing Esc/Back from that screen both return Pi-only installs to target selection. I’ll run focused TUI tests and the full Go test suite, then inspect the final diff for unintended changes.
- Assistant
The first test attempt was blocked by the environment, not the code: Go has neither
GOMODCACHEnorGOPATHconfigured. I’ll configure a temporary cache under/tmpand retry; this does not alter repository files. - Assistant
Focused TUI tests pass. The broader suite started successfully and passed the TUI plus several agent packages, but the command hit the execution timeout during the full repository run; dependency/build caches are now populated. I’ll run the remaining validation in smaller batches and verify the diff/status before submitting.
- Assistant
The affected TUI package passes. The remaining package run passed all relevant packages except an unrelated environment-sensitive CLI test: its expected PATH text differs because the temporary GOPATH is
/tmp/gopath(the test expected the environment’s normal Go bin path). No repository test or source was modified for that failure. The diff is clean and limited to the two Pi-only navigation branches; I’ll do a final status/diff check and submit.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.