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
It's a Go project. Let's look at the TUI navigation flow files.
Assistant
Let's find the general "back" function that handles going back from various screens - probably a function around line 2390-2600 handling back navigation logic.
Assistant
Now let's apply fixes. First in
confirmSelection(ScreenDependencyTree, non-custom, cursor != 0 i.e. Back):Assistant
Now fix
goBack()'s ScreenDependencyTree handling:Assistant
Build succeeds. Now run the relevant tests.
Assistant
All tests pass. Now let's write a quick reproduction test script to confirm behavior matches expectations.
Assistant
Both reproduction tests pass, confirming the fix. Now remove the temp test file and run full test suite.
Assistant
Good, file removed. Let's run tests just on the tui package plus a few related ones with timeout control, avoiding potentially slow e2e tests.
Assistant
That's the primary affected package and it passes. Let's try running the whole internal tests with a longer timeout in background, or list packages to test individually to identify slow ones.
Assistant
Confirmed pre-existing issue unrelated to my change —
internal/apptests time out even without my modifications. Not something I need to fix. Let's confirm the diff once more and finalize.Assistant
The diff is clean and minimal. Let's re-run the full
internal/tuitest suite once more to be safe, plus vet.Assistant
All tests pass. Let's do final review of the diff.
Assistant
This resolves the issue described. Let me go through the checklist explicitly:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.