Repository navigation
Hosted dev loop: run the relay Worker on its database - #1367
Merged
Merged
Conversation
Deploying mouseterm with
|
| Latest commit: |
bbe57a8
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://67a093c7.mouseterm.pages.dev |
| Branch Preview URL: | https://hosted-dev-relay.mouseterm.pages.dev |
dormouse-bot
approved these changes
Oct 23, 2026
nedtwigg
force-pushed
the
hosted-no-plan-approval
branch
from
October 27, 2026 22:28
3d9fd91 to
e244345
Compare
dor tool hosted (pnpm dev:hosted) now also starts the relay Worker's dev loop attached to it: the development database through a local Hyperdrive and the loop's origin as ACCOUNT_ORIGIN, at localhost:8787 or RELAY_PORT. A dev Hosted desktop build (DORMOUSE_RELAY_IS_HOSTED=1, DORMOUSE_RELAY_ORIGIN=http://localhost:8787) now enrolls by device code end to end against a local Hosted. dev.ts announces its own port over OSC 367 so the Tool frames the account, the attached relay announces none, a relay exit is logged, and the relay stops with dev.ts. dev-one-time alone is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nedtwigg
force-pushed
the
hosted-dev-relay
branch
from
October 27, 2026 22:32
b5dbfbc to
b5a2411
Compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dormouse-bot
approved these changes
Oct 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #1366. Revived from the stale #1003, rebuilt on current main.
dor tool hostedserved the account app and the account's Relay routes but ran no relay Worker, so a dev desktop could not enroll by device code against a local Hosted.dev.tsnow startsdev-one-time.mjsattached. It reads the same dev database through a local Hyperdrive, has the account origin asACCOUNT_ORIGIN, and listens onRELAY_PORT(default 8787).hostedAttachment(env)requires both attachment variables or neither.dev-one-timerun alone is unchanged.dev.tsnow announces its own port over OSC 367, and the attached relay announces none, so the Tool frames the account origin rather than the relay's or Wrangler's inspector port.dev.ts(SIGINT/SIGTERM wait for it, and anexithook kills it on a crash). A relay that exits on its own is logged; the account keeps serving.hosted/README.mdhas it:DORMOUSE_RELAY_IS_HOSTED=1 DORMOUSE_RELAY_ORIGIN=http://localhost:8787 pnpm innerdogfood, choose Local networks only or Anywhere, unfold Hosted Relay, and sign in asADMIN_EMAILat the account to approve.hosted.md→ "Development and release" andone-time.md→ "Dev loop" state the contract. To stay in budget,hosted.mddrops the voice-origin clause, whichrelay.md's Relay origin table andS193still state.Test plan
hostedtest:deploy46/46, including newhostedAttachmentand attached-devConfigtests, each mutation-checked redhostedtypecheck; spec, md and public-docs lints/api/ready200 on :8787 against the dev DB, enroll begin → approve as admin (204) → pollenrolled, and the account lists the Burrow. Killing the relay logs its exit, SIGTERM stops everything, anddor killleaves no ports.🤖 Generated with Claude Code