GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Filter app runtime env vars from terminal spawn environment by juliusmarminge · Pull Request #44 · pingdotgg/t3code Conversation
|
WalkthroughImplements environment variable filtering for spawned terminal sessions. A blocklist of sensitive variables (PORT, ELECTRON_RENDERER_PORT, ELECTRON_RUN_AS_NODE) and framework-specific prefixes (T3CODE_, VITE_) are excluded from the shell environment. New helper functions sanitize the environment before terminal spawn, with comprehensive test coverage validating the filtering behavior. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
⚔️ Resolve merge conflicts (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Filter terminal spawn environment in
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Greptile OverviewGreptile SummaryAdds environment variable filtering to terminal spawn operations to prevent app runtime configuration from interfering with shell sessions.
Confidence Score: 5/5
Important Files Changed
Flowchartflowchart TD
A[startSession called] --> B[createTerminalSpawnEnv called with process.env]
B --> C{For each env key/value}
C --> D{value === undefined?}
D -->|Yes| E[Skip]
D -->|No| F{shouldExcludeTerminalEnvKey}
F --> G{Starts with T3CODE_?}
G -->|Yes| E
G -->|No| H{Starts with VITE_?}
H -->|Yes| E
H -->|No| I{In TERMINAL_ENV_BLOCKLIST?}
I -->|Yes - PORT, ELECTRON_RENDERER_PORT, ELECTRON_RUN_AS_NODE| E
I -->|No| J[Include in spawnEnv]
E --> K{More keys?}
J --> K
K -->|Yes| C
K -->|No| L[Return filtered spawnEnv]
L --> M[ptyAdapter.spawn with filtered env]
Last reviewed commit: ecea657 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…ker gating Port upstream commits 9bb9023..b36888e: - Handle branch selection across main and secondary worktrees (pingdotgg#44) - Preserve fork PR upstreams when preparing local and worktree threads (pingdotgg#45) Adds resolveBranchSelectionTarget for unified checkout cwd/worktree decisions, GitCore helpers for remote management (ensureRemote, fetchRemoteBranch, setBranchUpstream), GitHub CLI cross-repo PR metadata parsing, and GitManager fork head materialization with upstream tracking.
* Revert "feat: add a split-screen-horizontally toggle for the right panel (pingdotgg#41)" This reverts commit 0ea9e96. The ask was to remove a horizontal split, not to add one, so the toggle should not have shipped. Every file pingdotgg#41 touched is back to its pre-pingdotgg#41 content and its three new files are gone: rightPanelOrientation.ts, useResizablePanelHeight.ts and its test. `git diff fd3b851 -- apps packages` is empty. The fork delta here is nil again, so the Split Screen Delta section, its inventory row, its path policy rows and its convergence row go with it. Kept from pingdotgg#41, because they stand on their own and are not about the toggle: the upstream-remote ownership check in Path policy, the .plans/** row split it turned up, the messageOrigin.ts verification, and AGENTS.md's rule that fork code says so in a comment where it sits. Verification: web typecheck and lint clean, vp fmt --check clean, 83 tests across apps/web/src/hooks and apps/web/src/components/preview. Model: Claude Opus 5. Harness: Claude Code. Co-Authored-By: Claude Opus 5 <[email protected]> * feat(web): drop the terminal-drawer toggle from the chat header The chat's panel layout controls carry two buttons: one opens the right panel, the other splits the screen horizontally by opening a terminal across the bottom. The fork keeps one way to reach a terminal — the right panel's terminal surface — so the second button is a split nobody asked for beside a panel that already does the job. Hides it the fork way rather than deleting upstream's code: a new `terminalDrawerToggle` flag in `apps/web/src/fork/features.ts` and one gate expression in `PanelLayoutControls.tsx`. Upstream's props, the drawer and the `terminal.toggle` keybinding are untouched, so the drawer still opens from the keyboard and deleting the flag brings the button back. Model: Claude Opus 5. Harness: Claude Code. Co-Authored-By: Claude Opus 5 <[email protected]> * docs(fork): the log keeps what is known, not what was undone The 2026-08-03 entry led with a toggle that was added and then reverted in the same day. Nothing in the tree carries it, so a future merge learns nothing from reading about it. What that day actually produced is the upstream-remote ownership check and what it found, which is what the entry says now. Model: Claude Opus 5. Harness: Claude Code. Co-Authored-By: Claude Opus 5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]>
The chat's upper-right corner lost the terminal-drawer button in pingdotgg#44, and the right panel's sandbox pill had taken up residence at the right end of the tab bar beside it — the same strip upstream reserves for its layout toggles. Getting the button back is one half; the other is not putting it next to a fork element that was crowding it. The gate goes rather than flips, the way features.ts says to turn a flag on, so PanelLayoutControls.tsx is upstream's byte for byte again and the corner carries the terminal drawer, the right-panel toggle and maximize. The sandbox pill moves into the panel body, where the surfaces it governs are opened: under the launcher's Browser/Terminal/Files cards, and under the disabled state's reason, where it stops being a status somewhere else and becomes the Start button next to the explanation. Compact there, since the heading has already said what is wrong. A ready sandbox's dot is green now — amber beside "Sandbox running" was survivable in the tab bar and would have been the loudest thing in the launcher. Trade-off, recorded in the merge log rather than solved: with the pill in the body, Stop is out of reach while a surface is open and the sandbox is running. Losing a sandbox disables the surfaces and brings the control back with the reason, so the way in is never the one that goes missing. A fork-only test pins the placement, since it is a position rather than a symbol and a merge could carry the hunk back into the tab bar without a type error. Model: Claude Opus 5. Harness: Claude Code. Co-Authored-By: Claude Opus 5 <[email protected]>
Push: say why a phone gets no pushes when APNs is not set up
…er-base feat(fork): repository owner helper and the repository owner filters setting
…quests show their size' (pingdotgg#44) from T3CODE-35-changed-files into custom-local
…ments Port the LAN and SSH connection work from scriptedalchemy/main (pingdotgg#21, pingdotgg#44, pingdotgg#47, pingdotgg#59, pingdotgg#60, pingdotgg#79, pingdotgg#88, plus later fixes to those files): - Servers advertise `_t3code._tcp` over mDNS and answer a LAN discovery proof; desktop (bonjour-service) and mobile (new t3-lan-discovery Expo module) rediscover paired machines whose address changed. - A device paired over HTTPS or Tailscale mints a DPoP-bound LAN credential that cannot outlive or outrank its paired session. - The server reports its mDNS `.local` name as a LAN endpoint. - Peer links accept ssh://user@host and run over a managed SSH tunnel that leaves the remote server running on disconnect. - SSH remote setup reuses an exact-release installed CLI behind bounded probes, binds the forward to loopback, only reuses a live tunnel, and refuses to replace an installed-but-stopped background service. Adaptations for upstream: PeerLinks exposes one shared `layerWithSsh`, also used by the orchestration runtime layer; upstream's release-mirror download path and its download error text are kept; inference-host address resolution and other fork-only features are left out. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.