Skip to content

chore: sync upstream pingdotgg/t3code (20260710)#167

Merged
adamfgr merged 10 commits into
mainfrom
chore/upstream-sync-20260710
Jul 10, 2026
Merged

chore: sync upstream pingdotgg/t3code (20260710)#167
adamfgr merged 10 commits into
mainfrom
chore/upstream-sync-20260710

Conversation

@wizzoapp

@wizzoapp wizzoapp Bot commented Jul 10, 2026

Copy link
Copy Markdown

Nightly upstream sync of pingdotgg/t3codeagriffiths-bots/t3code.

Cherry-picked the 8 new upstream commits since the last sync (0c66565..f61fa94):

Conflict resolution (the only surface where this merge could introduce a bug)

Conflicted files resolved by hand:

  • scripts/build-desktop-artifact.ts — kept the fork's superset createElectronBuilderEnv() helper (sets npm_config_user_agent and npm_execpath) over upstream's inline env block; upstream's new resolvePackageManagerUserAgent helper is retained and still unit-tested.
  • apps/server/src/orchestration/decider.ts — kept both: the fork's archived-thread invariant guard and upstream's branch-preservation logic in the thread.meta.update case (they are independent, non-overlapping additions).
  • apps/mobile/eas.json — kept the fork's Expo account credentials (EXPO_OWNER/EXPO_PROJECT_ID/EXPO_UPDATES_URL) alongside upstream's new NODE_OPTIONS in every build profile.
  • apps/mobile/src/connection/catalog-store.ts — took upstream's Effect-based Schema.fromJsonString serialization refactor.
  • apps/mobile/src/connection/platform.ts — took upstream's Layer.effectContext + MobileStorage service + Runtime.runtimeContextLayer restructure and grafted back the fork-local CloudflareAccessCookieInstaller capability.
  • apps/mobile/src/connection/storage.ts — took upstream in full; the fork's inline file-based EnvironmentCacheStore is superseded by upstream's DB-backed environment-cache-store.ts module (wired via persistence/layer.ts).
  • packages/client-runtime/src/state/server.ts — kept both the fork's SERVER_CONFIG_SUBSCRIPTION_INPUT const and upstream's new resolveServerConfigValue function.
  • packages/client-runtime/src/state/server.test.ts — union of both import sets so the merged superset test body (fork's projectServerConfig tests + upstream's makeEnvironmentServerConfigState/resolveServerConfigValue tests) compiles.
  • pnpm-lock.yaml — regenerated (--lockfile-only) against the merged manifests.

Follow-on fix outside the conflict set required by upstream's interface change:

Verification

  • vp run typecheck — green
  • vp check — 0 errors (14 pre-existing warnings, all in upstream-origin files)
  • vp test run5769 passed, 7 skipped, 657 test files, exit 0

Gated by CI + the upstream-sync policy (not the panel autoreview, which would just re-review upstream's already-reviewed code).

Prgm-code and others added 8 commits July 10, 2026 03:09
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>
…pingdotgg#3795)

Co-authored-by: Julius Marminge <julius@mac.lan>
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>
@wizzoapp

wizzoapp Bot commented Jul 10, 2026

Copy link
Copy Markdown
Author

@codex review

…-sync mocks

Upstream pingdotgg#3795 expanded the EnvironmentCacheStore interface with
loadServerConfig/saveServerConfig/loadVcsRefs/saveVcsRefs; add those
stubs to the fork-local shell-sync mock stores so typecheck passes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e7f3668c1f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread packages/client-runtime/src/state/server.ts Outdated
Comment thread apps/mobile/app.config.ts
Comment thread packages/client-runtime/src/state/vcs.ts
… subscription

Upstream pingdotgg#3795's makeEnvironmentServerConfigState subscribed to
subscribeServerConfig with {} instead of the fork-local shared
SERVER_CONFIG_SUBSCRIPTION_INPUT ({ supportsHeartbeat: true }). That
opts the quiet offline-persistence subscription out of the server's
keepalive frames (and diverges from the shared subscription key), so
idle transports/proxies could drop it and leave provider/model metadata
stale. Hoist the const above makeEnvironmentServerConfigState and pass
it at the subscription site so every consumer shares the same input.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@adamfgr adamfgr left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved by wizzo-approve: all policy conditions verified against HEAD 0d4170d.

@adamfgr
adamfgr merged commit 1a1dad2 into main Jul 10, 2026
14 checks passed
@adamfgr
adamfgr deleted the chore/upstream-sync-20260710 branch July 10, 2026 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants