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 — feat(desktop): add opt-in background mode and launch at login by Shaar-games · Pull Request #31616 · pingdotgg/t3code

Conversation

@Shaar-games

@Shaar-games Shaar-games commented Nov 5, 2026

Copy link
Copy Markdown

Problem

Desktop users hosting agents, scheduled tasks, or remote clients need a way to keep their local environment available after closing the window and to bring it back when they sign in. Today, closing the last window on Windows/Linux stops the desktop host, and the desktop app has no login-startup preference.

Change

  • Add Keep running in background under Settings > General > Desktop, disabled by default. Closing a window retains its renderer and backend; the system tray/menu bar offers Open and Quit. Disabling the option restores the window before removing the tray.
  • Add independent Launch at login, also disabled by default, with a Windowed / Minimized startup choice. Use Electron's native Windows/macOS login items and XDG autostart on Linux. Manual opens override minimized startup, and relaunches discard the consumed login argument.
  • Reuse the existing notification count and Windows badge image for the tray; macOS shows the count beside the menu-bar icon, and the tooltip also carries the count.
  • Keep OS registration, tray ownership, and settings persistence in shared desktop services. Reconcile externally disabled login items, serialize preference changes, and roll back failed native/persistence updates. Settings search and reset include the new preferences; web/mobile behavior remains unchanged.

Scope and approval

Related idea: #6889

Explicit maintainer approval of the feature's direction and scope is pending. This draft does not claim to satisfy the prior-approval requirement in CONTRIBUTING.md; draft status does not waive that requirement. The scope is opt-in desktop host availability across window closure and login, with no default changes or new server/provider execution path.

Verification

Native application runtime was tested on Windows only. Linux verification below covers the XDG adapter under WSL, not a graphical Linux desktop session.

  • vp run check:changed: formatting, lint, affected-package typechecking and 165 tests across 16 test files passed. Knip's second pass initially exhausted memory while development/build processes were active; it passed when rerun separately after stopping those processes. The three changed React Compiler cases were also run directly with a Windows-compatible name filter (the aggregate script's path filter skips them on Windows).
  • Windows desktop with isolated worktree state: enabled and restored background mode, closed the native window, completed a free Replay (dev) turn while hidden, and reopened the same renderer/backend. Explicit Quit stopped the backend. After disabling background mode, closing the window again stopped the backend. A rejected login enable in the development build remained disabled and showed the native error.
  • Real Electron 44.10.1 on Windows, using a temporary fixture identity: registered the startup Run entry, recognized the login argument, detected external StartupApproved disablement, and removed both fixture entries. This exposed and fixed Electron's custom-name/argument behavior when reading login items.
  • WSL Debian: created/read/disabled/removed an isolated XDG entry, respected Hidden=true, and validated a launcher path containing spaces and shell-sensitive characters with desktop-file-validate (exit 0).
  • Focused tests cover default migrations, failed-write rollback and serialization, close/reopen races, explicit/system activation during minimized startup, badge synchronization, second-instance links, relaunch arguments and quit/update behavior.

Not verified: macOS runtime, graphical Linux tray/login sessions, an actual Windows sign-out/sign-in, packaged startup, or the native tray popup visually. The Windows artifact build stopped at prerequisite checks because the required Visual Studio C++ build components are missing. Scheduled-task continuity retains the existing backend; no new timed schedule was created for this verification. Linux needs a tray host, and Wayland minimization depends on the compositor.

Windows settings evidence

The before image uses the original Settings panel; the after image shows the new controls with background mode explicitly enabled. Both new options default to off.

Before After
Before: General settings After: desktop background and login settings

Both options disabled after testing.

Implemented with GPT-6 Astra via the Codex harness in T3 Code.

Sorry, something went wrong.

Uh oh!

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

jo-chemla reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@Shaar-games
feat(desktop): add opt-in background mode and launch at login
7158e95
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XL 500-999 changed lines (additions + deletions). labels Nov 5, 2026
@Shaar-games Shaar-games closed this Nov 5, 2026
@Djordje-Stojanovic Djordje-Stojanovic mentioned this pull request Nov 7, 2026
[Feature]: Prompt for confirmation before closing window when agent tasks are running #10697
Closed
@screen-gd screen-gd mentioned this pull request Nov 7, 2026
[4/4] feat(desktop): keep running in the tray when the window closes screen-gd/t3code#1
Merged
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:XL 500-999 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.

Uh oh!

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

1 participant

@Shaar-games
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.