GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@tobomobo tobomobo commented Nov 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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: reopened panel resets to 3D After: reopened panel stays Flat

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.

All reactions
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 6, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Nov 6, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Nov 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed 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)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 59651c1
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 595a8507-0375-40a6-9075-aa4f5156d0ae
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added the needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. label Nov 20, 2026
@tobomobo
fix(web): remember device panel presentation
09bc11d
@tobomobo
tobomobo force-pushed the fix/device-presentation-preference branch from 258f144 to 09bc11d Compare November 20, 2026 06:26
@github-actions github-actions Bot removed the needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. label Nov 22, 2026
@tobomobo tobomobo mentioned this pull request Nov 24, 2026
[Bug]: Device panel resets from Flat to 3D when reopened #42026
Closed
@github-actions

github-actions Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added the needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. label Nov 28, 2026
@tobomobo

tobomobo commented Nov 28, 2026

Copy link
Copy Markdown
Author

superseded by #43599

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tobomobo tobomobo closed this Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

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.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: Device panel resets from Flat to 3D when reopened

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@tobomobo
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.