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.Interface
No new interfaces are introduced.
Assistant
Now let's look at goBack().
Assistant
Now let me write a temporary test to reproduce.
Assistant
Now the goBack() path.
Assistant
Checklist review:
- Reproduced the reported error: Yes. I wrote a temporary Go test in
internal/tuisimulating the Pi-only flow (Agents → Enter → DependencyTree → Back/Esc). Before the fix it landed onScreenPreset(screen 5), which then chains back through Persona/TDD/Gentle-AI config screens — exactly the reported bug. - Confirmed the fix resolves the error: Yes. After the change, both
Enteron "Back" andEscfrom the dependency-tree/plan screen return toScreenAgentsin the Pi-only flow. The temporary test passed and was then removed. - Edge cases considered: I handled all three back paths for
ScreenDependencyTree: the non-custom "Back" option (confirmSelection), the custom-preset component-picker "Back" option, andEsc(goBack). The Pi-only check is done before the preset-based branches so it works regardless of a stale value (e.g. Custom left over from a previous navigation). Non-Pi flows and Pi combined with other agents are untouched (verified with tests: non-Pi still returns to Preset, Pi+OpenCode still goes through Persona/Preset). Review → DependencyTree → Agents chain also verified.
- Reproduced the reported error: Yes. I wrote a temporary Go test in
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.