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 2c4158f8 by maarco · Pull Request #47 · maarco/marcode Conversation
|
| Break | Fix |
|---|---|
Upstream's new macOS launch agent (pingdotgg#6286) exports T3CODE_HOME into the plist. resolveLauncherBaseDir reads MARCODE_HOME and throws without it — the background service would never start on macOS. |
Renamed to MARCODE_HOME; pinned with a test asserting the plist names it and never T3CODE_HOME. |
The launch-agent label was com.t3tools.t3code.service, so an upstream T3 Code install writes the same ~/Library/LaunchAgents/…plist path and the two overwrite each other. |
Derived from BOOT_SERVICE_NAME → com.t3tools.marcode.service, matching the reason Marcode already renamed the systemd unit. Pinned with a test. |
Upstream's new uninstall assertion hardcoded systemctl --user disable --now t3code.service. |
Now reads BOOT_SERVICE_UNIT_FILE so it can't drift from Marcode's unit name again. |
The new t3 triage command (pingdotgg#6563) resolves its base dir from T3CODE_HOME, while its own comment claims parity with t3 pair — which reads MARCODE_HOME. |
Switched to MARCODE_HOME. |
Upstream moved CI to Blacksmith runners (pingdotgg#7286, pingdotgg#7283). A blacksmith-* label matches no runner on this fork, so those jobs queue forever rather than failing. |
All CI jobs back on GitHub-hosted runners. Marcode's existing runner-pinning test caught this — it now also rejects any blacksmith label outright. |
Second-order consequence of that runner change, and the one CI caught: upstream also moved the server suite into a new sharded test_server job (pingdotgg#7286), and Marcode's ripgrep install — needed only because of the runner conversion — stayed on the old test job. WorkspaceFileSystem search tests failed with spawn rg ENOENT. Upstream never hits this; their Blacksmith images ship ripgrep. |
Install step added to test_server. The parity test now derives the job list from whatever actually runs a test suite, so the next split or rename fails there instead of in CI. |
Background-draft promotion (pingdotgg#7821) landed its usage of handleNewThread but not its declaration, which fell in a region Marcode had diverged. |
Restored useNewThreadHandler(); apps/web typechecks. |
| The new platform docs section named upstream's unit paths. | Corrected to marcode.service / com.t3tools.marcode.service.plist. |
Kept Marcode, ported the upstream fix inside the hunk
SidebarChrome / SettingsSidebarNav — upstream's SidebarUtilityMenu adds Settings, Usage, Pull Requests and Back to surfaces where FloatingPillNav already owns them. SidebarChrome.fork.test.tsx already pinned the thread sidebar; added a matching pin for the settings footer, which had no test and would have merged silently.ChatHeader — kept Marcode's title-only header. Upstream's inline rename and title action menu (feat(web): double-click chat header title to rename thread pingdotgg/t3code#7817, feat: refine thread action menus pingdotgg/t3code#7476) duplicate entry points Marcode provides from the sidebar row and pill nav.ThreadTerminalDrawer — kept Marcode's terminal chrome and FitAddon padding; took upstream's themed terminal background and routed every close through upstream's close confirmation (feat(web): confirm before closing a terminal pingdotgg/t3code#7592).ChatView — kept the title-only header call and the ThreadActionsCluster portal inside upstream's WorkspacePageHeader; kept the single container-level panelLayoutControls render so it isn't drawn twice.Sidebar.tsx — kept Marcode's 12px empty-state type, took upstream's cursor-pointer fix (fix(web): show pointer on add project button pingdotgg/t3code#5545).files/{FileBrowserPanel,FilePreviewPanel}.tsx — kept Marcode's deletion. Upstream's fix(web): refresh open file with the file tree pingdotgg/t3code#7490 is confined to the retired right-panel file surfaces and has no floating-editor analogue.Took upstream's refactor, re-applied Marcode's behavior on top
WorkspacePageHeader — adopted upstream's shared header primitive on settings and usage, and added one sidebarless prop for SIDEBARLESS_TITLEBAR_INSET_CLASS. Those routes mount no sidebar, so upstream's collapsed-sidebar selector never matches and the header would slide back under the native window controls.UsagePage — took the redesign (feat(web): redesign usage insights pingdotgg/t3code#7147), re-applied Marcode's styled Tooltip on both refresh controls._chat.pull-requests / PullRequestListFilters — took upstream's shared PullRequestRefreshControl and Button-based filter trigger, moved Marcode's Tooltip onto them instead of keeping a third refresh button in the header.RightPanelTabs — took tab mute (feat(desktop): mute a browser tab pingdotgg/t3code#7252) and surface-dropdown shortcuts (feat(web): add shortcuts to the surface dropdown pingdotgg/t3code#7318), minus copy-path and the Files entry, which address the retired right-panel file surface. Marcode's add-surface menu now renders from upstream's shared action list rather than duplicating it.ChatComposer / ComposerPendingApprovalPanel — took upstream's composer state drawers (feat(web): attach composer state drawers pingdotgg/t3code#7150); Marcode's in-surface approval banner depended on a container upstream removed. The glass treatment lives on chat-composer-glass-shell in ChatView and is unaffected.Where Marcode's implementation was superseded
threadSettled — retired Marcode's CHANGE_REQUEST_SETTLE_IDLE_MS warm window in favour of upstream's event-ordering rule (fix(threads): a merged PR settles its thread only once pingdotgg/t3code#7454). Both fix the same bug (a merged PR burying a warm follow-up), but upstream's also covers the inherited-PR case — a thread opened on a branch whose PR already merged must never settle — which the time window would have regressed. Marcode's warm-window tests are replaced with tests for the combined rule, and the retirement is documented where the constant lived.Other
Migrations — upstream's 041_AuthSessionClientConnection renumbered to 042. Marcode's ProjectWorkspaceLayout owns 033, so every shared migration sits one id higher; renumbering an applied id would re-run or skip it on real installs..plans/** — took upstream's removal (chore: move implementation plans out of repository pingdotgg/t3code#7665). Marcode's only change there was a path rebrand inside a file the repo policy already says not to commit, and .plans/ is gitignored.AGENTS.md — kept Marcode's structure and its own Verifying / Pull-requests sections; adopted upstream's new "Plans and work artifacts" policy and folded its PR-assets rule into Marcode's list.cli/service.ts, cli/connect.ts — took upstream's macOS/launchd copy paths, kept Marcode's product name.index.css, __root.tsx, Sidebar.logic.ts — additive on both sides; kept both.Coupled changes: pnpm-workspace.yaml moved only Clerk versions, not the effect catalog, so no .repos/ subtree sync is required. infra/relay/package.json is unchanged.
Both guard Marcode divergences the merge moved rather than removed, so both failed CI on content that is actually correct. Rewritten to assert the invariant where it now lives:
Migrations.test.ts pinned a fixed 9-entry tail, so adding migration 42 slid Marcode's own migration 33 out of the window — the diff read as "33 disappeared" rather than "42 is new". Now anchors on 33 by lookup.workspaceTitlebar.fork.test.ts scanned settings/usage for a drag-region line beside SIDEBARLESS_TITLEBAR_INSET_CLASS; adopting WorkspacePageHeader moved both out of the call sites. The guarantee still has two independently regressible halves, each now asserted where it lives.The daily sync had stalled behind three unmerged drafts, so the fork was 92 commits behind and drifting. Merging the full range in one reviewed pass is cheaper than resolving three overlapping stacks, and it re-establishes a single merge base for the next run.
Every fix above is either an upstream correctness/security/operational change Marcode needs, or a Marcode product contract that upstream's rewrite would have quietly removed. Hotspot paths were treated as mandatory-review, not as automatic keep-Marcode.
Not captured — this ran headless with no browser or display available. This is the main reason the PR is still draft. The following surfaces changed and want a look:
sidebarless inset matters (the header must clear the traffic lights).CI green on 480c621a: Check, Test, Mobile Native Static Analysis, Release Smoke, Rust, Test Server 1/2/3, Mobile Native Changes. Thread-transfer bot reports the merge stays within every enforced ceiling (+6.7% total wire against a 15.1 KiB cap).
Locally: apps/web fully green (289 files, 2961 tests); typecheck clean for web, server, contracts, shared, client-runtime, mobile, desktop; fmt --check and lint clean on the changed scope.
Each rewritten pin was verified to still fail on the regression it guards — the ripgrep step removed from test_server, the header primitive reverted to the collapsed-only inset, and a route dropping the sidebarless prop — and to pass when restored.
The sync container is resource-constrained and shares its port space, which produced local-only failures that CI does not reproduce. Treat CI as authoritative for these:
packages/shared/src/Net.test.ts → findAvailablePort returns preferred when it is free. Both Net.ts and Net.test.ts are byte-identical to pre-merge main, and the test passes in CI.GrokAdapter drain-window test hit its 120s timeout locally under a concurrently running suite. All three CI server shards pass.Native fingerprint diff can never run on this fork, and this PR is the first to show it. .github/workflows/mobile-fingerprint-check.yml still targets blacksmith-8vcpu-ubuntu-2404. That label matches no runner here, so the job queued from 16:02 on 22 Aug until GitHub cancelled it at the 24-hour timeout — which is what leaves this PR unstable. It is untouched by this merge and was already Blacksmith-bound on 5bcc188a; it only surfaced now because the workflow is paths-gated to mobile native files and this diff touches them. It is not a required check, so it does not block merging.
Deliberately not fixed here — it is unrelated to the sync and this PR is already XXL. The patch is one line, and the same one applied to ci.yml:
# .github/workflows/mobile-fingerprint-check.yml - runs-on: blacksmith-8vcpu-ubuntu-2404 + runs-on: ubuntu-24.04
The same latent problem exists in release.yml, publish-aur.yml, web-preview.yml, mobile-eas-preview.yml, mobile-eas-production.yml, and mobile-showcase-screenshots.yml. Worth one small follow-up PR sweeping all of them, plus a parity test covering every workflow rather than just ci.yml.
t3 triage's playbook still points at pingdotgg/t3code — a Marcode user running it would be told to file issues upstream. Left as-is: that's a product decision, not a merge decision.
docs/internals/scripts.md still documents T3CODE_HOME and .t3/userdata. Pre-existing drift, not caused by this merge; left alone to keep the diff focused.
Mobile Native Static Analysis is now conditionally skipped (upstream ci: only boot the macOS native lint runner when native sources change pingdotgg/t3code#7283 gates it on native source changes) and is a required check. It ran on this PR because the diff touches native sources, so the skip path is unverified — worth confirming branch protection treats a skipped required check as passing.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…in GitHubPullRequestCli (pingdotgg#7385) Signed-off-by: aoright <[email protected]>
Co-authored-by: shivam <[email protected]>
Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com> Co-authored-by: maria <[email protected]>
Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com> Co-authored-by: maria <[email protected]>
…pingdotgg#7459) Co-authored-by: Claude Fable 5 <[email protected]>
…t full speed (pingdotgg#7460) Co-authored-by: Claude Fable 5 <[email protected]>
…nt (pingdotgg#6563) Co-authored-by: Claude Fable 5 <[email protected]>
…ngdotgg#7477) Co-authored-by: Claude Fable 5 <[email protected]>
…tgg#6286) Co-authored-by: Claude Fable 5 <[email protected]>
Co-authored-by: GPT-5.6 <[email protected]>
Co-authored-by: GPT-5.6 <[email protected]>
…pingdotgg#7283) Co-authored-by: Codesmith <[email protected]>
Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com> Co-authored-by: maria <[email protected]>
Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com> Co-authored-by: maria <[email protected]>
Co-authored-by: GPT-5.6 <[email protected]>
…otgg#7809) Co-authored-by: Simone <[email protected]>
…gdotgg#7794) Co-authored-by: Simone <[email protected]>
Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com> Co-authored-by: maria <[email protected]>
…tgg#6633) Co-authored-by: Simone <[email protected]>
…pingdotgg#7774) Co-authored-by: Claude Fable 5 <[email protected]>
Co-authored-by: shivam <[email protected]>
Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <[email protected]>
Brings 92 upstream commits (82b8a93..2c4158f) into Marcode. 25 paths conflicted; each was resolved by combining upstream's intent with Marcode's, never by taking a whole file from one side. Fork-boundary breaks that merged cleanly (no conflict, silent regressions): - bootService: upstream's new macOS launch agent (pingdotgg#6286) exported T3CODE_HOME into the plist. The Marcode launcher reads MARCODE_HOME and exits without it, so the background service would never have started. Renamed, and pinned with a test asserting the plist names MARCODE_HOME and never T3CODE_HOME. - bootService: the launch-agent label is now derived from BOOT_SERVICE_NAME (com.t3tools.marcode.service), matching the reason Marcode already renamed the systemd unit -- an upstream install writes com.t3tools.t3code.service.plist to the same path and the two must not overwrite each other. Pinned with a test. - bootService test: upstream's new uninstall assertion hardcoded "systemctl --user disable --now t3code.service"; it now reads BOOT_SERVICE_UNIT_FILE so it cannot drift from Marcode's unit name again. - cli/triage: upstream's new `t3 triage` command (pingdotgg#6563) resolves its base dir from T3CODE_HOME while its own comment claims parity with `t3 pair`, which reads MARCODE_HOME. Switched to MARCODE_HOME. - ci.yml: upstream moved every job to Blacksmith runners (pingdotgg#7286, pingdotgg#7283). A blacksmith-* label matches no runner on this fork, so those jobs would queue forever rather than fail. All CI jobs are back on GitHub-hosted runners, and the existing runner-pinning test now also rejects any blacksmith label. - ChatView: upstream's background-draft promotion (pingdotgg#7821) landed without its `const handleNewThread = useNewThreadHandler()` declaration, which fell in a region Marcode had diverged. Restored; the file now typechecks. - docs/user/background-service.md: the new platform section named upstream's unit paths; corrected to marcode.service and com.t3tools.marcode.service.plist. Conflict decisions: - .plans/**: took upstream's removal (pingdotgg#7665). Marcode's only change there was a path rebrand inside a file the repo policy already says not to commit, and .plans/ is gitignored. - apps/web/src/components/files/{FileBrowserPanel,FilePreviewPanel}.tsx: kept Marcode's deletion. Upstream's change (pingdotgg#7490) is a refresh affordance confined to the retired right-panel file surfaces and has no floating-editor analogue. The removal stays pinned by rightPanelStore.test.ts. - Migrations: upstream's 041_AuthSessionClientConnection renumbered to 042. Marcode's ProjectWorkspaceLayout owns 033, so every shared migration sits one id higher; renumbering an applied id would re-run or skip it on real installs. - cli/service.ts, cli/connect.ts: took upstream's macOS/launchd copy paths, kept Marcode's product name. - SidebarChrome: kept Marcode's footer. Upstream's SidebarUtilityMenu adds Settings, Usage, Pull Requests, and Back to a footer Marcode emptied because FloatingPillNav owns those; SidebarChrome.fork.test.tsx already pins this. - SettingsSidebarNav: same call, same reason -- upstream swapped the single Back row for SidebarUtilityMenu. Kept Marcode's Back row and added a test so the swap fails loudly instead of merging silently next time. - WorkspacePageHeader: adopted upstream's shared header primitive on settings and usage, and added a `sidebarless` prop for Marcode's SIDEBARLESS_TITLEBAR_INSET_CLASS. Those routes mount no sidebar, so upstream's collapsed-sidebar selector never matches and the header would slide back under the native window controls. - UsagePage: took upstream's redesign (pingdotgg#7147) and re-applied Marcode's styled Tooltip on both refresh controls. - _chat.pull-requests / PullRequestListFilters: took upstream's shared PullRequestRefreshControl and Button-based filter trigger, and moved Marcode's Tooltip onto them rather than keeping a third refresh button in the header. - threadSettled: retired Marcode's CHANGE_REQUEST_SETTLE_IDLE_MS warm window in favour of upstream's event-ordering rule (pingdotgg#7454). Both fix the same bug -- a merged PR burying a warm follow-up -- but upstream's also covers the inherited PR case (a thread opened on a branch whose PR already merged must never settle), which the time window would have regressed. Marcode's warm-window tests are replaced with tests for the combined rule, and the retirement is documented where the constant used to live. - ChatComposer / ComposerPendingApprovalPanel: took upstream's composer state drawers (pingdotgg#7150). Marcode's in-surface approval banner depended on a container upstream removed; the glass treatment lives on chat-composer-glass-shell in ChatView and is unaffected. - ChatView: kept Marcode's ChatHeader call and its ThreadActionsCluster portal inside upstream's WorkspacePageHeader, and kept the single container-level panelLayoutControls render so it is not drawn twice. Kept chat-composer-glass-shell-transparent and took upstream's -attached modifier. - ChatHeader: kept Marcode's title-only header. Upstream's inline rename and title action menu (pingdotgg#7817, pingdotgg#7476) duplicate entry points Marcode already provides from the sidebar row and pill nav. - RightPanelTabs: took upstream's tab mute feature (pingdotgg#7252) and surface-dropdown shortcuts (pingdotgg#7318), minus copy-path and the Files entry, which address the right-panel file surface Marcode retired. Marcode's existing add-surface menu now renders from upstream's shared action list rather than duplicating it. - ThreadTerminalDrawer: kept Marcode's terminal chrome and its FitAddon padding, took upstream's themed terminal background and routed every close through upstream's close confirmation (pingdotgg#7592). - Sidebar.tsx: kept Marcode's 12px empty-state type, took upstream's cursor-pointer fix (pingdotgg#5545). - MessagesTimeline: kept Marcode's text-sm, took upstream's -mx-1 removal. - AGENTS.md: kept Marcode's structure and its own Verifying/Pull-requests sections, adopted upstream's new "Plans and work artifacts" policy and folded its PR-assets rule into Marcode's list. - index.css, __root.tsx, Sidebar.logic.ts: additive on both sides; kept both. Coupled changes: pnpm-workspace.yaml moved only Clerk versions, not the effect catalog, so no .repos/ subtree sync is required. infra/relay/package.json is unchanged. Verified: focused tests for threadSettled, bootService, service, serviceLauncher, migration 042, upstream-sync workflow, dev-runner, Sidebar.logic, contracts settings, shared git, RightPanelTabs, SidebarChrome fork pins, threadSidebarWidth, rightPanelStore, ThreadStatusIndicators, desktopUpdate, editor-surface. Typecheck clean for web, server, contracts, shared, client-runtime, mobile, desktop. Targeted fmt --check and lint clean on the changed scope. Not verified here: tests that import @aliimam/icons fail to resolve in this container because that package declares main: dist/index.cjs and ships dist/index.js. Both the dependency and the importing files are untouched by this merge.
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.
`Test Server 3` failed with `spawn rg ENOENT` on three
WorkspaceFileSystem searchContent tests. WorkspaceFileSystem calls
execFile("rg", ...), a bare PATH lookup.
Upstream never installs ripgrep -- their Blacksmith images ship it.
GitHub-hosted ubuntu-24.04 does not, so Marcode carries an install step,
and this sync converted every CI job back to GitHub-hosted runners.
pingdotgg/t3code@d7b9a689 then moved the `t3` suite into a new sharded
`test_server` job, and the Marcode-only step did not follow it there.
The existing parity test only inspected `ci.jobs.test`, so the move was
invisible to it. It now derives the job list from whatever actually runs
a Test step and asserts the install for each, so a future split, rename,
or new test job fails there instead of in CI.
Verified: WorkspaceFileSystem.test.ts passes locally with rg present
(31 tests); the broadened parity test fails with `job "test_server" must
install ripgrep` when the step is removed and passes when restored.
Both tests guard Marcode divergences the merge relocated rather than removed, so both failed on content that is actually correct. Migrations.test.ts pinned a fixed 9-entry tail. Adding upstream's AuthSessionClientConnection as 042 slid Marcode's own migration 33 out of that window, so the diff read as "33 disappeared" rather than "42 is new". It now anchors on 33 by lookup and asserts the sequence from there, which keeps the pin's intent and reports the real change next time. workspaceTitlebar.fork.test.ts scanned settings.tsx and UsagePage.tsx for a `drag-region` line next to SIDEBARLESS_TITLEBAR_INSET_CLASS. Adopting upstream's shared WorkspacePageHeader moved both out of the call sites, so neither string remained. The guarantee still has two independently regressible halves, and each is now asserted where it lives: the primitive maps `sidebarless` to the unconditional inset and carries the drag region, and both routes pass the prop. Verified: each rewritten pin fails when its regression is reintroduced (the primitive reverted to the collapsed-only inset, and a route dropping the prop) and passes when restored. Full apps/web suite green (289 files, 2961 tests).
|
Superseded by PR #51, the newer upstream sync through |
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.