GeezerVison is showing github.com — fix(android): sidebar threads open while Settings or New task is open by t3dotgg · Pull Request #21043 · pingdotgg/t3code
Conversation
On Android foldables, the sidebar stays visible while Settings or New task is open, but tapping a thread there did nothing. The same was true for PRs in the sidebar and the navigation rail. The sidebar felt broken.
The sidebar renders in the root stack's layout, so its useNavigation() is the navigation container. A container dispatch(state => ...) runs on the deepest focused navigator. With Settings or New task open, that is their nested stack. The workspace reset was built from the nested state, and both stacks rejected it.
The new resetAndroidWorkspace reads the root stack state and sends the RESET with target set to the root key. This is the same approach React Navigation uses for resetRoot. All workspace reset call sites now use it. A focused test covers the nested-Settings case and fails without the fix.
Not verified on a device: T3 device support was unavailable during this work.
Reviewed with sol-loop: 1 round with GPT-6.1 Sol. Sol verdict: approved.
Created with Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Approved at c8e81fc
Macroscope's review found this PR approvable — This is a focused Android navigation bug fix that redirects existing workspace resets to the root navigator when nested Settings or New task stacks are focused. The implementation is small, localized, and covered by a targeted regression test.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
-
⚙️ Run configuration
-
- Configuration used: Path: .coderabbit.config.ts
- Review profile: CHILL
- Plan: Team
- Run ID:
7706148e-e169-40a7-b455-51acd5adc8ab
📥 Commits
-
Reviewing files that changed from the base of the PR and between 16918b5 and c8e81fc.
📒 Files selected for processing: 6
-
apps/mobile/src/features/workspace/AndroidWorkspaceNavigation.android.tsx
apps/mobile/src/features/workspace/useAndroidWorkspaceNavigation.ts
apps/mobile/src/features/workspace/useAndroidWorkspaceSelection.ts
apps/mobile/src/lib/android-workspace-navigation.test.ts
apps/mobile/src/lib/android-workspace-navigation.ts
apps/mobile/src/native/useOpenPullRequest.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
📝 Walkthrough
-
Android workspace navigation resets now use a shared helper. The helper targets the root navigator and skips dispatch when the root has no state. Workspace navigation and Android pull-request entry points call the helper.
Changes: Android workspace navigation reset
| Layer / File(s) |
Summary |
Root-targeted reset helper apps/mobile/src/lib/android-workspace-navigation.ts, apps/mobile/src/lib/android-workspace-navigation.test.ts |
resetAndroidWorkspace follows parent navigators to the root and dispatches a reset targeted at its state key. It returns without dispatching if the root has no state. A test checks a reset from a nested Settings navigator and verifies the root stack contains Home and Thread. |
Workspace reset call sites apps/mobile/src/features/workspace/AndroidWorkspaceNavigation.android.tsx, apps/mobile/src/features/workspace/useAndroidWorkspaceNavigation.ts, apps/mobile/src/features/workspace/useAndroidWorkspaceSelection.ts, apps/mobile/src/native/useOpenPullRequest.ts |
Workspace tab selection, workspace navigation hooks, and Android pull-request navigation call resetAndroidWorkspace instead of dispatching resets directly. |
Priority: ⬇️ Low
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers: pixpmusic
Merge Risk: ⚪ Minimal · up to c8e81
-
The Android sidebar navigation change is ready to merge after normal checks. No actionable issue was established.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title clearly identifies the Android sidebar navigation fix and matches the primary change. |
| Description check |
 |
The description explains the problem, root cause, implementation, focused test coverage, and unavailable device verification. It does not include explicit template headings, a bug or approval link, or… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Description check
-
Explanation
The description explains the problem, root cause, implementation, focused test coverage, and unavailable device verification. It does not include explicit template headings, a bug or approval link, or UI screenshots, but it provides sufficient context for this focused fix.
✨ Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Note 🤖 Claude Opus 5.5 responding on behalf of Theo
Closing: this change shipped in #21071, which combined it with the other Android foldable fixes.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
macroscope-review
Opt PRs made by unvouched contributors in for Macroscope review. Vouched contributors auto-reviews
size:M
30-99 changed lines (additions + deletions).
vouch:trusted
Author is trusted by repo permissions or the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|