GeezerVison is showing github.com — fix(web): remember the device panel's Flat or 3D view by tobomobo · Pull Request #31912 · pingdotgg/t3code
Conversation
tobomobo
commented
Nov 6, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Problem
Choosing Flat in the Device panel is lost when the panel is hidden and reopened: it switches back to the 3D device view.
Closes #42026.
Change
Remember the existing Flat/3D choice using useLocalStorage. The preference stays local to the browser or desktop profile and applies across devices. The initial default remains 3D.
Scope and approval
This is focused configuration of the existing Flat/3D capability under CONTRIBUTING.md's configuration exception: it only retains the user's selection, with no new controls or changed default.
Verification
- The regression test fails on the original code when reopening Flat, and passes with the fix. It covers persistence of both Flat and 3D through a full remount.
- All 8 focused tests passed (
DeviceStreamView.browser.test.tsx and useLocalStorage.test.ts), plus vp run check:changed.
- In the real web client on macOS with an iPhone 18 Pro / iOS 27 simulator, selecting Flat, hiding the panel, and reopening resets to 3D before the fix and stays Flat after it. Flat also survives a full reload. Electron and Android were not separately exercised.
| Before fix: after reopening |
After fix: after reopening |
 |
 |
Before:
before.mp4
After:
after.mp4
Written with GPT-6.1-Sol in the Codex harness, running in T3 Code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Approved at 2e629f9
Macroscope's review found this PR approvable — The device panel now remembers the user's Flat or 3D selection locally while retaining the existing default and availability guards. The change is limited to a reversible presentation preference.
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.
coderabbitai
Bot
commented
Nov 6, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
DeviceStreamView now persists the selected presentation in local storage. Browser tests cover phone-view setup and verify that Flat and 3D selections remain selected after reopening the view.
Changes: Device presentation persistence
| Layer / File(s) |
Summary |
Persist presentation selection apps/web/src/components/device/DeviceStreamView.tsx |
DeviceStreamView stores a schema-validated phone or flat presentation value in local storage. The default remains phone. |
Exercise persistence in browser tests apps/web/src/components/device/DeviceStreamView.browser.test.tsx |
The test setup supports phone view and configures a streaming session for that case. A new test checks Flat and 3D selections after reopening the device view. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers: juliusmarminge
Merge Risk: Minimal · up to 09bc1
-
The device panel now remembers the Flat or 3D choice and still defaults to 3D. The change is small and scoped to this preference, and no merge-blocking risk was found.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title names the main change: the device panel now remembers the user's Flat or 3D view. It follows the conventional commit format with a fix(web) scope and a plain-language description. It matches… |
| 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. |
| Description check |
 |
The description follows the repository template closely. It has a Problem section that states the bug and expected behavior, a Change section that explains the useLocalStorage fix, a Scope section tha… |
Full details: Title check
-
Explanation
The title names the main change: the device panel now remembers the user's Flat or 3D view. It follows the conventional commit format with a fix(web) scope and a plain-language description. It matches the raw summary, which shows useLocalStorage persisting the presentation choice under t3code:device-presentation, and the objectives, which describe the same persistence fix.
Full details: Description check
-
Explanation
The description follows the repository template closely. It has a Problem section that states the bug and expected behavior, a Change section that explains the useLocalStorage fix, a Scope section that cites a configuration exception and links issue #42026, and a Verification section with a regression test, focused test results, a manual macOS check, and before/after screenshots and recordings. Two gaps remain. The Scope section does not explain why the change needs no issue beyond the linked issue, and the verification omits Electron and Android testing, which the author states were not exercised. The author does state the model and harness used.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 258f144 and 09bc11d.
Files selected for processing: 1
-
apps/web/src/components/device/DeviceStreamView.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
This PR conflicts with main. Rebase it or merge main into it. If it still conflicts after 7 days with no activity, it will be closed automatically.
See the conflict window.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
This PR conflicts with main. Rebase it or merge main into it. If it still conflicts after 7 days with no activity, it will be closed automatically.
See the conflict window.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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
needs-rebase
Conflicts with its base branch. Closes after 7 days with no activity.
size:XS
0-9 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
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.
|