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
Let me start by exploring the repository structure to understand what we're working with.
Assistant
This is a Go project. Let me explore the structure more.
Assistant
Let me look at the TUI screens folder to understand the structure of the installer screens.
Assistant
Let me look at the main model.go file to understand the screen flow.
Assistant
Now let me find the back navigation for
ScreenDependencyTree.Assistant
Now I see the issue. Let me look at the
isPiOnlyAgents,shouldShowStrictTDDScreen, etc. functions.Assistant
Now I see the issue. Let me look at
ScreenPresetto see what it shows.Assistant
Now let me look at the
goBack()function to see all the back navigation logic.Assistant
Let me check the agents screen and how Pi is selected by default.
Assistant
Let me look at the key handling.
Assistant
Let me check the existing tests related to this issue.
Assistant
Let me write a test to reproduce the issue:
Assistant
The bug is confirmed. Let me check the screen numbers to verify.
Assistant
Let me look at how the key message handling works:
Assistant
Let me check what screen number
ScreenPresetis and look at the result more carefully:Assistant
The bug is confirmed. Back from
ScreenDependencyTreein Pi-only mode goes toScreenPreset(5) instead ofScreenAgents(3). Let me clean up and look at the relevant code more carefully.Assistant
Let me look at the dependency tree screen implementation.
Assistant
Let me look at
optionCountforScreenDependencyTree.Assistant
Let me look at all places where the back logic for
ScreenDependencyTreeis handled.Assistant
Let me look at the relevant tests for similar navigation.
Assistant
Now I understand the bug fully. Let me look at the relevant lines one more time and apply the fix.
Assistant
Now let me look at the current view function (View) to check for Pi-only rendering:
Assistant
Now I'll apply the fix. The fix needs to add a check for Pi-only agents in the back navigation from
ScreenDependencyTree:Assistant
Now I'll apply the fix. First, let me update the
confirmSelection()forScreenDependencyTree:Assistant
Now let me apply the fix to
confirmSelection()for the DependencyTree back button:Assistant
Now let me apply the fix to
goBack():Assistant
Now let me build the project to make sure the changes compile:
Assistant
The code builds. Now let me write a test to verify the fix works:
Assistant
The fix works. Let me now clean up the test file and run the existing tests to make sure nothing else broke:
Assistant
All existing tests pass. Let me also run the entire test suite to make sure I haven't broken anything else:
Assistant
Let me check the back navigation from
ScreenReviewfor Pi-only:Assistant
Let me check the
goBack()fromScreenReview:Assistant
Let me write a more comprehensive test to verify the full Pi-only flow:
Assistant
The full Pi-only flow now works correctly. Let me also test the edge case where Pi is combined with other agents to make sure the fix doesn't break that flow:
Assistant
The fix is clean and minimal. Let me run all the relevant tests one more time to make sure everything passes:
Assistant
All tests pass. Let me also check that
TestNewModelPiOnlyDetectionDefaultsToEngramOnlyand other related tests pass:Assistant
Let me look at the existing Pi tests to make sure my fix is well-aligned with them:
Assistant
Let me view the final diff:
Assistant
The fix is clean and minimal. Let me do a final sanity check by running the verification test:
Assistant
All test cases pass. Let me clean up the temporary test file:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.