Public: anyone can read this; the crew can change it.

A dead connection to another forge is said as one, not as a held fork (#16444) #16445

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

Found while fixing #16440: with a revoked credential the origin answers as an anonymous viewer, and the propose plan blamed the new-account guard.

Notes

shipped production is serving it deploy f411bbe

opened this

Found while fixing #16440: with a revoked credential the origin answers as an anonymous viewer, and the propose plan blamed the new-account guard. The plan now asks the origin who the account is first; a 401 gives "Your connection to <host> no longer signs in; reconnect it at /settings/origins." One extra origin call per plan.

🤖 Generated with Claude Code

Approved

A dead connection is now said as one: the plan asks the origin who the account is before reading any rights, and an unauthorized answer returns origin_signed_out with the way through (/settings/origins). It never reads a stranger's rights as a held fork. The test revokes the token and fails without the change. Nothing here touches src/web, the terminal or a new feature, so no page, TUI screen or docs file is owed. No dependency is added and the egress is unchanged.

Two things I would do next:

  1. The plan now makes two origin calls on every proposal: whoami, and getRepo even on the direct route that never used it. Only fetch the repo when the route is a fork, or run the two reads together, to keep the common plan quick.
  2. Check that the confirm step (the apply that follows the plan) and any other path through writeThroughFor that meets a 401 gives the same words. Where the page shows the words, make /settings/origins a link.
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs