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
I’ll trace the installer flow and its back-navigation state, identify why the Pi-only branch falls through into the broader Gentle AI configuration, then patch the smallest relevant control-flow/state handling. I’ll inspect the repository and tests first, reproduce or reason through the path, run targeted validation, and review the final diff before submission.
- Assistant
The flow confirms the bug: Pi-only selection deliberately skips Persona/Preset and goes directly from
ScreenAgentstoScreenDependencyTree, but both dependency-tree back paths assume the normal flow and return toScreenPreset. I’ll update both Escape/back-row handling to recognize the Pi-only path and return toScreenAgents, preserving the selected target while avoiding unrelated configuration screens. - Assistant
The code change is in place and covers both ways the user can activate “Back” (Escape and the dependency-tree Back row). The first targeted test run was blocked by the environment having neither
GOPATHnorGOMODCACHE; I’ll retry with temporary standard Go cache locations, then inspect the result and diff checks. - Assistant
The affected TUI packages pass (
internal/tuiandinternal/tui/screens), as do installcmd/model. The broader command only failed in an unrelated existing CLI test because the temporary GOPATH changed the expected path string (/tmp/gopath/binvs the test’s default expectation); no failure involves this patch. I’ll perform the final diff/status review and then submit. - Assistant
Implemented the Pi-only installer back-navigation fix.
Changes:
- Back from the dependency tree now returns to the installation target selection (
ScreenAgents) for Pi-only installations. - Applied to both:
- Escape/back navigation
- The dependency-tree “Back” option
- Normal multi-agent and non-Pi flows remain unchanged.
Validation:
internal/tuitests passed.internal/tui/screenstests passed.internal/installcmdandinternal/modeltests passed.git diff --checkpassed.- The broader CLI test run encountered an unrelated environment-dependent failure involving the temporary GOPATH path.
Checklist:
- Reproduced/reasoned through the reported flow: completed by tracing Pi-only navigation from
ScreenAgentstoScreenDependencyTree. - Confirmed the fix resolves the issue: both back-navigation paths now return to .
- Back from the dependency tree now returns to the installation 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.