Skip to content

chore(core): remove what is left of the relay - #2123

Merged
frahlg merged 1 commit into
masterfrom
relay-leftovers
Nov 29, 2026
Merged

frahlg merged 1 commit into
masterfrom
relay-leftovers

Conversation

@frahlg

@frahlg frahlg commented Nov 29, 2026

Copy link
Copy Markdown
Member

Problem

Core stopped dialling the relay in #1687 (v0.147.0), and #2114 removed its
client. Some of it is still in Core:

  • Handler.Tick and agentTick. The relay was the only caller of Tick, so
    neither runs on a box. Only tests call them.
  • Comments and config.example.yaml still name the relay as the path a phone
    takes to the box. People and agents read them as how the box works now. A
    support report this week took a stale relay log line for a live connection
    in the same way.

Change

  • Remove Handler.Tick, the cadenceLeft counter, agentTick and
    errAgentEnded. A session through FTW Cloud streams with Push and
    Beat, which keep cadenceEvery.
  • Tests that drove Tick at 1 Hz now call Push, which does the same work
    there. The hidden-session test now advances the clock and calls Beat. It
    still checks that the sequence carries on when the phone comes back to the
    foreground. push_test.go already covered the rest of Push and Beat.
  • TestAnExpiredAgentFailsAtTheBoxEvenWhenTheCloudAdmitsIt loses the step
    where Tick ended an expired agent's stream. On a box the agent sweep does
    that: sweepOnce runs every 30 seconds, and ExpireAgents ends the agent's
    holds and drops its sessions. Revoking an agent does the same at once. The
    box also checks the grant on every call, and that part of the test stays.
  • Eleven Go files, one web file and config.example.yaml: comments that named
    the relay as the carrier now name FTW Cloud. One comment in appenroll gave
    a reason that held only for the relay's TLS terminator; it now gives the
    reason that holds through FTW Cloud. Comments that say the relay is gone
    stay.

Left out

Tests

Run locally (Go 1.27.3, darwin/arm64):

  • make verify: vet + test + build clean
  • go test -race -count=1 on appproto, appenroll, api, apiauth,
    cloudlink, notifications, config, appuplink and cmd/ftw: ok

The only web change is one comment in web/settings/tabs/app.js, so I did
not open the page in a browser.

Size

Go without tests: +28 −79. Tests: +39 −44.

No behaviour changes, so no changeset; this PR carries the no-changeset
label.

🤖 Generated with Claude Code

Core stopped dialling the relay in #1687 and #2114 removed its client.
Handler.Tick and agentTick stayed, with only tests calling them, and
comments and config.example.yaml still named the relay as the way a
phone reaches the box.

Remove Tick, its cadenceLeft counter, agentTick and errAgentEnded. A
session through FTW Cloud streams with Push and Beat, and the agent
sweep and revocation end an agent's holds and sessions. Tests that
drove Tick now use Push, or Beat with the clock for a hidden session.
Comments now name FTW Cloud where they named the relay.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@frahlg frahlg added the no-changeset PR intentionally exempt from the changeset requirement (dev tooling / non-shipping) label Nov 29, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T05:37:39.266949Z f85a6dc PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@frahlg
frahlg merged commit c3bd0c3 into master Nov 29, 2026
22 of 23 checks passed
@frahlg
frahlg deleted the relay-leftovers branch November 29, 2026 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changeset PR intentionally exempt from the changeset requirement (dev tooling / non-shipping)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant