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 — chore(upstream): sync marcode through 6c583620 by maarco · Pull Request #80 · maarco/marcode Conversation
|
| Commit | What |
|---|---|
3ba313f1 |
The merge itself; 41 conflicts resolved by hand. |
48b3610 |
Upstream's new window-capture surface claimed upstream's desktop identity — including a D-Bus allowlist that refused every Marcode capture request. |
8a5e138 |
Upstream's new Android push path used t3code-relay/… Effect service keys and upstream bundle-id fixtures. Both CI failures were here. |
All four required checks are green on 8a5e138: Check, Test, Mobile Native Static Analysis, Release Smoke (plus Test Server 1–3 and Rust). claude-review is red for an unrelated reason — see the comments.
This supersedes the two stale open sync PRs and the blocked-sync issue, all of which are ancestors of this merge:
061543e9)8b2838e0)upstream sync blocked: pingdotgg/t3code@12391bd041 paths conflicted. Every one was resolved by hand, combining both intents — no whole-file ours/theirs, no force push, reset, restore, stash or clean.
| Path(s) | Decision |
|---|---|
persistence/Migrations.ts |
Kept Marcode's deployedMigrationEntries split and frozen 1–49 history; took upstream's un-export of makeMigrationLoader. |
marcode-sqlite-state.ts, codexLaunchArgs.ts, cloud/publicConfig.ts |
Kept Marcode's MARCODE_* names; took upstream's knip un-exports. |
WorkspaceFileSystem.ts, contracts/project.ts |
Kept Marcode's added error classes; adopted Effect rc.112's Schema.TaggedError rename. |
contracts/settings.ts + test |
Additive both sides — kept unifiedWorkspaceSidebar and upstream's snapShot settings. |
AgentSessionScanner.test.ts |
Took upstream's two new exclusion tests; kept Marcode's .marcode worktree test. |
electron-launcher.mjs |
Kept Marcode identity; took upstream LAUNCHER_VERSION 19 and un-exports. |
electron-launcher.test.mjs |
Upstream split env into a sourced script, so Marcode's MARCODE_PORT/MARCODE_HOME assertions moved onto makeDevelopmentEnvironmentScript — where they now actually cover the rename again. |
| Desktop Linux identity (6 files) | Adopted upstream's shared resolveLinuxDesktopEntryName helper but not their reverse-DNS rename — see the open questions below. |
ElectronProtocol.ts, DesktopWindow.test.ts, shared/git.test.ts |
Kept Marcode schemes/fixtures; took upstream's un-exports, new mocks, and ssh:// case. |
.devcontainer/ |
Took upstream's rewrite (base image, on-create/update-content scripts, forwarded ports) with Marcode's name, MARCODE_HOME and .marcode state. |
mobile/app.config.ts |
Kept Marcode's black-on-white release mark; took upstream's new adaptive-background and splash keys. |
SettingsRouteScreen.tsx, MobileClientsUserProfilePage.logic.ts |
Took upstream's Android-aware copy and platform logic under Marcode branding. |
ConnectOnboardingDialog.tsx, WelcomeWizard.tsx |
Took upstream's shared wizard components (WizardPopup wraps Marcode's DialogPopup, so overlay/modal-layer behavior is preserved) and re-applied Marcode's product copy. Marcode's delta here was 10 lines against a 783/693-line upstream rewrite. |
rightPanelStore.ts |
Kept marcodeRightPanelPolicy's ownership of the storage key/version and panel-key predicate; took upstream's new PULL_REQUESTS_PANEL_REF, which other merged files already import. |
SettingsSidebarNav.tsx |
Took upstream's removal of the router-state read (the cause of the page-switch shift); kept Marcode's back control. |
ThreadTerminalDrawer.tsx |
Kept Marcode's own link provider; ported upstream's pingdotgg#10060 browser-override and toast error handling into it. |
ChatView.tsx |
Took upstream's activeProject record prop; kept Marcode's FloatingPillNav imports. |
useTheme.ts/.test.ts, index.css |
Kept Marcode's dark-onboarding seam and Mentiko chrome; combined upstream's additive rules. |
| DMG backgrounds | Kept Marcode artwork (pinned by build-desktop-artifact.test.ts). |
95.astro |
Kept Marcode's removal (pinned by retiredRoutes.test.ts). |
pnpm-lock.yaml |
Regenerated with pnpm, not hand-resolved. |
These are the dangerous ones — each would have shipped silently:
Schema.TaggedErrorClass. Migrated the Marcode-only files still using it (the upstream-sync tooling), which upstream never touches.resolveLinuxDesktopEntryName is new from upstream in this delta, so taking their side would have reverted DesktopEnvironment's marcode.desktop. Restored, and pinned with a test that DesktopEnvironment and DesktopEarlyElectronStartup agree — verified it fails when the seam is broken. Correction to an earlier version of this description: the window class half was already divergent on main (DesktopEarlyElectronStartup said t3code, DesktopEnvironment said marcode), so aligning it fixes a pre-existing bug rather than one this merge introduced.ThreadTerminalDrawer would not have typechecked: openTerminalLinkInPreview's new forceBrowser is required, and Marcode's own link provider never passed it.CaptureShortcutConfig test disabled a t3code/ oxlint rule; Marcode's plugin namespace is marcode, so the directive was dead and CI failed on the unused-directive error.Sidebar.tsx and CommandPalette.logic.test.ts still used the removed projectCwdByKey map and lacked Marcode's required workspaceLayoutVersion.defineMarcodeMigration with a test of its reserved-id guard.useTheme's onboarding seam lost isOnboardingThemeActive and both onboardingActive bindings to an upstream rewrite; restored.48b3610). Its D-Bus allowlist held com.t3tools.T3Code.SnapShot, but the client requests ${linuxDesktopEntryName without .desktop}.SnapShot → marcode.SnapShot. Runtime-only, Linux-only, and it surfaces as an authorization error. Pinned by gnomeCaptureClientNames.test.ts. Also fixed three install collisions with a real T3 Code install (extension uuid, shared ~/.local/share/t3code/ helper dirs, KDE .desktop entry) and a macOS permission prompt reading "T3 Code".8a5e138). Five Context.Service keys spelled t3code-relay/…, which effect(deterministicKeys) rejects because the package is marcode-relay; and ApnsDeliveries.test.ts asserted a Marcode bundle id against an upstream fixture. These were the two CI failures.pnpm-workspace.yaml (Effect rc.112) and infra/relay/package.json (Alchemy beta.76) both moved, and upstream's own chore(refs) commits carried the matching .repos/effect-smol and .repos/alchemy-effect subtrees in the same delta. No separate sync:repos run was needed — verified the vendored Effect source is the one that renamed TaggedErrorClass.
Scheduled daily upstream sync. Marcode is a maintained fork, so upstream correctness, security, protocol and dependency fixes have to land even when they touch customized files — hotspots are mandatory-review paths, not automatic keep-Marcode paths.
Not captured — this environment has no browser or simulator. The merge changes user-visible web and mobile surfaces (onboarding wizard, Connect dialog, settings sidebar, terminal links, mobile theme list, Android adaptive icons), so per the runbook the integrated client verification is still required before this leaves draft.
com.t3tools.T3Code.desktop) and centralized it in one helper. I took the refactor but kept Marcode's existing marcode.desktop / marcode-dev.desktop, because that filename is what existing installs' xdg-mime associations point at — renaming it would silently drop every user's marcode:// handler. If upstream's format change was carrying a Linux packaging fix, Marcode needs the equivalent deliberately, as a migration rather than a merge side effect.main already carries 16 such files and AGENTS.md rules out mass-replacing internal upstream-shaped identifiers. That boundary is a judgement call, not a rule.CI on 8a5e138 — all four required checks green:
| Check | Result |
|---|---|
| Check | ✅ |
| Test | ✅ |
| Mobile Native Static Analysis | ✅ |
| Release Smoke | ✅ |
| Test Server 1 / 2 / 3, Rust, Mobile Native Changes | ✅ |
| claude-review | ❌ unrelated: unset ANTHROPIC_API_KEY, red repo-wide including on main |
Locally, run the way CI runs it: vp check 0 errors, vpr typecheck clean across all 14 packages, vp run knip:check clean, and focused suites across contracts, shared, marketing, desktop, server, web, scripts, mobile and relay.
Two tests fail in the authoring container but pass in CI, confirmed from CI's own log rather than assumed: scripts/dev-runner.test.ts (no IPv6 here — ::1 binds return EAFNOSUPPORT) and scripts/update-release-package-versions.test.ts (chmods to 0400 and expects a write to fail; the container runs as uid 0). Neither was modified.
docs/operations/development.md and the Clerk auth-redirect fixtures still describe upstream's ~/.t3 / T3CODE_HOME / t3code://. Those are on main already, not introduced here.🤖 Generated with Claude Code
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: Claude Fable 5.1 <[email protected]>
…dotgg#10463) Co-authored-by: Claude Fable 5.1 <[email protected]>
…ccount (pingdotgg#10462) Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
… second one (pingdotgg#10440) Co-authored-by: Claude Code <[email protected]>
…ed (pingdotgg#10435) Co-authored-by: Claude Fable 5 <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…dotgg#10019) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…diff fallback (pingdotgg#9828) Co-authored-by: James <[email protected]>
… update depth errors (pingdotgg#7138) Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com> Co-authored-by: Julius Marminge <[email protected]>
…0820) Co-authored-by: Julius Marminge <[email protected]>
…ad (pingdotgg#10727) Co-authored-by: Claude Fable 5.1 <[email protected]>
…gdotgg#10768) Co-authored-by: Claude Fable 5.1 <[email protected]>
…ingdotgg#10848) Co-authored-by: Ryan Hughes <[email protected]>
…10851) Co-authored-by: Ryan Hughes <[email protected]>
…ingdotgg#10416) Co-authored-by: Julius Marminge <[email protected]>
Merges 130 upstream commits (merge base 52b2bf7) into Marcode. 41 paths conflicted; each was resolved by combining both intents, and the merge also carried several fork-boundary breaks that produced no conflict at all. Conflict decisions - Migrations.ts: kept Marcode's `deployedMigrationEntries` split and frozen 1-49 history; took upstream's un-export of `makeMigrationLoader`. - marcode-sqlite-state.ts, codexLaunchArgs.ts, publicConfig.ts: kept Marcode's command/env names (MARCODE_*), took upstream's knip un-exports. - WorkspaceFileSystem.ts, contracts/project.ts: kept Marcode's added error classes, adopted Effect rc.112's `Schema.TaggedError` rename. - contracts/settings.ts + settings.test.ts: additive on both sides — kept Marcode's `unifiedWorkspaceSidebar` and upstream's snapShot settings. - AgentSessionScanner.test.ts: took upstream's two new exclusion tests, kept Marcode's `.marcode` worktree-path test. - electron-launcher.mjs: kept Marcode identity, took upstream LAUNCHER_VERSION 19 and their un-exports. - electron-launcher.test.mjs: upstream split env out into a sourced script, so Marcode's MARCODE_PORT/MARCODE_HOME assertions moved onto `makeDevelopmentEnvironmentScript`, where they now have coverage again. - Desktop Linux identity: adopted upstream's shared `resolveLinuxDesktopEntryName` helper but not their reverse-DNS rename — the entry filename is what existing installs' xdg-mime associations point at. Swept the merged-clean fixtures that had silently kept `com.t3tools.T3Code*.desktop`, and aligned `linuxWmClass` across both producers. - ElectronProtocol.ts, DesktopWindow.test.ts, git.test.ts: kept Marcode schemes/fixtures, took upstream's un-exports, new mocks and ssh:// case. - devcontainer: took upstream's rewrite (base image, on-create/update-content, forwarded ports) with Marcode's name, MARCODE_HOME and `.marcode` state. - mobile app.config.ts: kept Marcode's black-on-white release mark, took upstream's new adaptive-background and splash keys. - mobile SettingsRouteScreen, MobileClientsUserProfilePage.logic: took upstream's Android-aware copy and platform logic under Marcode branding. - ConnectOnboardingDialog, WelcomeWizard: took upstream's shared wizard components (WizardPopup wraps Marcode's DialogPopup, so overlay behavior is preserved) and re-applied Marcode's product copy. - rightPanelStore.ts: kept Marcode's `marcodeRightPanelPolicy` ownership of the storage key/version and panel-key predicate; took upstream's new `PULL_REQUESTS_PANEL_REF`, which other merged files already consume. - SettingsSidebarNav.tsx: took upstream's removal of the router-state read that caused the page-switch shift; kept Marcode's back control. - ThreadTerminalDrawer.tsx: kept Marcode's own link provider, and ported upstream's pingdotgg#10060 browser-override plus its toast error handling into it. `forceBrowser` is required, so the merge would not have typechecked without it. - ChatView.tsx: took upstream's `activeProject` record prop; kept Marcode's FloatingPillNav imports. - useTheme.ts/.test.ts, index.css: kept Marcode's dark-onboarding seam and Mentiko chrome; combined upstream's additive rules. - DMG backgrounds: kept Marcode artwork, pinned by build-desktop-artifact.test. - 95.astro: kept Marcode's removal, pinned by retiredRoutes.test. - pnpm-lock.yaml: regenerated with pnpm rather than hand-resolved. Fork-boundary breaks that merged clean - Effect beta.103 -> rc.112 removes `Schema.TaggedErrorClass`; migrated the Marcode-only files (upstream-sync tooling) that kept the old name. - `resolveLinuxDesktopEntryName`/`linuxWmClass` had silently reverted to upstream identity; added a test pinning that DesktopEnvironment and DesktopEarlyElectronStartup agree, so the next sync fails loudly instead. - Upstream's new CaptureShortcutConfig test disabled a `t3code/` oxlint rule; Marcode's plugin namespace is `marcode`, so the directive was dead and CI would have failed on it. - Sidebar.tsx and CommandPalette.logic.test.ts still used the removed `projectCwdByKey` map and lacked Marcode's required `workspaceLayoutVersion`. - Upstream's widened knip server-export scope (pingdotgg#10282) newly covers Marcode files: un-exported four module-private helpers and covered `defineMarcodeMigration` with a test of its reserved-id guard. Verification: focused tests (23 files, 683 passing), typecheck across contracts/shared/scripts/server/client-runtime/desktop/web/mobile, knip:check, vp fmt --check and vp lint over the changed scope. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_017aktzmLA2BYiyzBZUSikhq
Upstream's cross-platform window capture (pingdotgg#8103) arrived in this sync carrying its own desktop identity, and none of it conflicted. The functional break: the GNOME extension only answers D-Bus callers whose well-known name is in its `CLIENT_NAMES` allowlist, and the Linux client requests `${linuxDesktopEntryName without .desktop}.SnapShot` — `marcode` here, not `com.t3tools.T3Code`. Every Marcode capture request would have been refused with "Only T3 Code may request a snapshot", at runtime, on Linux only. `gnomeCaptureClientNames.test.ts` now pins the allowlist against the entry names Marcode ships and against both halves of the derivation; restoring upstream's list fails it. The collisions: a Marcode install wrote the GNOME extension under upstream's uuid `[email protected]`, staged its KDE/Hyprland capture helpers and extension backups under a shared `~/.local/share/t3code/`, and installed a `com.t3tools.T3Code.KdeCapture.desktop` entry. Each of those would overwrite or be overwritten by a real T3 Code install on the same machine. Also renames the extension's own user-visible strings (GNOME Extensions app listing, authorization and activation errors) and the macOS `NSScreenCaptureUsageDescription`, which the OS renders in a permission prompt beside CFBundleDisplayName "Marcode". Deliberately left upstream-shaped: the `t3-kde-snap-shot` / `t3-hyprland-snap-shot` binary names (built from upstream's crates), the `X-T3Code-Capture-Helper` marker key, and the "T3 Code" strings in desktop runtime messages — main already carries 16 such files, and AGENTS.md rules out mass-replacing internal upstream-shaped identifiers. Verified: capture, GNOME setup, KDE, Hyprland, shortcut-config, desktop environment and build-artifact suites (185 passing), desktop and scripts typecheck, knip:check, fmt and lint. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_017aktzmLA2BYiyzBZUSikhq
|
Two follow-ups on this PR: one correction to the description above, one more round of fork-boundary fixes, and a note on a red check. Correction: the
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Both CI failures on the merge commit were in infra/relay, the one package I did not typecheck locally. Upstream's Android agent notifications (pingdotgg#10416) brought a new FCM path whose identity is upstream's, and none of it conflicted. Check / `vpr typecheck` — five `effect(deterministicKeys)` errors. The diagnostic derives a Context.Service key from the package name, and Marcode's relay package is `marcode-relay`, so upstream's `t3code-relay/...` keys are rejected outright: src/WebCrypto.ts src/agentActivity/FcmAssertionSigner.ts src/agentActivity/FcmClient.ts src/agentActivity/FcmDeliveries.ts src/agentActivity/FcmDeliveryQueueSender.ts Every pre-existing service in the package already spells its key `marcode-relay/...`; these five now match. Test — `ApnsDeliveries.test.ts` "sends signed jobs to the device's APNs environment and bundle topic" asserted `com.t3tools.marcode.preview…` against a fixture that fed it `com.t3tools.t3code.preview`. Marcode had renamed the bundle-id fixtures to its real mobile identity; upstream's new blocks reintroduced theirs, and the two halves met in one assertion. Renamed the four new occurrences plus the two in the new FCM test files, matching apps/mobile/app.config.ts (`com.t3tools.marcode{,.dev,.preview}`). Verified the way CI runs it, rather than by focused scope again: `vp check` 0 errors, `vpr typecheck` clean across all 14 packages, and the full relay suite (30 files, 286 tests) green. Two failures remain locally that CI does not have, both confirmed environmental rather than assumed — CI's own run passes both: - scripts/dev-runner.test.ts: this container has no IPv6, so `::1` binds return EAFNOSUPPORT and every probed port reads as occupied. - scripts/update-release-package-versions.test.ts: the case chmods a file to 0400 and expects the write to fail; this container runs as uid 0, where that write succeeds. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_017aktzmLA2BYiyzBZUSikhq
|
CI on Upstream's Android agent notifications (pingdotgg#10416) brought a new FCM path carrying upstream's identity, and none of it conflicted:
I re-verified the way CI runs it this time rather than by focused scope: Two local failures that are not CI's, confirmed rather than assumedRunning CI's exact test command locally also fails
Neither needs a change, and I have not touched either test. On the "2 failed" countsBoth jobs reported
Generated by Claude Code |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Superseded by #89, which syncs upstream through Generated by Claude Code |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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.