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(desktop): keep window bounds out of desktop-settings.json by colonelpanic8 · Pull Request #2 · colonelpanic8/t3code

Conversation

@colonelpanic8

@colonelpanic8 colonelpanic8 commented Oct 14, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Owner

Fixes pingdotgg#19595.

Problem

Moving or resizing the desktop window saved its bounds into desktop-settings.json. Since pingdotgg#15009, saves write through a symlinked settings file, so a desktop-settings.json kept in a dotfiles repo changed on every window move. The first save also reformatted the file.

Change

  • Main window bounds and maximized state are saved in a new desktop-window-state.json, next to desktop-settings.json. A small DesktopWindowState service in apps/desktop/src/window/DesktopWindowState.ts owns them.
  • Window moves no longer write desktop-settings.json.
  • Until desktop-window-state.json exists, the bounds stored in desktop-settings.json by older builds are used. Once it exists, it wins. The legacy keys are not stripped from desktop-settings.json, so a symlinked copy is never rewritten just to migrate.
  • If desktop-window-state.json exists but cannot be read or parsed, the window opens at default bounds and a warning is logged. It does not fall back to the older bounds.
  • Display clamping, minimum sizes, and maximized restore are unchanged.

Verification

  • The issue's repro is a test. desktop-settings.json is symlinked to a hand-written file, and window bounds are saved twice. The target stays byte-identical, desktop-window-state.json holds the new bounds, and a fresh load restores them.
  • Tests also cover the legacy fallback, that the new file wins when both exist, that saving unchanged legacy bounds does not create the new file, malformed and unreadable state files, a non-boolean mainWindowMaximized, and that maximized is dropped with invalid bounds.
  • vp test run src/window src/settings src/app/DesktopEnvironment.test.ts src/app/DesktopLifecycle.test.ts src/updates src/backend/DesktopServerExposure.test.ts passes, 249 tests. tsc-rs --noEmit, vp lint, and vp fmt --check pass for apps/desktop.
  • Not checked by hand in a packaged Electron build.

Related: pingdotgg#19592, pingdotgg#19594.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

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

All reactions
@colonelpanic8 colonelpanic8 mentioned this pull request Oct 14, 2026
[Bug]: Moving the desktop window rewrites a symlinked desktop-settings.json pingdotgg/t3code#19595
Closed
2 tasks done
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:L labels Oct 14, 2026
@colonelpanic8 colonelpanic8 mentioned this pull request Oct 14, 2026
feat(desktop): optional directory for the desktop app's own files #3
Open
@colonelpanic8
colonelpanic8 force-pushed the t3code/main/desktop-window-state branch from 37bf6c8 to e50ec6d Compare October 16, 2026 17:45
@github-actions github-actions Bot added size:XXL and removed size:L labels Oct 16, 2026
@colonelpanic8
colonelpanic8 force-pushed the t3code/main/desktop-window-state branch 3 times, most recently from a690378 to 984a34f Compare October 20, 2026 19:07
@github-actions

github-actions Bot commented Oct 24, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Thread transfer impact

⚠️ The latest CI run did not produce a thread transfer result for 42b8a0d.

This comment will update automatically after the next completed run.

All reactions

Sorry, something went wrong.

Uh oh!

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

@colonelpanic8
colonelpanic8 force-pushed the t3code/main/desktop-window-state branch from a98e25c to e792e49 Compare October 26, 2026 20:31
@colonelpanic8
colonelpanic8 force-pushed the t3code/main/desktop-window-state branch from b6b8afc to 69632cc Compare November 7, 2026 20:43
@colonelpanic8
colonelpanic8 force-pushed the t3code/main/desktop-window-state branch 2 times, most recently from 84ce464 to f8b33e5 Compare November 22, 2026 22:04
t3dotgg and others added 15 commits November 23, 2026 20:21
@t3dotgg
docs: clarify that MIT covers source code only and protect T3 Code br…
0aeb792
…anding (pingdotgg#41898)
@Yash-Singh1 @juliusmarminge
fix(clients): threads can be dragged above threads from a disconnecte…
9331811
…d machine (pingdotgg#41885)

Co-authored-by: Julius Marminge <[email protected]>
@tiliakoos @juliusmarminge
fix(web): a copied issue or pull request error no longer ends in a br…
ac3af66
…oken character (pingdotgg#41901)

Co-authored-by: Julius Marminge <[email protected]>
@hj-smith @juliusmarminge
fix(server): ending a Claude CLI on Windows also ends the shells it s…
28d6719
…tarted (pingdotgg#41857)

Co-authored-by: hj-smith <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
@zs-andy @juliusmarminge
fix(server): parent stop skips already-idle delegated child threads (p…
ccf6ef5
…ingdotgg#41860)

Co-authored-by: Julius Marminge <[email protected]>
@only21mil @juliusmarminge
fix(web): an IME Escape no longer dismisses the citation highlight (p…
a4029d4
…ingdotgg#41899)

Co-authored-by: Julius Marminge <[email protected]>
@tiliakoos @juliusmarminge
fix(server): title regeneration failures no longer end in a broken ch…
3c3246e
…aracter (pingdotgg#41903)

Co-authored-by: Julius Marminge <[email protected]>
@juliusmarminge
fix(server): settle on merge no longer cancels a wake queued behind a…
2c3d3b4
… finished turn (pingdotgg#29934)
@juliusmarminge
fix: multi-select questions can be answered with nothing checked (pin…
72e7e8b
…gdotgg#32017)
@juliusmarminge
fix(web): Cmd+F searches a side chat, and Escape closes it (pingdotgg…
8032cbb
…#28919)
@juliusmarminge
fix(mobile): keep the new-thread composer above the keyboard when no …
f02d7b7
…model is available (pingdotgg#32137)
@juliusmarminge
fix(web): Settings opened with Cmd+, no longer leaves the model picke…
b3fff82
…r open over it (pingdotgg#29282)
@ndycode @devin-ai-integration
feat(scripts): add a bench script so .bench.ts files actually run (pi…
d068997
…ngdotgg#39662)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@armancharan @juliusmarminge
fix(server): resume threads after an excluded dependency is recloned (p…
66947c7
…ingdotgg#41907)

Co-authored-by: Julius Marminge <[email protected]>
@acacuce @juliusmarminge
fix(ci): enforce read-only top-level workflow token permissions (ping…
4132aeb
…dotgg#41038)

Co-authored-by: Julius Marminge <[email protected]>
only21mil and others added 29 commits November 24, 2026 15:49
@only21mil @juliusmarminge
fix(server): checkpoint reuse handles filenames starting with a colon (…
a49ccc1
…pingdotgg#42472)

Co-authored-by: Julius Marminge <[email protected]>
@jadelike-wine @juliusmarminge
fix(chat): load HTML reports when the filename limit splits an emoji (p…
eaa3f7d
…ingdotgg#42478)

Co-authored-by: Julius Marminge <[email protected]>
@juliusmarminge
fix(web): pooled limit refill shows when it lands again (pingdotgg#42499
7380740
)
@otavio
fix(web,mobile): CJK project names get a one-character monogram (ping…
e4da383
…dotgg#42467)
@juliusmarminge
feat(web,mobile): Pierre icons for test files, Vitest, Rolldown and m…
739bc7a
…ore (pingdotgg#42493)
@ScaleLeanChris @maria-rcks @Yash-Singh1
fix(desktop): detect Chromium profiles for cookie import (pingdotgg#2…
5a156a2
…5698)

Co-authored-by: maria-rcks <[email protected]>
Co-authored-by: Yash Singh <[email protected]>
@juliusmarminge
fix(web): translate the pooled limit refill line as one sentence (pin…
617d6ab
…gdotgg#42502)
@only21mil @juliusmarminge
fix(web,mobile): a 9.96-second workflow step reads 10s, not 10.0s (pi…
89d9e74
…ngdotgg#42492)

Co-authored-by: Julius Marminge <[email protected]>
@juliusmarminge
perf(server): checkpoint captures run fewer git commands (pingdotgg#4…
4248955
…2473)
@Mnigos @juliusmarminge
fix(web): Enter saves the default viewport size and skipped runs kept (…
369b469
…pingdotgg#42480)

Co-authored-by: Julius Marminge <[email protected]>
@juliusmarminge @claude
fix(web): MCP apps run only when their document hands over its bridge (…
2940ff3
…pingdotgg#42504)

Co-authored-by: Claude Fable 5.2 <[email protected]>
@juliusmarminge @claude
ci(mobile): fork previews wait for an approval that names the commit (p…
ceb2055
…ingdotgg#42503)

Co-authored-by: Claude Fable 5.2 <[email protected]>
@juliusmarminge
fix(server): Needs you lists every open workflow question, however ol…
34ca872
…d its run (pingdotgg#42501)
@juliusmarminge
chore(deps): bump vite-plus to 1.8.0 (pingdotgg#42489)
ea63274
@only21mil @juliusmarminge
fix(web): device host limit fields stay empty when cleared (pingdotgg…
622f967
…#42500)

Co-authored-by: Julius Marminge <[email protected]>
@juliusmarminge
chore(mobile): Expo SDK 58 patch updates (pingdotgg#42514)
77bed94
@Qard @maria-rcks
fix(github): approve workflows on same-repository PRs (pingdotgg#26561)
2210f2d
Co-authored-by: maria-rcks <[email protected]>
@juliusmarminge
chore: Clerk packages update (pingdotgg#42521)
2ecf799
@juliusmarminge
chore(mobile): react-native-screens fork follows upstream 5.0.0-beta.2 (
68af15d
pingdotgg#42490)
@only21mil @juliusmarminge
fix(server): detect new repos in folders named like ..cache right away (
622d65f
pingdotgg#42507)

Co-authored-by: Julius Marminge <[email protected]>
@juliusmarminge
chore(mobile): Reanimated 4.8 (pingdotgg#42525)
b8be228
@Yash-Singh1
fix(pr): keep CI approval in sync with running checks (pingdotgg#42523)
2514a5c
@brunobola @juliusmarminge
fix(i18n): i18n:check no longer fails on Windows (pingdotgg#42510)
c621d5f
Co-authored-by: Julius Marminge <[email protected]>
@diegoagdiaz @juliusmarminge
fix(server): Claude no longer shows "Connecting" on every turn (pingd…
38adba8
…otgg#42508)

Co-authored-by: Julius Marminge <[email protected]>
@bedair81 @juliusmarminge
fix(acp-registry): refresh stale registry index and supersede stale l…
5f3cdab
…ive session models (pingdotgg#42456)

Co-authored-by: Julius Marminge <[email protected]>
@juliusmarminge
fix(server): workflow watchers get what changed, not the whole list (p…
adb6064
…ingdotgg#42522)
@juliusmarminge
fix(desktop): typing with both Shift keys no longer fires the macOS S…
6e59724
…napShot shortcut (pingdotgg#42474)
@juliusmarminge
perf(server): checkpoint captures reuse a per-thread index (pingdotgg…
a3664ff
…#42476)
@colonelpanic8
Replay desktop-window-state merge-time changes
5f4d6d9
Original commit: ca04e93

Includes the cumulative changes through these earlier commits:
- eff03b7 fix(desktop): keep window bounds out of desktop-settings.json
- e10b6b0 fix(desktop): read window state once at construction and log bad files
- 6c724dc fix(desktop): route foundation construction logs through observability
- 69632cc fix(desktop): window state bounds setter uses Effect.fn
- 9b20a0a Merge upstream main 1001bc7 into carried topic
- 42b8a0d Merge upstream main 4021638 into carried topic
@colonelpanic8
colonelpanic8 force-pushed the t3code/main/desktop-window-state branch from f8b33e5 to 5f4d6d9 Compare November 25, 2026 01:38

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

size:XXL vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

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.

20 participants

@colonelpanic8 @t3dotgg @Yash-Singh1 @tiliakoos @hj-smith @zs-andy @only21mil @juliusmarminge @ndycode @armancharan @acacuce @shivamhwp @Motaghi @IzonIcy @SunkenInTime @pauldupuyjr @iXab3r @WillCraig @WhiteWarrior625 @ryanilano
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.