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 flow and its back-navigation state, identify where the Pi-only branch falls through into the general Gentle AI configuration, then make the smallest targeted fix. I’ll inspect the repository first, search for installer steps and Pi handling, run relevant tests, and verify the resulting diff.
- Assistant
The installer is implemented in
internal/tui; the router already has static backward links, so the likely defect is conditional routing or stale screen state around the preset/agent selection. I’ll now inspect the router, model, and event loop together, plus existing navigation tests and git history clues. - Assistant
The static route confirms the bug mechanism:
ScreenDependencyTreealways maps Back toScreenPreset, while Pi-only setup intentionally skips Persona and Preset. I need to confirm how Pi-only reaches the dependency tree and whether a dynamic “previous screen” already exists in model state, so I’ll inspect those handlers and tests before changing routing. - Assistant
The Pi-only path is explicit: selecting Continue on
ScreenAgentssets Pi components and jumps directly toScreenDependencyTree, without setting a preset. Both Enter/Back handling for that tree currently defaults toScreenPreset, which explains the unrelated flow. I’ll route Pi-only tree back directly toScreenAgentsin both keyboard paths (tree’s Back row and Esc), while leaving custom and normal preset flows unchanged. - Assistant
The fix now covers both ways users can choose Back: the explicit Back row in the dependency tree and Escape/back navigation. It detects the same exact Pi-only condition used when entering the tree, so mixed-agent and all existing preset flows retain their prior behavior. I’ll run the focused TUI tests and the full Go test suite, then inspect status.
- Assistant
The first test attempt was blocked by the environment rather than the code: neither
GOPATHnorGOMODCACHEis configured, so Go cannot locate its module cache. I’ll rerun with temporary cache paths outside the repository; this does not modify project files or tests. - Assistant
The temporary module cache was accepted, but the test process also requires a Go build cache and a defined home directory in this sandbox. I’ll provide both temporary locations and rerun the same focused and full tests.
- Assistant
The focused TUI and screen tests pass, and the full suite progressed through all agent packages before the command timeout; no failure was reported, only time exhaustion. I’ll do a final repository diff/status check and, if clean, submit the targeted change.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.