Skip to content

Upstream advance to 0.1.7: what to handle #772

Closed

Description

@Jacksondr5

Things the advance to upstream's stable v0.1.7 has to handle. Add to this as items come up.

Linked environments merged upstream

Upstream merged nine layers of Julius Marminge's linked-environment stack into main on 2026-10-27: pingdotgg#16653 through pingdotgg#17130. They landed as nine squash commits, 1b1ad0466d to 5e9d56416f. The first nightly that contains them is v0.1.4-nightly.20261027.3796. The v0.1.3 stable release does not. All nine are in v0.1.7. The handoff layers (pingdotgg#16731 → pingdotgg#16734 → pingdotgg#16751 → pingdotgg#16758) are still open upstream, idle since 2026-10-27.

It overlaps J5's own peering (docs/j5/product/cross-device.md), so the advance needs a deliberate merge, not just conflict resolution.

What it brings

  • Off by default. Linked environments is a Labs beta: the server setting linkedEnvironmentsEnabled in Settings → Labs, turned on separately on each machine. While it is off, new links, forwarded calls and remote delegate_task are refused, and the link tools are hidden.
  • Settings → Connections → Linked environments on web and mobile. It sits beside J5's peering in Connections. Decide how the two coexist there.
  • Forwarding in McpToolAccess. A tool that declares it can reach a linked environment forwards a call that names another machine's environmentId. Upstream's thread, project and queue tools now accept one. J5 hides t3_thread_send, t3_thread_wait, t3_thread_interrupt and t3_thread_launch; D2 admitted the queue mutators on 2026-10-24. Check they stay hidden, and that J5's own tools, which go through McpToolAccess, don't pick up forwarding by accident.
  • The link fence. At every access level below full access, work a link starts may change only that link's own work. A full-access link is not fenced.
  • delegate_task to a linked environment, with remote tasks followed from the parent's machine.
  • Agent-initiated links. Link cards and the t3_environment_links, t3_environment_link and t3_environment_unlink tools.
  • ThreadLaunchService gains linkOrigin and delegatedFrom, and agent launches now dispatch under the caller's mode ceiling (DispatchModeLimit). reuseExistingThread is unchanged, but re-test j5_spawn_agent and Crew launches on it.
  • /mcp narrows a client's modes from the T3-Mode-Limit header, and t3_thread_launch takes a clientRequestId.
  • Migrations 070–072: PeerLinks, PeerLinkFence and WaitingLinkRequestIndex. Upstream's list now reaches 079, appended with no renumbering. The checker blocks on the edit to 069, so this advance needs a reviewed manifest and a rehearsal.
  • Follow-ups already on upstream's main: feat(web,mobile): the @ picker lists threads on linked machines pingdotgg/t3code#26201 (the @ picker lists threads on linked machines), feat(web,mobile): Copy thread copies a chip that works on linked machines pingdotgg/t3code#26202 (Copy thread works across machines), feat(server,web,mobile): thread links name their environment and never a title pingdotgg/t3code#26239 (thread links name their environment) and fix(web): remote delegates show their harness icon, a parent row, and new links in settings pingdotgg/t3code#26434 (remote delegates show their harness icon and parent row).

Likely breakage to check during the merge

  • The link fence may refuse J5's writes tools for work a lower-access link started. Full-access links are exempt.
  • Remote delegation calls the launch, wait and interrupt tools on the other machine, and J5 hides them.
  • Children created with delegatedFrom may register as J5 participants.

Decisions this unparks

What upstream said about J5's points. Julius replied to Jackson's comment on pingdotgg#16655 (comment). Links work over any route that reaches the machine, such as Tailscale, a tunnel or https. A call to a sleeping machine fails retryably, and clientRequestId makes the retry safe. A poll mode isn't planned for this first version. That bears on #399.

Reconnect banner: nothing to do

The earlier text here is out of date. D37 was retired on 2026-10-24, so J5 has no hunk to re-place. pingdotgg#24691 is in v0.1.7 and is expected to merge clean. pingdotgg#23194 is still open and no longer bears on J5.

Native resume fallback: D6

pingdotgg#28195 (a visible "Context handoff" divider, for our issue pingdotgg#28178) is still open and not in v0.1.7, so that question carries to the next advance. Two changes that are in v0.1.7 land in the same code: pingdotgg#21045 (a Codex thread another client holds now fails visibly) and pingdotgg#25610 (a new fresh start when a resumed handoff doesn't fit). D6 needs re-placing around both.

Found in the 0.1.7 review

Full analysis: artifact upstream-merge-2026-11-04/analysis.md. Items below come from reading the code and a scratch merge; none has been run. Decisions are being taken with Jackson.

  • Event-log pruning (perf(server): prune events the projections already cover pingdotgg/t3code#29806). Events are deleted once projections cover them, after a day. J5 reads the settling event to decide who answered a prompt on a shared conversation (SharedConversation.ts), so that attribution would disappear with no error.
  • ThreadLifecycleService is deleted upstream (chore: delete 18k lines of code that nothing reaches pingdotgg/t3code#26238). J5's Crew archive calls it (ArchiveAgentService.ts).
  • Side chats (feat: side chats beside the main thread pingdotgg/t3code#26901) would register as ledger participants, because J5's filter excludes only subagents.
  • New upstream code that points at T3's infrastructure or paths: Copy thread links to app.t3.codes, managed-policy paths and names, t3code://pair, the fleet Stable/Nightly switch reading npm, the star prompt, palette triage, 90-t3code-protect.conf.
  • AccessGate: 18 new RPCs need a level, and nine listed names no longer exist. orchestration.forceStopThread and review.getBranchCommits are the ones Collaborators will notice.
  • Web Labs gate. J5's GUEST_LINKS_OFFERED wraps the whole Beta section, which now also holds the Linked environments toggle. Move it to the guest row.
  • McpHttpServer.ts conflict. Keep layerJ5Toolkits over upstream's new layerTools, which would expose every hidden tool. Add a test that PeerForwarding reaches J5's registrations.
  • Effect 4.1. effect/Crypto is gone (14 J5 files), and case 89's crypto option merges clean and breaks.
  • Unguarded new workflows: agent-context-budget, mobile-eas-preview-fork, mobile-fingerprint-label. AgentContextBudget.test.ts needs J5's numbers.
  • t3_thread_organize: port Tool.Strict (fix(server): t3_thread_organize rejects unknown arguments instead of archiving the caller pingdotgg/t3code#26718) to J5's re-declaration.
  • Copied databases: add peer_environment_links to J5's neutraliser.
  • Mobile: a new native build is required.

Activity

  1. changed the title [-]Upstream advance to 0.1.4: what to handle[/-] [+]Upstream advance to 0.1.6: what to handle[/+] on Oct 31, 2026
  2. Jacksondr5 commented on Oct 31, 2026

    @Jacksondr5
    OwnerAuthor

    Retargeted from 0.1.4 to 0.1.6 (Jackson, 2026-10-31): upstream released stable v0.1.6 today, so the next advance goes there. Tracked in the new milestone "Upstream advance: T3 Code v0.1.6", together with #695 and #283, which this advance unparks.

    Claude Opus 5.5

  3. changed the title [-]Upstream advance to 0.1.6: what to handle[/-] [+]Upstream advance to 0.1.7: what to handle[/+] on Nov 5, 2026
  4. Jacksondr5 commented on Nov 5, 2026

    @Jacksondr5
    OwnerAuthor

    Retargeted from 0.1.6 to 0.1.7 (Jackson, 2026-11-04): upstream released stable v0.1.7 today, and this advance goes there. Frozen for the review: fork head 2487e4240f, previous pin d2c440312e (v0.1.3), target 322f6544df (v0.1.7).

    Claude Opus 5.5

  5. Jacksondr5 commented on Nov 7, 2026

    @Jacksondr5
    OwnerAuthor

    Re-frozen for the build (2026-11-07): fork head 9725edfe1a (j5/main, including #947 for #494 and #954, the agent-tool docs), previous pin d2c440312e (v0.1.3), target 322f6544df (v0.1.7). Trial merge: 169 conflicted files, none in docs/user/. The decisions are in artifact upstream-merge-2026-11-04/decisions.md.

    Claude Opus 5.5

  6. Jacksondr5 commented on Nov 8, 2026

    @Jacksondr5
    OwnerAuthor

    Re-frozen for the build (2026-11-08), after the persona stack (#931–#938) merged: fork head 49bd690ffe (j5/main), previous pin d2c440312e (v0.1.3), target 322f6544df (v0.1.7). Trial merge: 169 conflicted files, the same set as at 9725edfe1a. J5's a2a migration lane now ends at 055 and upstream's lane at 069 on the fork; they are separate lanes, so upstream's 070–079 and J5's new 056 don't collide. Build starting; plan in artifact upstream-merge-2026-11-04/build-plan.md.

    Claude Opus 5.5

  7. Jacksondr5 commented on Nov 9, 2026

    @Jacksondr5
    OwnerAuthor

    Done in #971, merged as 067d732: J5 is on upstream T3 Code v0.1.7. Follow-ups are in the "Upstream advance: T3 Code v0.1.7" milestone.

    Claude Opus 5.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions